Adafruit moto shield and PING sensor - sensor stops working

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
ncoronges
 
Posts: 2
Joined: Sun Feb 10, 2013 10:03 am

Adafruit moto shield and PING sensor - sensor stops working

Post by ncoronges »

I have assembled and soldered the adafruit motor shield from kit, and successfully got motors, servo and PING distance sensors working.. HOWEVER, once the motors run for about 10-20 seconds, the PING sensor appears to just power off.. The distance readings also stop showing accurate readings. It appears that running the motors causes the PING sensor to power off, because i can run tests without the motors running and the sensor works consistently and apparently indefinitely.

The solder job is over all pretty crappy but i dont see anything obvious. Before i start general clean up, wondering if the above behavior sounds indicative of something particular. thanks in advance for any help.
Attachments
image (1).jpeg
image (1).jpeg (137.12 KiB) Viewed 574 times
image.jpeg
image.jpeg (138.59 KiB) Viewed 574 times

User avatar
adafruit_support_bill
 
Posts: 88097
Joined: Sat Feb 07, 2009 10:11 am

Re: Adafruit moto shield and PING sensor - sensor stops working

Post by adafruit_support_bill »

DC motors (and in particular the ones from that 4WD chassis in the photo) generate a LOT of brush noise that feeds back into the system. Sometimes it is bad enough to cause the Arduino to reset. In your case it sounds like it may be interfering with your ping sensor.

Look down near the end of the FAQ for a solution: http://learn.adafruit.com/adafruit-motor-shield/faq
Your kit may have come with 1 capacitor per motor, but based on the feedback we have been getting, most need the full 3 capacitor treatment.

ncoronges
 
Posts: 2
Joined: Sun Feb 10, 2013 10:03 am

Re: Adafruit moto shield and PING sensor - sensor stops working

Post by ncoronges »

Just wanted to mention i put 2 additional capacitors on each motor, for a total of 3 on each.. and this worked perfectly. no more signal failure on the PING sensor. thanks.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”