Hi Guys
I have some links for some gyros and accelerometers. could you please confir if i can use them for the Segbot !!
LPY550AL Dual-Axis (Pitch and Yaw or XZ) Gyro
http://www.ebay.com/itm/LPY550AL-Dual-Axis-Pitch-and-Yaw-or-XZ-Gyro-Perfect-With-Arduino-Uno-/190682508592?pt=LH_DefaultDomain_0&hash=item2c65902d30
with
Angle Sensor Inclination Accelerometer Acceleration Module
http://www.ebay.com/itm/ADXL335-3-axis-Analog-Output-Accelerometer-Module-angular-transducer-for-Arduino-/310508944191?pt=LH_DefaultDomain_0&hash=item484bc67b3f
For CODE V1
Or
LPY510AL Dual-Axis (Pitch and Yaw or XZ) Gyro
http://www.ebay.com/itm/LPY510AL-Dual-Axis-Pitch-and-Yaw-or-XZ-Gyro-Perfect-With-Arduino-Uno-/200765020183?pt=LH_DefaultDomain_0&hash=item2ebe871817
With
For CODE V2
Cheers
Hi all,
I'm new in here, and I'm success to finish the Lawn-Bot by following how to in Arduino Robotics by JohnDavid400 book. Now, I want to move next project Segbot. I already have all parts as motors, Arduino Uno, etc...from last project except for IMU. Follow the book I can not find those 6 DOF anolog IMU gyros.
Any one have extra 6 DOF IMU as in the book want to sell to me ? or anything can replace it ? I'm lost now.
Thank you in advance,
PS to JohnDavid400: Do you have extra 6 DOF IMU as in your book want to share with me ? I'm very appreciated. Thanks
Steve, are you talking about the one in Gemany, right ? they show europe currency, I don't know about it. Unless some one already order from them and give comment about it.
So I got from Canada kit, hope that work:
Version 1: Uses same code as Seg-bot in Arduino Robotics bookGyroscope: http://www.sparkfun.com/products/10099
Accelerometer: http://www.sparkfun.com/products/9269
By the way, Don't know this question is right place. In John book, the steering is use thump to turn potentiometer left to right to turn segbot. I saw some one use Lean Steering technic. Any one know how to do it ?
http://www.youtube.com/watch?v=F50Fea3My1Q
Thanks
Hi there John,
Hope you're having a great day. I'm using your V3 Autocalibrate code and I understand I connect Digital Pin 1 of the Arduino to the Serial Input (S1) of the Sabertooth Motor Controller. I'm trying to understand each aspect of the code and I would like to know where exactly is this pin used in the code? Is it the int engage_state = 1. This is the only place I see 1 used in the code. I assume this is Digital Pin 1? If this is not Digital Pin 1 then which part of the code is using Digital Pin 1 to send a command to the Serial Input (S1) of the Sabertooth Motor Controller? Thank you in advance for you assistance.
Hi Jack,
Good question... this might seem a bit confusing, but the part that tells the Arduino to use pin D1 is actually the first line of the setup() function:
// Start the Serial monitor at 9600bps Serial.begin(9600);
This is how you start the serial communication port on the Arduino, which by default uses digital pins 0 (rx) and 1 (tx). Since the serial communication pins cannot be changed, the Arduino just knows that anytime you do Serial.write() or Serial.print(), that you want to send serial data through the transmit pin (tx = D1). If you use the commands Serial.available() or Serial.read(), you are asking the Arduino to listen for serial data from another device on the receive pin (rx = D0). All serial data transfer will be done at the speed that is declared when you start the serial montior with Serial.begin(speed) command - so the other device (the one listening for or the one sending the data) must be set to operate at the same serial speed (measured in bits per second).
In our case, the Sabertooth can be set to a number of different speeds, but I typically use 9600bps for most scenarios. My bluetooth module from Sparkfun operates at 115200bps, which is quite a bit faster and allows for more data to be sent in the same amount of time - but this sketch is only writing serial data to the Sabertooth 20 times each second so we are fine with 9600. Here is the command we use in this sketch to actually send the serial data through pin D1:
// Serial speed values write here: Serial.write(m1_speed); Serial.write(m2_speed);
The engage_state = 1, is a variable used to hold the value for whether or not the safety engage button is being pressed on the handlebar - pressing the button allows you to start riding.
Hi all...I'm new to the forum...based near Liverpool, UK.....and looking to build a one wheel version of the segbot...ie an electric unicycle! I'm great with mechanics and engineering ( have my own home built CNC plasma cutter) and not too bad at electronics..but fall down on programming :-((
I have the new IMU 6050 6DOF board - very inexpensive on EBAY - and I have been trying, without sucess, to get the little teapot sketch to work as a basis to start in designing the unicycle electronics with help from the segbot code. I'm wondering if my Arduino duemilanova is compatible with this 6DOF board (I2C) or whether I need a later version? I'd be grateful for any help on this as I think Digital IMU's are now the way to go and so inexpensive to buy. So if anyone can point me to some example code that works with my Arduino.....cheers
Hi there and welcome,
I am in the process of writing some code for the Parallax gyroscope which also uses SPI or I2c digital communication... I have it sending it's values to the Arduino, but have yet to integrate it into my Segbot sketch. As soon as I do, I will post it on here and it should be very close to what you need for your sensor. I will likely start a new thread on here for digital IMU's as they are becoming the only thing readily available.
If you are in a hurry to test it out, here is the code snippet I used to get the I2c gyro talking to the Arduino. I am thinking about creating separate gyro and accelermoter files to put into a library so that people can just include the gyro and accel file of their choosing - sort of a mix and match setup. I think it would be easier to set up that way.