Go Down

Topic: TB6600 Stepper Motor Driver & Arduino (Read 643 times) previous topic - next topic

64GTO

I am trying to follow the example hookup show here:

https://www.dfrobot.com/wiki/index.php/TB6600_Stepper_Motor_Driver_SKU:_DRI0043


Seems to me what's not shown is power to the Arduino. If the power to the controller is 12-14 volts from a lead acid battery can I run jumpers from there to Vin on the Arduino?


Robin2

You could. However 14v is a little on the high side for an Arduino if you have other modules drawing power from its 5v pin.

Or you could use a 7805 voltage regulator to drop the battery voltage to 5v and power the Arduino through the 5v pin.

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

64GTO

Ok, I was thinking about dropping the voltage. The 7805 is a simple solution.

TomGeorge

Hi,
If the power to the controller is 12-14 volts from a lead acid battery can I run jumpers from there to Vin on the Arduino?
If you are using a lead acid battery please fit a fuse in the positive wire at the battery.
Lead Acid batteries can supply huge amounts of current if confronted by a short circuit, this can be very destructive to electronic components and wiring.
Thanks.. Tom.. :)
Everything runs on smoke, let the smoke out, it stops running....

64GTO

Good advice on the fuse.

I now have a regulated 12v supply powering both the controller and arduino. Its driving a small stepper motor at 1A per phase and everything is working fine.

I'm using a Mac to update and upload the sketch to arduino via USB.

Can I leave the USB connected to the arduino while the arduino is running and powered by the external 12v source?

Can I upload a new sketch while the arduino is looping thru the last sketch that was uploaded?

Robin2

Can I leave the USB connected to the arduino while the arduino is running and powered by the external 12v source?

Can I upload a new sketch while the arduino is looping thru the last sketch that was uploaded?
Yes

Yes

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

TomGeorge

#6
Jan 12, 2018, 01:20 am Last Edit: Jan 12, 2018, 01:20 am by TomGeorge
Can I upload a new sketch while the arduino is looping thru the last sketch that was uploaded?
Yes, you can BUT be aware that your running code will STOP at some stage, wait for the new code to load, then RESTART with the new code.

So if your stepper is running, it will stop, then run again from the start of the new program.

In your code do you have a stop/start button(s)?

Tom... :)
Everything runs on smoke, let the smoke out, it stops running....

64GTO

No start stop buttons in the code.

How and why would they be used?

TomGeorge

No start stop buttons in the code.

How and why would they be used?
I don't know you application.
So how do you stop and start your project, just turning power ON/OFF which is fair enough.
Tom.. :)
Everything runs on smoke, let the smoke out, it stops running....

64GTO

Yes there will be a mechanical switch to turn off the power.

I thought you were referring to a switch in the software.

TomGeorge

Yes there will be a mechanical switch to turn off the power.

I thought you were referring to a switch in the software.
I was, but you seem not to need one... :)


Tom... :)
Everything runs on smoke, let the smoke out, it stops running....

Go Up