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.

Arduino UNO/Duemilanove 2dof firmware

Postby prilad » Thu 10. Jan 2013, 07:33

Hi, Guys.

I (with my friends) has created the port of alt. 2dof firmware to Arduino platform.
It must to work at all Arduino with atmega328p - UNO, Duemilanove, ( Nano not confirmed ).

WARNING !!! There are some communication errors for Arduino UNO with USB interface on ATmega8u2. I will try to resolve this problem
resolved in new firmwares

x-sim_arduino_uno_by_Ale.rar
New Arduino UNO/Duemilanove HEX files with baud rates 9600, 19200, 28800, 38400 and 57600
(7.87 KiB) Downloaded 2022 times


Here you can found soft for uploading HEX files to Arduino:
http://xloader.russemotto.com/

IMPORTANT: after flashing Arduino UNO you must unplug it from PC and then plug in again.

This port contains all features described in this thread ...
http://www.x-sim.de/forum/viewtopic.php?f=39&t=237
... with three changes:
- COM-port Baud now is 57600.
- LCD display is not supported
- Terminal is not supported (for parameters setting use xSimCTRL software)

Connecting diagram



Here is the video with simple work demonstration:


PS: This is a project of small group of authors and testers from:
http://mal4x.ru/viewforum.php?f=6


Posted 12/01/2013

One more video - test with wiper motor.




UPDATE 24.01.2013

Have a good news. I found Sparkfun Opto-isolator Breakout.
https://www.sparkfun.com/products/9118

Two channel opto-isolator


Best regards,
Ale.
Last edited by prilad on Thu 24. Jan 2013, 16:33, edited 15 times in total.
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 2dof firmware

Postby vicpopo » Thu 10. Jan 2013, 10:13

Hi Ale,

Could you explain the point for that you named '' galvanic isolation''

It's a component ?

Thanos developed a opto isolator board , it's the same princip with same components?

Regards
User avatar
vicpopo
 
Posts: 645
Joined: Fri 20. Apr 2012, 18:04
Location: Strasbourg France
Has thanked: 39 times
Been thanked: 80 times

Re: Arduino UNO 2dof firmware

Postby prilad » Thu 10. Jan 2013, 10:42

vicpopo wrote:Could you explain the point for that you named '' galvanic isolation''
It's a component ?
Thanos developed a opto isolator board , it's the same princip with same components?
Regards


Yes. This is a board with galvanic isolations ( http://en.wikipedia.org/wiki/Galvanic_isolation ) for each control lines. It may be based on opto-isolators as 6N137 (and you can use Thanos opto isolators board). And it may be based on "transformer" isolators, like ADuM1400 (http://www.platan.ru/pdf/datasheets/analogdevices/ADuM1400_1401_1402.pdf)
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 2dof firmware

Postby prodigy » Thu 10. Jan 2013, 11:29

BobBuilt wrote:Link for dual h bridge i would love to use : https://www.sparkfun.com/products/10182

I've read some comments on this page and someone put this link:
http://dx.com/p/monster-moto-shield-for ... red-161274

It the same driver but a lot cheaper. Whats the catch?
User avatar
prodigy
X-Sim Supporter
 
Posts: 274
Images: 42
Joined: Tue 16. Oct 2012, 12:32
Location: Pula, Croatia
Has thanked: 20 times
Been thanked: 22 times

Re: Arduino UNO 2dof firmware

Postby prilad » Thu 10. Jan 2013, 12:04

Hi, BobBuilt.

BobBuilt wrote:so that i may change the pin out to suit this shield, plus having a shield that just clips on over the ard will make it alot easier for new commers to play with plus the shield is already isolated and protected, no boards inbetween.


I can to create the new version, pin-to-pin compatible to Monster Moto Shield. But you must to know that PWM1 and PWM2 on pins used by this Shield has only 8-bit resolution (instead the 10-bit on pins in current firmware). And why do you say, what this shield is "isolated" ? It's not true (as I understand from schematics).

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 2dof firmware

Postby prilad » Thu 10. Jan 2013, 14:38

Hi, BobBuilt

in first you wrote:
BobBuilt wrote:plus the shield is already isolated and protected

and in second
BobBuilt wrote:The motor driver is protected internally same as the jrk to stop any power feedback or relating issues. As advised by Pololu who use the driver extensivly.


And I say, that this board has not any isolation, only protection. But this is not the same things. The POWER GROUND on this board connected to USB GROUND. I do not like this situation.

BobBuilt wrote:Didnt realize the diff in pwm pin outs, so even if hook this up with patching wires it wont work.
Please advise I can do a test.

Now connection diagram for my firmware used another Arduino pins. And you should make RIGHT connection to your Monster Shield by wire. And then you can test it.

BobBuilt wrote:Im eager been playing with a uno for a while now, just got lost in pid control. And suppose it wont be good to derate your firmware so we can use a bought shield.

By using Arduino IDE and sketches difficult to build a high performance "real time" firmware for x-sim. (IMHO) I wrote programm on C and assembler. It is not "arduino scetch"
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 2dof firmware

Postby vicpopo » Thu 10. Jan 2013, 19:49

prilad wrote:
vicpopo wrote:Could you explain the point for that you named '' galvanic isolation''
It's a component ?
Thanos developed a opto isolator board , it's the same princip with same components?
Regards


Yes. This is a board with galvanic isolations ( http://en.wikipedia.org/wiki/Galvanic_isolation ) for each control lines. It may be based on opto-isolators as 6N137 (and you can use Thanos opto isolators board). And it may be based on "transformer" isolators, like ADuM1400 (http://www.platan.ru/pdf/datasheets/analogdevices/ADuM1400_1401_1402.pdf)


Thanks Ale,
I appreciate so much all your efforts to explain simply and with a lot of pedagogy all we ask you!!

Best Regards

Gilles
User avatar
vicpopo
 
Posts: 645
Joined: Fri 20. Apr 2012, 18:04
Location: Strasbourg France
Has thanked: 39 times
Been thanked: 80 times

Re: Arduino UNO 2dof firmware

Postby tronicgr » Thu 10. Jan 2013, 20:45

Optoisolation is good to have but some times could be expensive...

http://www.digikey.com/product-detail/en/ADUM1400CRW/ADUM1400CRW-ND/612551, price $8.30, but SMD

Or these http://www.digikey.com/product-detail/en/AD260AND-4/AD260AND-4-ND/617060, price $61.60, PDIP package.

Either way these are not even in stock!!!! :shock:


Thanos
User avatar
tronicgr
 
Posts: 624
Images: 11
Joined: Tue 20. Mar 2012, 22:10
Location: San Diego, CA
Has thanked: 130 times
Been thanked: 50 times

Re: Arduino UNO 2dof firmware

Postby motiondave » Fri 11. Jan 2013, 00:59

tronicgr wrote:Optoisolation is good to have but some times could be expensive...

http://www.digikey.com/product-detail/en/ADUM1400CRW/ADUM1400CRW-ND/612551, price $8.30, but SMD

Or these http://www.digikey.com/product-detail/en/AD260AND-4/AD260AND-4-ND/617060, price $61.60, PDIP package.

Either way these are not even in stock!!!! :shock:


Thanos


so we wait till they are in stock then
User avatar
motiondave
 
Posts: 997
Images: 1
Joined: Tue 20. Mar 2012, 16:36
Location: Sydney Australia
Has thanked: 11 times
Been thanked: 13 times

Re: Arduino UNO 2dof firmware

Postby tronicgr » Fri 11. Jan 2013, 05:28

Whatever :roll:
User avatar
tronicgr
 
Posts: 624
Images: 11
Joined: Tue 20. Mar 2012, 22:10
Location: San Diego, CA
Has thanked: 130 times
Been thanked: 50 times

Next

Return to Controllers and Drivers Projects

Who is online

Users browsing this forum: No registered users and 2 guests