Git Product home page Git Product logo

wemos_motor_shield_arduino_library's Introduction

WEMOS_Motor_Shield_Arduino_Library

Arduino library for the WEMOS Motor Shiled - a shield for D1 mini, i2c interface, based TB6612

wemos_motor_shield_arduino_library's People

Contributors

wemos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

wemos_motor_shield_arduino_library's Issues

Library is very slow

If you have a robot, use for example, the following code while driving:

leftMotor.setmotor(_CCW, 0); rightMotor.setmotor(_CCW, 0);
The robot will turn the left wheel off first, then delay, and then the right wheel, causing the robot to turn 10-20 degrees left.

This is caused by


Is there a reason that this delay is here? Whatever the reason is, blocking the entire code for 100 ms is not the solution. I highly recommend removing the delay, it is not appropriate. If there are I²C problems, these must be solved in a different way than this.

AliExpress store is still closed in February (after Jan 30th).

Sorry to use GitHub to make contact, however I think you should know that your AliExpress store is still saying "Company Holiday until January 30th" - today is the 5th February. When will the store be open again? Feel free to delete or close this issue.

Code restarting

First the code didn't build until I included Wire.h then I couldn't get the code to run on my wemos d1, It simply restarted again and again showing rst cause:2, boot mode:(3,7)

First after I added wire.h and changed the code to use pointers and called the Motor constructor from setup(), it worked.

include <Wire.h>

...

Motor *M1 = NULL;
Motor *M2 = NULL;

void setup() {
delay(1000);
Serial.begin(115200);
M1 = new Motor(0x30,_MOTOR_A, 1000);//Motor A
M2 = new Motor(0x30,_MOTOR_B, 1000);//Motor B
}

void loop() {

for (pwm = 0; pwm <= 100; pwm++)
{
M1->setmotor( _CW, pwm);

...etc..

Hopefully it helps someone.

Steppers

I'd like to run a 2 phase stepper motor off the shield- is it possible to add this functionality to the code flashed on the chip for i2c control?

What is the I²C chip on this board?

The TB6612 chip listed on the schematic and in the comments is just a motor driver chip. There is a second chip on this board, providing the I²C communications and PWM generation -- however, it's unlabeled on the schematic.

I'm trying to write a library for interfacing with this shield for the MicroPython on ESP8266, and it would be a great help if you could tell me what the chip is, so that I can check its datasheet for details (I don't want to just blindly copy from the Arduino library, but if anything else fails, I will have to do it).

I have ordered this shield, and I could just wait for it to arrive and then check the markings on the chip, but it takes a long time to arrive, and I thought that I could start writing the library for it already.

Thank you for the great board and great shields!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.