-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Using a TB6612FNG #21
Comments
Because of the asymmetry of this driver (see the H-SW Control Function table on page 4 of the datasheet, HHHH→LL and LLHH→Off), you should use the modifications explained in #18 (comment) Using those changes, then connect the driver as follows.
To wire the motor and the power supply, see the Typical Application Diagram on page 7 of the datasheet. If you want to use more than one fader, you'll need to change the code for the other motors as well. |
Thanks for that quick answer. The code change seems simple enough and makes sense (though I don't understand most of the code, I understand what you are changing). I'll try it tomorrow and let you know the results of my attempt. |
So I've tried it (with the test reference), but it's not working. I have a theory: Hardware: |
It should be possible to make it work on the ATmega2560, but you'll have to change the pins used. Specifically:
In the code, change the following lines: Control-Surface-Motor-Fader/Motor-Controller/main.cpp Lines 146 to 148 in fe8a54f
Control-Surface-Motor-Fader/Motor-Controller/Touch.hpp Lines 53 to 54 in fe8a54f
Control-Surface-Motor-Fader/Motor-Controller/Touch.hpp Lines 78 to 82 in fe8a54f
Control-Surface-Motor-Fader/Motor-Controller/Motor.hpp Lines 64 to 65 in fe8a54f
(Or your modified version) |
Hello Pieter,
I have tried implementing very basic controls for a motorized fader myself. I can't get it to stop on point like your video shows. I then saw your website, and wanted to try your library, as it looks really thought out. I already have a Sparkfun TB6612FNG (https://www.sparkfun.com/products/14451) and you mentioned the TB6612FNG (I know you meant the chip, and I can't read datasheets, but I guess it would still have more connections than a L293D) in your hardware documentation. I have one small problem though:
According to the schematic PJordan2820 made in #6, the L293D only has two serial connections to the Arduino. The TB6612FNG I am working with has 4 (AIN1, AIN2, PWMA and Standby). How would I connect that to the Arduino to make it work with your library?
Thanks for taking the time to answer (or at least reading the question)
The text was updated successfully, but these errors were encountered: