misan / dcservo

Position control of DC motors
312 stars 113 forks source link

dc motor and servo and motor shield adafruit !!!!! plzz need help!!/: #20

Open themomza opened 7 years ago

themomza commented 7 years ago

i've been programming my robot with the adafruit v2 motor shield! everything works perfectly without the servo! but when i plug in the servo the DC motors of my robot stops working and the servo keeps turning from 0 to 180 degree. and when i unplug the servo the DC motors of my robots starts to work perfectly . so my DC motors doesn't work when i plug in the servo! can someone explain to me what the problem!

plzz i really need help!!??

misan commented 7 years ago

Out of the blue, servos require high currents sometimes. If you power the servo from Arduino's +5V supply the servo might bring it down ocassionally freezing the processor in the process.

On Thu, Apr 6, 2017 at 7:42 AM, themomza notifications@github.com wrote:

i've been programming my robot with the adafruit v2 motor shield! everything works perfectly without the servo! but when i plug in the servo the DC motors of my robot stops working and the servo keeps turning from 0 to 180 degree. and when i unplug the servo the DC motors of my robots starts to work perfectly . so my DC motors doesn't work when i plug in the servo! can someone explain to me what the problem!

plzz i really need help!!??

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/misan/dcservo/issues/20, or mute the thread https://github.com/notifications/unsubscribe-auth/AAccyN_gjO4oZAx4jw3t9t4dARM-6c4Sks5rtHstgaJpZM4M1JDv .

themomza commented 7 years ago

Ohh i see! But im plugging the servo in the motor shield and the motor shield is plugged on arduino and im supplying it with 6 AA batteries ( the wires of the batteries are plugged in arduino and in the motor shield ) ..

themomza commented 7 years ago

Im not using a vin jumper

themomza commented 7 years ago

Do you think there is any solution?

misan commented 7 years ago

what is powering the servo? +Vbatt? +5V?

On Thu, Apr 6, 2017 at 8:29 AM, themomza notifications@github.com wrote:

Do you think there is any solution?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/misan/dcservo/issues/20#issuecomment-292081240, or mute the thread https://github.com/notifications/unsubscribe-auth/AAccyAfvRckh_nIsCalsWRRJNbcMEgsEks5rtIZRgaJpZM4M1JDv .

themomza commented 7 years ago

image

themomza commented 7 years ago

As u can ser here i've tried the vin jumper and it didnt work still same problem... before i was plugging twi wires in the small blue thing (5-12vmotor) and it wasnt working

misan commented 7 years ago

Please read carefully the instructions of your board https://learn.adafruit.com/adafruit-motor-shield-v2-for-arduino/powering-motors

6V might not be the best choice either, read Arduino supply requirements too.

Yours seem entirely a supply problem.

On Thu, Apr 6, 2017 at 9:00 AM, themomza notifications@github.com wrote:

[image: image] https://cloud.githubusercontent.com/assets/26953444/24741710/2079807c-1a75-11e7-8fa4-3bea988993ae.jpg

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/misan/dcservo/issues/20#issuecomment-292086575, or mute the thread https://github.com/notifications/unsubscribe-auth/AAccyENUJ17iOhoVAHrx3qgZ9RCvlH0Kks5rtI15gaJpZM4M1JDv .

themomza commented 7 years ago

Im using 9 V there is two more batteries that didnt appear in the photox.x ! But i think your right! It might be a supply problem! Thank youu for your time btww ! :))