Main Menu

Site Menu

Who's Online

We have 31 guests and 7 members online
  • jacob
  • MarcoP
  • tjhty45jmnn
  • chriscc
  • adie8
  • Fritzoid
  • limor

Login Form






Lost Password?
No account yet? Register

Find us on Facebook

Welcome ( Log in )
Dynamixel & ARDUINO
Goto page 1, 2  Next
 
Post new topic   Reply to topic    RoboSavvy Forum Forum Index -> Bioloid & Robotis
View previous topic :: View next topic  
Author Message
alonsoBrain
Robot Builder
Robot Builder


Joined: 20 Sep 2006
Posts: 13

PostPosted: Thu Sep 20, 2007 3:43 pm    Post subject: Dynamixel & ARDUINO Reply with quote

Hi!

Is it possible to simulate an AX-12 Dynamixel device with an ARDUINO?
(assign ID, read the CM5 signals, write in the bus...)

Any help, link o reference?

thanks!
Back to top
View user's profile Send private message   Share
JonHylands
Savvy Roboteer
Savvy Roboteer


Joined: 09 Nov 2006
Posts: 512
Location: Ontario, Canada

PostPosted: Thu Sep 20, 2007 4:38 pm    Post subject: Reply with quote

Yes, you can do that. The ARDUINO boards use an ATmega168, which is (incidentally) the same processor I use in my boards.

The source code for my IMU is available - see:

http://www.bioloid.info/tiki/tiki-index.php?page=6-Axis+Bus+IMU

for the link to the repository where it is stored.

It wouldn't be that hard to change the control table to match what an AX-12 has...

- Jon
_________________
http://www.huv.com/blog
http://www.bioloid.info
http://www.huvrobotics.com
Back to top
View user's profile Send private message   Visit poster's website Share
limor
Savvy Roboteer
Savvy Roboteer


Joined: 11 Oct 2004
Posts: 1791
Location: London, UK

PostPosted: Thu Sep 20, 2007 8:38 pm    Post subject: Reply with quote

Jon,
Arduino doesnt have the circuitry to buffer between the RX and TX.
Do you think that simply shorting its RX and TX onto the AX12 data line would allow the Arduino to communicate with the AX12 (given appropriate code that would disable RX when TX is talking and v.v.) ?
Back to top
View user's profile Send private message   MSN Messenger Share
JonHylands
Savvy Roboteer
Savvy Roboteer


Joined: 09 Nov 2006
Posts: 512
Location: Ontario, Canada

PostPosted: Thu Sep 20, 2007 10:07 pm    Post subject: Reply with quote

Yes, that's what all my device boards do...

The ATmega UART can selectively switch off the transmit and receive pins while it is operating, which is what the code my brother wrote does. In general, the Tx pin is disabled, and its in receive mode. When it needs to transmit an answer back again, it disables the Rx pin, enables the Tx, and then sends the response, and switches them back again.

Or something very close to that...

- Jon
_________________
http://www.huv.com/blog
http://www.bioloid.info
http://www.huvrobotics.com
Back to top
View user's profile Send private message   Visit poster's website Share
limor
Savvy Roboteer
Savvy Roboteer


Joined: 11 Oct 2004
Posts: 1791
Location: London, UK

PostPosted: Thu Sep 20, 2007 10:29 pm    Post subject: Reply with quote

so you dont use the 748C126 component recommended by Robotis ?
Back to top
View user's profile Send private message   MSN Messenger Share
JonHylands
Savvy Roboteer
Savvy Roboteer


Joined: 09 Nov 2006
Posts: 512
Location: Ontario, Canada

PostPosted: Thu Sep 20, 2007 11:31 pm    Post subject: Reply with quote

No.

I use that for my USB interface, because you need it. But the AVR can handle in software what the tristate buffer is doing in hardware.

- Jon
_________________
http://www.huv.com/blog
http://www.bioloid.info
http://www.huvrobotics.com
Back to top
View user's profile Send private message   Visit poster's website Share
limor
Savvy Roboteer
Savvy Roboteer


Joined: 11 Oct 2004
Posts: 1791
Location: London, UK

PostPosted: Fri Sep 21, 2007 7:36 am    Post subject: Reply with quote

i didn't know that you had modules working this way. This issue was discussed before here with relation to the Pepper board and somehow I got the impression that there was some kind of electrical or signal problem with shorting the RX and TX on the Atmega.

But this is great news because it means that basically any Atmega controller board (with the 1mbps UART) can control the Bioloid bus.


Idea
Back to top
View user's profile Send private message   MSN Messenger Share
JonHylands
Savvy Roboteer
Savvy Roboteer


Joined: 09 Nov 2006
Posts: 512
Location: Ontario, Canada

PostPosted: Fri Sep 21, 2007 11:28 am    Post subject: Reply with quote

Yeah, as long as you have either an 8Mhz or 16Mhz crystal/oscillator, or use the built-in 8MHz one, you can do this.

- Jon
_________________
http://www.huv.com/blog
http://www.bioloid.info
http://www.huvrobotics.com
Back to top
View user's profile Send private message   Visit poster's website Share
alonsoBrain
Robot Builder
Robot Builder


Joined: 20 Sep 2006
Posts: 13

PostPosted: Fri Sep 21, 2007 1:44 pm    Post subject: Re: Dynamixel & ARDUINO Reply with quote

alonsoBrain wrote:
Hi!

Is it possible to simulate an AX-12 Dynamixel device with an ARDUINO?
(assign ID, read the CM5 signals, write in the bus...)



I think I'm loosing

... so... do i need any aditional hardware to conect both devices...?

thanks for your patience....

aB
Back to top
View user's profile Send private message   Share
alonsoBrain
Robot Builder
Robot Builder


Joined: 20 Sep 2006
Posts: 13

PostPosted: Fri Sep 21, 2007 1:45 pm    Post subject: Re: Dynamixel & ARDUINO Reply with quote

alonsoBrain wrote:
Hi!

Is it possible to simulate an AX-12 Dynamixel device with an ARDUINO?
(assign ID, read the CM5 signals, write in the bus...)



I think I'm loosing

... so... do i need any aditional hardware to conect both devices...?

thanks for your patience....

aB
Back to top
View user's profile Send private message   Share
JonHylands
Savvy Roboteer
Savvy Roboteer


Joined: 09 Nov 2006
Posts: 512
Location: Ontario, Canada

PostPosted: Fri Sep 21, 2007 2:07 pm    Post subject: Reply with quote

You need to cross the Rx and Tx pins of the ATmega168, and use the software I pointed out to you in my first reply. Don't short the pins until you have the software loaded, because otherwise you can burn out the UART. I typically solder a molex 2-pin header to the two pins, and then put a jumper across (see pic below - the jumper is just above the bus connection)...



Then you can modify that software so that instead of representing an IMU, it simulated an AX-12. The control table for the AX-12 is very well defined, and it should be fairly simple to do most of it. It really depends on how deep you want your simulation to be...

- Jon
_________________
http://www.huv.com/blog
http://www.bioloid.info
http://www.huvrobotics.com
Back to top
View user's profile Send private message   Visit poster's website Share
gr33nhorn
Robot Builder
Robot Builder


Joined: 13 Sep 2008
Posts: 12

PostPosted: Sat Sep 13, 2008 8:37 pm    Post subject: Reply with quote

hi guys,
i saw a thread from somewhere, some one use pnp transitor to create ttl half duplex....anyone know anything about it?
Back to top
View user's profile Send private message   Share
gr33nhorn
Robot Builder
Robot Builder


Joined: 13 Sep 2008
Posts: 12

PostPosted: Sun Sep 14, 2008 5:22 am    Post subject: Reply with quote

sorry for asking question where by alot of people asked before.i bought arduino months ago and wish to use its IDE to control ax-12.i saw a few thread but i just confuse with a few methods for connecting the rx and tx pins into ttl half dupex.hope you guys can give me some guidance
Back to top
View user's profile Send private message   Share
gr33nhorn
Robot Builder
Robot Builder


Joined: 13 Sep 2008
Posts: 12

PostPosted: Sun Sep 14, 2008 5:24 am    Post subject: Reply with quote

sorry for asking question where by alot of people asked before.i bought arduino months ago and wish to use its IDE to control ax-12.i saw a few thread but i just confuse with a few methods for connecting the rx and tx pins into ttl half dupex.hope you guys can give me some guidance
Back to top
View user's profile Send private message   Share
JonHylands
Savvy Roboteer
Savvy Roboteer


Joined: 09 Nov 2006
Posts: 512
Location: Ontario, Canada

PostPosted: Mon Sep 15, 2008 2:44 am    Post subject: Reply with quote

If you follow the instructions I posted above last year, you should be good.

- Jon
_________________
http://www.huv.com/blog
http://www.bioloid.info
http://www.huvrobotics.com
Back to top
View user's profile Send private message   Visit poster's website Share
Display posts from previous:   
Post new topic   Reply to topic    RoboSavvy Forum Forum Index -> Bioloid & Robotis All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 



Powered by phpBB ©

Contact us

In Our Store

 

VillagePlastics - Gray ABS Plastic - 1kg spool - 1.75mm
£44.33   £53.20 inc. VAT
 

GoogleSearch

Google
robosavvy.com
Web


Makerbot DARwIn-OP Robotis Sparkfun Kondo Robobuilder DfRobot Dagu
© 2013 RoboSavvy All rights reserved. Privacy Policy.