dc noise making servo go crazy

doing a school project to make a boat move using compass. Everything works great until the dc motor turns on. The servo goes crazy. when the dc motor is off the servo does what is supposed to. I have everything connected to the same ground. I think is noise but I dont know how to fix it. I put a capacitor in the motor and did nothing.
Should I change to a brushless motor? Any ideas?

Thank you

ilovepie:
doing a school project to make a boat move using compass. Everything works great until the dc motor turns on. The servo goes crazy. when the dc motor is off the servo does what is supposed to. I have everything connected to the same ground. I think is noise but I dont know how to fix it. I put a capacitor in the motor and did nothing.
Should I change to a brushless motor? Any ideas?

Thank you

Is the DC motor on a separate power supply? A schematic would certainly help someone with suggestions, as well as a picture showing how you have all the wiring is done. Did you place the capacitor directly at the motor terminals?
Paul

change the motor to brushless

I can clearly see your project, you are using the Arduino as a Power Supply which it is NOT! Others have asked for a schematic showing all power and ground connections including interconnections, not a frizzy thing. Capacitors can create problems as well as solve them. How well decoupled is the power supplies?

Any ideas?

yes, post a schematic and your code

Maybe voltage spikes from the motor are confusing the compass.

herbschwarz:
Maybe voltage spikes from the motor are confusing the compass.

I agree, we need to see a circuit diagram and a picture of the project to see the component layout.
Tom.... :slight_smile:

Seperate supply for motor and servo from the Arduino, good decoupling on that supply, twisted pair
for all high current connections: these are fundamental precautions you need if you don't have them already.

It does sound like the power supply is inadequate for both motor and servo. Motors and servos take loads
of current, its very common for people to not provide adequate power when starting out.

79galinakorczak:
change the motor to brushless

Are they the ones with the really big magnets?

this one is strong

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.