Adafruit 16-Channel 12-bit PWM/Servo Driver not driving servos
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- walker
- Posts: 77
- Joined: Sat Aug 04, 2012 8:40 am
Re: Adafruit 16-Channel 12-bit PWM/Servo Driver not driving servos
Yes, I WAS being a bit thick about the connection of the LED. I realized that after rereading your post again. I'll run that test again this evening with the correct LED connections.
- walker
- Posts: 77
- Joined: Sat Aug 04, 2012 8:40 am
Re: Adafruit 16-Channel 12-bit PWM/Servo Driver not driving servos
I've had a chance to test with the LED connected correctly. Just to be clear... Anode (+... the long lead) connected to PWM, and Cathode (-... the short lead) connected to GND. This was on port 0 still running the default Servo sketch. Unfortunately I'm getting nothing out of the LED at all. I tried hitting the reset button several times with the same results. I also tried loading up the pwmtest sketch but no results with that either.
If I move the Anode onto the V+ pin I get full brightness as expected. (I just did this to make sure I hadn't burned out the LED during testing.)
I'm still working on gettig my Rpi configured for i2c. Hopefully I'll have that working tonight.
If I move the Anode onto the V+ pin I get full brightness as expected. (I just did this to make sure I hadn't burned out the LED during testing.)
I'm still working on gettig my Rpi configured for i2c. Hopefully I'll have that working tonight.
- walker
- Posts: 77
- Joined: Sat Aug 04, 2012 8:40 am
Re: Adafruit 16-Channel 12-bit PWM/Servo Driver not driving servos
I got the Rpi set up for gpio and i2c this evening and tested going direct to the PWM board. It seemed like that would be easier than hooking up the logic level converter for the Rpi to Arduino connection.
Unfortunately the i2cdetect command doesn't see the board. I should see a device at 0x40 but just have 2 dashes there. Here is a pic with the connections using a pi cobbler. I wish I had another i2c device hanging around but the only other thing I have is the Arduino. I noticed in the pwmtest sketch that you can set the bitrate using TWBR. Can I use it to reduce the bitrate and get a more reliable connection? I can't seem to find docs about TWBR to determine what to set it to.
I guess I'd better get busy wiring the Uno into the i2c bus.
Unfortunately the i2cdetect command doesn't see the board. I should see a device at 0x40 but just have 2 dashes there. Here is a pic with the connections using a pi cobbler. I wish I had another i2c device hanging around but the only other thing I have is the Arduino. I noticed in the pwmtest sketch that you can set the bitrate using TWBR. Can I use it to reduce the bitrate and get a more reliable connection? I can't seem to find docs about TWBR to determine what to set it to.
I guess I'd better get busy wiring the Uno into the i2c bus.
- adafruit_support_bill
- Posts: 88097
- Joined: Sat Feb 07, 2009 10:11 am
Re: Adafruit 16-Channel 12-bit PWM/Servo Driver not driving servos
The wiring looks right (although your choice of colors for VCC and GND did confuse me for a bit ) http://www.ece.rice.edu/~jdw/242_lab4/file.4.html
Slowing down the bit-rate can make it more reliable on longer runs, but with the short jumpers you have there, it should not be an issue. Have you replicated this with your second PWM/Servo breakout too?
Slowing down the bit-rate can make it more reliable on longer runs, but with the short jumpers you have there, it should not be an issue. Have you replicated this with your second PWM/Servo breakout too?
- walker
- Posts: 77
- Joined: Sat Aug 04, 2012 8:40 am
Re: Adafruit 16-Channel 12-bit PWM/Servo Driver not driving servos
Yeah! Sorry, I'm pretty new to breadboarding.
Unfortunately I get the same exact behavior from the second board.
Unfortunately I get the same exact behavior from the second board.
- adafruit_support_bill
- Posts: 88097
- Joined: Sat Feb 07, 2009 10:11 am
Re: Adafruit 16-Channel 12-bit PWM/Servo Driver not driving servos
I have to admit I am completely out of ideas now. It seems extremely unlikely that you could get two bad boards - especially since we test each one as they come off the production line. But I don't see anything wrong with your assembly or wiring on either the Arduino or the Pi. Thanks for being patient and running all the tests.
If you contact [email protected] with a link to this thread, we can send you replacements.
If you contact [email protected] with a link to this thread, we can send you replacements.
- walker
- Posts: 77
- Joined: Sat Aug 04, 2012 8:40 am
Re: Adafruit 16-Channel 12-bit PWM/Servo Driver not driving servos
Thanks, you've been very patient as well. I appreciate the service. I'm willing to send these boards back if you want to test them there. I agree about the chances for both boards being bad. I didn't see anything in the shipping package or the boards themselves that would indicate a problem there. And I don't know of anything in my environment that might cause an issue either.
I'll post back here if the replacement boards work (or not.)
I'll post back here if the replacement boards work (or not.)
- walker
- Posts: 77
- Joined: Sat Aug 04, 2012 8:40 am
Re: Adafruit 16-Channel 12-bit PWM/Servo Driver not driving servos
I received the replacement boards this evening and assembled them. Both of them are working as expected! I don't know what was wrong with the two other boards but these two worked great right away. I don't feel I did anything differently but I know it's hard to tell for sure.
I haven't tried it with the Rpi yet, and I haven't tried chaining them but I'm feeling pretty confident after this initial success. Thanks for all of your help!
I haven't tried it with the Rpi yet, and I haven't tried chaining them but I'm feeling pretty confident after this initial success. Thanks for all of your help!
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
-
- Posts: 4
- Joined: Wed Jan 23, 2013 8:51 pm
Re: Adafruit 16-Channel 12-bit PWM/Servo Driver not driving servos
I think I may be in the same boat as Walker.
I have one of these boards hooked up to a rev B Pi (both purchased near the end of January). I've re-checked my soldering and made sure I have continuity from the board through a T-cobbler and back to the Pi. However I can't get i2cdetect -y 1 to show me an address.
Thanks for any help!
Jon
I have one of these boards hooked up to a rev B Pi (both purchased near the end of January). I've re-checked my soldering and made sure I have continuity from the board through a T-cobbler and back to the Pi. However I can't get i2cdetect -y 1 to show me an address.
- The green LED on the servo board lights when connected.
- I didn't think the servo power supply was needed but I've tried it both ways.
- I even attached an LED to SDA looking for activity. I get a quick flicker when I run i2cdetect.
Thanks for any help!
Jon
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Adafruit 16-Channel 12-bit PWM/Servo Driver not driving servos
Sounds like it could be an intermittent connection. Maybe try some different breadboard locations. I'd you post a picture of your wiring and of the servo board, we'll have a look.
- adafruit_support_bill
- Posts: 88097
- Joined: Sat Feb 07, 2009 10:11 am
Re: Adafruit 16-Channel 12-bit PWM/Servo Driver not driving
In your photo, I see connections for GND, VCC, SDA and SCL. I do not see any connection for V+.
VCC provides power to the chips on the board. V+ provides power to the servos.
VCC provides power to the chips on the board. V+ provides power to the servos.
- adafruit_support_bill
- Posts: 88097
- Joined: Sat Feb 07, 2009 10:11 am
Re: Adafruit 16-Channel 12-bit PWM/Servo Driver not driving
Good to hear things are working for you again. Thanks for the follow-up.
Please be positive and constructive with your questions and comments.