0
Offline
Newbie
Karma: 1
Posts: 27
Arduino rocks
|
 |
« Reply #15 on: October 09, 2008, 01:36:32 am » |
The integration happens inside Arduino. I preferred not to do hardware integration because I hoped that software could give me more flexibility.
I chose the fastest sampling time I could, which is 4 ms (--> 250 Hz). I first used the rectangle method for integration but now I've preferred the trapezoid method to minimize the error: what I've found out is that most of the error comes from (1) the sensor and (2) ADC approximation.
Anyone going to replicate this robot should use an angle sensor (maybe I2C based) instead of a gyroscope; integration is bringing avoidable error.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 2
Arduino rocks
|
 |
« Reply #16 on: October 09, 2008, 06:30:06 am » |
Thanks, I'm think I'm going to have to do integration for another project. (control of a flexible link). So nice to see its possible with the arduino.  David
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 1
Arduino rocks
|
 |
« Reply #17 on: October 17, 2008, 12:28:30 pm » |
this is awesome.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 3
Arduino rocks
|
 |
« Reply #18 on: October 25, 2008, 07:52:31 pm » |
Where can i find how to connect this motors to the arduino? or how it works the protocol used by NXT
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 1
Posts: 27
Arduino rocks
|
 |
« Reply #19 on: October 26, 2008, 04:57:37 am » |
I'm making available my thesis as a free download (CC license) here: http://trive.dyndns.org/tesi_web.pdf. (Please report if the link gets broken) Unfortunately it's in italian (description of NXT connectors is on page 59-60) and it's mostly about the theoretical part of the problem. What you need to do to drive NXT motors is to: - understand NXT connector, which has 6 wires:
- Motor signal 1 (from 0 to 9V)
- Motor signal 2 (from 0 to 9V)
- Ground
- Encoder power (5v)
- Encoder signal 1 (0 to 5V)
- Encoder signal 2 (0 to 5V)
- hack your NXT connector (you can do that using a RJ-12 connector)
- use a L293D to give enough amperage to the motors (you cannot drive them directly from Arduino)
- use a 9V voltage stabilizer to power the L293D: it must handle enough amperes (1 or more reccomended).
- use an interrupt to handle the encoder signal (if needed): you can download my code and look at the out() function.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 6
Arduino rocks
|
 |
« Reply #20 on: November 18, 2008, 05:59:17 pm » |
This is exactly what I am planning to do, I am glad I found this as my guide. Thansk for sharing.
And that would be my first robot.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 1
Arduino rocks
|
 |
« Reply #21 on: December 21, 2008, 01:21:09 am » |
Your link to tesi_web.pdf is broken. Have you published your circuit and other details anywhere else :'(?
|
|
|
|
|
Logged
|
|
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 1
Arduino rocks
|
 |
« Reply #23 on: May 13, 2009, 09:15:57 am » |
Could you give some more information on how exactly you made the connection from Arduino to the NXT motors?
|
|
|
|
|
Logged
|
|
|
|
|
Glassport,Pa@ USA
Offline
Full Member
Karma: 0
Posts: 150
shoop teh whoop!
|
 |
« Reply #24 on: May 13, 2009, 11:25:44 am » |
how would you connect a servo to arduino? i tryin to figure that out ever sience march >_>
|
|
|
|
|
Logged
|
[ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618] [ch9618][ch9618][ch9618][ch9618][ch9618][ch9619][ch9618][ch9618][ch9618][ch9618][ch9618][ch9619][ch9618][ch9618][
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 14
Arduino rocks
|
 |
« Reply #25 on: December 03, 2009, 06:29:20 am » |
Hi, great job. I'm new to Arduino and I've got to this from Lego NXT. I think Arduino is much more powerful and flexible than NXT, but I love Lego technich to build, and I already have a good assortment of parts. So I was looking for the way to use Lego elements (motors, sensors...) with Arduino. Your work looks great. I'll try it. By the way, do you have the schematics of the Power Funcitions motors? Have you connected them to Arduino? Thanks.
|
|
|
|
|
Logged
|
|
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 6
Arduino rocks
|
 |
« Reply #27 on: December 30, 2010, 04:12:26 pm » |
How did you connect the NXT servos to the Arduino? I've been looking for a pinout of the NXT parts.
|
|
|
|
|
Logged
|
|
|
|
|
India
Offline
Full Member
Karma: 1
Posts: 131
The Tech Gamer
|
 |
« Reply #28 on: December 31, 2010, 01:26:25 am » |
This was Awesome! I'm new to Arduino, though I'll try to make one of these soon Kudos! ;D
|
|
|
|
|
Logged
|
|I love Technology|
|
|
|
|
|