Author Topic: Arduino Based Robot tank servo motors reset arduino  (Read 360 times)

0 Members and 1 Guest are viewing this topic.

Offline queennikki1972

  • Regular Contributor
  • *
  • Posts: 133
  • Country: us
  • We all start out as newbie's..be kind
Arduino Based Robot tank servo motors reset arduino
« on: September 28, 2019, 09:10:19 pm »
So I have this arduino based tank, that uses 12V Battery pack with power switch for the motors.

I can power the arduino from the same battery pack, however, when the motors stop, and change directions, there is a brief disruption in power, enough to keep resetting the arduino. Now I have plenty of components lying around and was wondering what I can do to fix this, maybe with capacitors or something????

Current solution is a separate 9v battery for the Arduino.. aka 2 separate power sources.

When I power my entire tank from only one power source using variable bench power supply at a constant current that seems to fix the issue. Maybe I just need a more powerful battery pack???
« Last Edit: September 29, 2019, 12:24:59 am by queennikki1972 »
Siglent SDS 1202X-E - Heathkit IO-4105 - Dr. Meter 0-30v 5a power supply - 862d+ combo unit - Weller WLC100 - Kunkin KL283 DC load. Not much gear yet.
 

Offline sleemanj

  • Super Contributor
  • ***
  • Posts: 2455
  • Country: nz
  • Professional tightwad.
    • The electronics hobby components I sell.
Re: Arduino Based Robot tank servo motors reset arduino
« Reply #1 on: September 29, 2019, 01:11:51 am »
Put a big electrolytic capacitor directly on a VCC and Gnd pin of the arduino (or prefereably solder directly to a Vcc/Gnd pin on the ATMega itself).
~~~
EEVBlog Members - get yourself 10% discount off all my electronic components for sale just use the Buy Direct links and use Coupon Code "eevblog" during checkout.  Shipping from New Zealand, international orders welcome :-)
 
The following users thanked this post: queennikki1972

Offline queennikki1972

  • Regular Contributor
  • *
  • Posts: 133
  • Country: us
  • We all start out as newbie's..be kind
Re: Arduino Based Robot tank servo motors reset arduino
« Reply #2 on: September 29, 2019, 11:58:38 am »
I also had to put a 5 volt regulator before the vcc using lm2596 module and it works now.
Siglent SDS 1202X-E - Heathkit IO-4105 - Dr. Meter 0-30v 5a power supply - 862d+ combo unit - Weller WLC100 - Kunkin KL283 DC load. Not much gear yet.
 

Offline MarkR42

  • Contributor
  • Posts: 36
  • Country: gb
Re: Arduino Based Robot tank servo motors reset arduino
« Reply #3 on: October 03, 2019, 03:44:07 pm »
My guess is that the internal resistance of your supply is too high, or there are not enough smoothing capacitors on the MCU supply.

What kind of batteries are you using? Are they rated for the instantaneous current you're pulling?
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 9395
  • Country: my
  • reassessing directives...
Re: Arduino Based Robot tank servo motors reset arduino
« Reply #4 on: October 04, 2019, 12:45:19 am »
just completed a mini project involving controlling servo motor from an mcu on a pcb. the power to servo is routed on the pcb and return current shared the gnd plane as the mcu, mcu has local decoupling cap, power input has one as well capacitor tank 10uF, the mcu keep resettting/halted each time the servo tries to move to a position, i put protection diode at servo power input, capacitor on various places, mcu still resetted, the only solution is to power servo from external power supply. the on board power source is china smps module 3A rated, i guesstimate the small servo only spiked to 1-2A when commanding to a position. i guess pcb traces is just not enough, or cant be shared with digital circuit, adding super big capacitor on the small board is not logical so i think i will need separate V+/GND traces running from power source point to power connector end that will power the servo/motor next time, ie bypassing, or not sharing the same line as the power that goes to the mcu. sort of star V+, star gnd config, or jumper wires. i remember i experienced this before but i guess i never learn.
if something can select, how cant it be intelligent? if something is intelligent, how cant it exist?
 

Offline queennikki1972

  • Regular Contributor
  • *
  • Posts: 133
  • Country: us
  • We all start out as newbie's..be kind
Re: Arduino Based Robot tank servo motors reset arduino
« Reply #5 on: October 06, 2019, 05:53:12 pm »
My guess is that the internal resistance of your supply is too high, or there are not enough smoothing capacitors on the MCU supply.

What kind of batteries are you using? Are they rated for the instantaneous current you're pulling?

It is just 2 servos, arduino and power switch and some running lights. Using regular AA batteries. The capacitor fixed it from resetting and it has to be run directly from the arduino vcc, however the max voltage on vcc is 5v max so i used the regulator to get the 5v for vcc and the capacitor inline with the vcc as well and now it works. I never ordered lithium or nicad batteries because it was meant to be something simple ..
Siglent SDS 1202X-E - Heathkit IO-4105 - Dr. Meter 0-30v 5a power supply - 862d+ combo unit - Weller WLC100 - Kunkin KL283 DC load. Not much gear yet.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf