Welcome, Guest. Please Login or Register
YaBB - Yet another Bulletin Board
09.02.2010 at 19:19:44
News: Server upgrade went fine, you are now at the new system


Pages: 1 2 
Arduino + Lego NXT (Read 29503 times)
arduino.poet
YaBB Newbies
*
Offline

Arduino rocks

Posts: 23

Arduino + Lego NXT
17.09.2008 at 16:16:04
 
Hi everyone!

I'm proud to introduce you to... Arduway, a robot made of Arduino and Lego NXT components.
I'm releasing soon a software library to control LEGO NXT motors and a few sensors I have used: it's not as well documented as it could but I think it will still be better than nothing...



A short movie is coming soon as well!
Back to top
 
 
View Profile   IP Logged
mikalhart
God Member
*****
Offline

Arduino rocks

Posts: 940
Austin, TX USA
Re: Arduino + Lego NXT
Reply #1 - 17.09.2008 at 18:38:05
 
Outstanding!  Thanks for sharing.  I look forward to the collateral and libraries.

M
Back to top
 
 
View Profile   IP Logged
arduino.poet
YaBB Newbies
*
Offline

Arduino rocks

Posts: 23

Re: Arduino + Lego NXT
Reply #2 - 18.09.2008 at 06:19:39
 
Back to top
 
 
View Profile   IP Logged
Grumpy_Mike
God Member
*****
Offline

Solder is electric
glue

Posts: 5198
Manchester (England England)
Gender: male
Re: Arduino + Lego NXT
Reply #3 - 18.09.2008 at 10:37:06
 
Now that is impressive well done.  Cheesy

The last 30 seconds of the video is just black, is that right?  Huh
Back to top
 
 
View Profile | WWW   IP Logged
Syvwlch
Full Member
***
Offline

Ard at work

Posts: 192
New Jersey
Gender: male
Re: Arduino + Lego NXT
Reply #4 - 18.09.2008 at 15:03:45
 
Nice! Thanks for sharing Smiley
Back to top
 
 
View Profile | WWW   IP Logged
arduino.poet
YaBB Newbies
*
Offline

Arduino rocks

Posts: 23

Re: Arduino + Lego NXT
Reply #5 - 19.09.2008 at 08:11:05
 
I'm proud to announce that the library I've created, arduino2lego, is now on Sourceforge:
http://sourceforge.net/projects/a2l/

Since it's not well commented, if you have any questions about hardware/software, just ask and I'll be glad to explain what I've done  Wink


PS: the video is all black at the end... sorry...
Does anyone know how to crop it without losing comments, views?
Back to top
 
 
View Profile   IP Logged
TomP
YaBB Newbies
*
Offline

Arduino rocks

Posts: 39

Re: Arduino + Lego NXT
Reply #6 - 29.09.2008 at 01:37:57
 
I'll bite. How are you measuring the tilt?  A accelerometer, a gyroscope or both?  Or, are you doing it with distance sensors?

Tom
Back to top
 
 
View Profile   IP Logged
arduino.poet
YaBB Newbies
*
Offline

Arduino rocks

Posts: 23

Re: Arduino + Lego NXT
Reply #7 - 02.10.2008 at 00:28:23
 
The tilt is measured by a gyroscope (Epson).
The gyroscope tells angular speed so integration is needed to obtain actual angle.

Datasheet(s):
http://ndap3-net.ebz.epson.co.jp/w/www/PDFS/epdoc_qd.nsf/f5af260ddc5fb8ed49256a9...
http://www.epsontoyocom.co.jp/english/product/Sensor/set01/xv8100cb/index.html
Back to top
 
 
View Profile   IP Logged
msx
Full Member
***
Offline

Arduino rocks

Posts: 109

Re: Arduino + Lego NXT
Reply #8 - 02.10.2008 at 14:24:28
 
and how do you correct the drift ?

PS great work!
Back to top
 
 
View Profile | WWW   IP Logged
arduino.poet
YaBB Newbies
*
Offline

Arduino rocks

Posts: 23

Re: Arduino + Lego NXT
Reply #9 - 02.10.2008 at 18:31:00
 
The drift is not evident in the first moments of functioning so it was satisfying enough for our purpose.
I tried anyway to correct it (to make the robot stand up hours and hours) using a band-pass filter (instead of an integrator) but it was not working as well as one would expect.
...Are you aware of any other method?

It would certainly be better not to have to integrate: this would avoid the integration drift.

As a conclusion... if you're thinking of creating your own Arduway think of replacing the gyroscope with a compass that directly returns the angle.
Back to top
 
 
View Profile   IP Logged
TomP
YaBB Newbies
*
Offline

Arduino rocks

Posts: 39

Re: Arduino + Lego NXT
Reply #10 - 02.10.2008 at 18:54:36
 
Quote:
..Are you aware of any other method?


To do it right, it sounds like you need an accelerometer, too.  David Anderson provides a pretty detailed description of how he did this on his nBot web site

He explains, "The gyroscope and accelerometer are combined with complementary filters to provide an inertial reference sensor. The ADXL202 accelerometer provides accurate static tilt information, when the robot is not accelerating. The gyroscope can be integrated to provide accurate dynamic tilt information, but the integration tends to drift over time. Combining the two sensors provides a robust inertial measurement."

But, there are apparently a number of different ways to make a balancing robot.  I've heard of at least one person who managed to do it using distance sensors to figure out the tilt based on the distance of the sensor to the ground.  

Back to top
 
 
View Profile   IP Logged
arduino.poet
YaBB Newbies
*
Offline

Arduino rocks

Posts: 23

Re: Arduino + Lego NXT
Reply #11 - 02.10.2008 at 20:04:23
 
That's interesting!
Very nice idea (and very nice implementation!).

In my opinion an angle sensor can be enough (it certainly is enough in Matlab simulations).... and it is certainly less expensive than two sensors (BTW, I'm saying that because cheapness was one of the aim of the project).

The robot works pretty well even with only a gyroscope... if you start your own project keep in mind that an angle sensor (or maybe gyro + accelerometer) is better.
Back to top
 
 
View Profile   IP Logged
David Cuartielles
YaBB Administrator
*****
Offline

hallo kompis

Posts: 840
MMX
Gender: male
Re: Arduino + Lego NXT
Reply #12 - 08.10.2008 at 07:05:15
 
you've been blogged:

http://arduino.cc/blog/?p=89

/d
Back to top
 
 
View Profile | WWW   IP Logged
arduino.poet
YaBB Newbies
*
Offline

Arduino rocks

Posts: 23

Re: Arduino + Lego NXT
Reply #13 - 08.10.2008 at 13:15:42
 
Thank you very much!  Smiley  Smiley  Smiley
Back to top
 
 
View Profile   IP Logged
Qubix
YaBB Newbies
*
Offline

Arduino rocks

Posts: 2

Re: Arduino + Lego NXT
Reply #14 - 08.10.2008 at 21:32:02
 
Well done,
Its a really nice project and great platform for control scheme design.

I have one question if you don't mind me picking your brain. How did you do the numerical integration? On the arduino itself? or integrate the signal before the arduino a/d?

If on the arduino what algorithm did you use? and what time step did you use?

Thanks and well done again.

David
Back to top
 
 
View Profile   IP Logged
Pages: 1 2