Arduino UNO/Duemilanove 2dof firmware

AMC, H-Bridge projects etc.
Please use the image gallery for your pictures, a short tutorial can be found here.
The first image in the first post will be shown in the project gallery.

Re: Arduino UNO/Duemilanove 2dof firmware

Postby prilad » Fri 25. Jan 2013, 18:32

Hi, menix
menix wrote:Can you please help me to connect the UNO to Sabertooth 2x25 Motrodriver?
The Sabertooth have only S1 S2 5V and ground
And which mode should i use for the Sabertooth? R/C , analog,serial??



You can controll Sabertooth by PWM signal in analog mode.

In this datasheet...
http://www.dimensionengineering.com/datasheets/Sabertooth2x25.pdf
... we can read

If you are using a filtered PWM signal from a microcontroller to generate the analog voltage, an R/C filter
with component values 10k ohms and at least .1uf is recommended.


But for this PWM signal must contain information about direction and must be generated by the following rules:
- 0% PWM mean maximum power to ONE direction
- 50% PWM mean STOP motor
- 100% PWM mean maximum power to OTHER direction

Unfortunately you can not connect Sabertooth 2x25 to Arduino UNO with current firmware version, because my firmware can't generate PWM with this rules YET.

Regards.
Ale
User avatar
prilad
 
Posts: 174
Images: 1
Joined: Tue 3. Apr 2012, 14:20
Location: Dubna, Moscow reg., Russia
Has thanked: 3 times
Been thanked: 37 times

Re: Arduino UNO/Duemilanove 2dof firmware

Postby menix » Fri 25. Jan 2013, 18:49

oh
thx for this reply
do i have any other chance to run the sabertooth with arduino?
menix
 
Posts: 36
Joined: Tue 20. Mar 2012, 19:44
Has thanked: 1 time
Been thanked: 0 time

Re: Arduino UNO/Duemilanove 2dof firmware

Postby prilad » Fri 25. Jan 2013, 18:52

menix wrote:oh
thx for this reply
do i have any other chance to run the sabertooth with arduino?


I'll try to make version for...
User avatar
prilad
 
Posts: 174
Images: 1
Joined: Tue 3. Apr 2012, 14:20
Location: Dubna, Moscow reg., Russia
Has thanked: 3 times
Been thanked: 37 times

Re: Arduino UNO/Duemilanove 2dof firmware

Postby menix » Fri 25. Jan 2013, 19:03

Thank you very much

greetz
Menix
menix
 
Posts: 36
Joined: Tue 20. Mar 2012, 19:44
Has thanked: 1 time
Been thanked: 0 time

Re: Arduino UNO/Duemilanove 2dof firmware

Postby Eurospike » Fri 25. Jan 2013, 21:39

Hi
Really new to this and have purchased this Motor driver board
http://www.ebay.co.uk/itm/High-Current-Dual-Motor-Driver-Module-Board-with-Heat-Sink-PWM-Signal-NEW-/221161177037?pt=LH_DefaultDomain_0&hash=item337e3bbfcd&nma=true&si=TPF16UkwSxOp%252FP5Y5wXpjyRz1gQ%253D&orig_cvip=true&rt=nc&_trksid=p2047675.l2557
Will this work with the Arduino UNO current firmware and how would you recommend it be wired. I have purchased Opto Isolators to go between the 2 boards but not 100% sure on how to wire together?
I also seem to have issues with communication between the converter and the Arduino UNO. I can load the firmware and I then reconnect but the converter cannot talk to the board. What settings do you recommend?

Many thanks

Trevor
Eurospike
 
Posts: 8
Images: 2
Joined: Fri 28. Dec 2012, 01:38
Location: Buckingham UK
Has thanked: 0 time
Been thanked: 0 time

Re: Arduino UNO/Duemilanove 2dof firmware

Postby prilad » Fri 25. Jan 2013, 23:23

Eurospike wrote:Really new to this and have purchased this Motor driver board


This driver designed as Full-bridge. But firmware can't control full-bridge, only half-bridge. You can connect DIR1 to IN1_L and PWM1 to IN2_L (DIR2 to IN3_R and PWM2 to IN4_R) and use this driver in "half-bridge" mode. With opto-isolator, of course.

Eurospike wrote:I also seem to have issues with communication between the converter and the Arduino UNO. I can load the firmware and I then reconnect but the converter cannot talk to the board. What settings do you recommend?


What the "converter"? If xSimCTRL - look this thread. There is some videos and instruction...

Regards,
Ale
User avatar
prilad
 
Posts: 174
Images: 1
Joined: Tue 3. Apr 2012, 14:20
Location: Dubna, Moscow reg., Russia
Has thanked: 3 times
Been thanked: 37 times

Re: Arduino UNO/Duemilanove 2dof firmware

Postby telfel » Sat 26. Jan 2013, 12:57

Hi Ale

Can you confirm the connections for the ebay chinese H bridge as linked by Eurospike

This driver designed as Full-bridge. But firmware can't control full-bridge, only half-bridge. You can connect DIR1 to IN1_L and PWM1 to IN2_L (DIR2 to IN3_R and PWM2 to IN4_R) and use this driver in "half-bridge" mode. With opto-isolator, of course.


the connection table I have is as follows

Motor 1 IN1L=dir IN2L=dir EN=pwm. ---- IN1L=1, IN2L=0 Motor Clockwise (CW) or IN1L=0 IN2L=1 Motor Counter clockwise (CCW)

Motor2 IN1R=dir IN2R=dir EN=pwm ---- As motor1 above

can you confirm your latest firmware can drive this motor driver


regards Terry
User avatar
telfel
 
Posts: 108
Images: 54
Joined: Thu 22. Mar 2012, 19:05
Location: Borders Scotland UK
Has thanked: 2 times
Been thanked: 9 times

Re: Arduino UNO/Duemilanove 2dof firmware

Postby prilad » Sat 26. Jan 2013, 14:26

Hy Terry
telfel wrote:the connection table I have is as follows

Motor 1 IN1L=dir IN2L=dir EN=pwm. ---- IN1L=1, IN2L=0 Motor Clockwise (CW) or IN1L=0 IN2L=1 Motor Counter clockwise (CCW)

Motor2 IN1R=dir IN2R=dir EN=pwm ---- As motor1 above

can you confirm your latest firmware can drive this motor driver



Yes. You can find "Connection diagram" in the topic page. Latest firmware has 3 lines for control all motors - M1_DIR1, M1_DIR2 (opposite phase) and M1_PWM (for first motor) and M2_DIR1, M2_DIR2, M2_PWM (for second).

Regards,
Ale
User avatar
prilad
 
Posts: 174
Images: 1
Joined: Tue 3. Apr 2012, 14:20
Location: Dubna, Moscow reg., Russia
Has thanked: 3 times
Been thanked: 37 times

Re: Arduino UNO/Duemilanove 2dof firmware

Postby Eurospike » Sat 26. Jan 2013, 19:03

Hi Ale
Thanks for pointing me in the right direction, did not realise I had to look at your other post on Alt. firmware and GUI for Thanos's AMC1.5 & AMC1.6 http://www.x-sim.de/forum/viewtopic.php?f=39&t=237 :oops:

I have tried to wire the Motor driver board as you have mentioned above (both ways) but it only drives the motor in one direction. Could this have anything to do with the way I have wired my opto isolators?

Thanks Again

Trevor
Eurospike
 
Posts: 8
Images: 2
Joined: Fri 28. Dec 2012, 01:38
Location: Buckingham UK
Has thanked: 0 time
Been thanked: 0 time

Re: Arduino UNO/Duemilanove 2dof firmware

Postby prilad » Sat 26. Jan 2013, 19:11

Eurospike wrote:I have tried to wire the Motor driver board as you have mentioned above (both ways) but it only drives the motor in one direction. Could this have anything to do with the way I have wired my opto isolators?

Can you send your "wiring" scetch? How you conect (if you do this) controller board to opto-isolator and to power bridge?
User avatar
prilad
 
Posts: 174
Images: 1
Joined: Tue 3. Apr 2012, 14:20
Location: Dubna, Moscow reg., Russia
Has thanked: 3 times
Been thanked: 37 times

PreviousNext

Return to Controllers and Drivers Projects

Who is online

Users browsing this forum: No registered users and 1 guest