Here is a robot I built to demonstrate the dIMU, and what it can be used for. The Segway can be remote controlled through the use of the HiTechnic IR Receiver, and the PF remote. Both the software and the hardware are based on the HTWay.
I modified the HTWay NXC program so that it works with the dIMU, but besides getting it to work, I didn’t do very much tuning of the konstants (so there should be a lot of room for improvement in balancing and driving).
Update 10/23/2011: I posted the NXC program.
Fantastic!
Pingback: dIMU 6 DOF accelerometer and gyroscope | mattallen37
Why did you spell constants with a k?
When programming, often people declare constants as preprocessors. For example “#define Kp 7.5”, and for some reason unknown to me, K is the typical letter to use for a constant’s name. In the example of Kp, that would be short for “Constant Proportional” (a term used in a P, PD, or PID controller).
Me spelling it with a k was an indication as to the type of tuning I could do to the robot program. As far as I have seen, usually a term named starting with a k is a term that will be multiplied by to get just the right control you want. The segway program makes use of several k terms, and they are to adjust how the different variables have an effect on the motor speed (to keep the robot balanced, and driving). Just changing one of the “k”onstants could drastically change the balance of the segway.
Oh, okay.
Pingback: New Sensor: Accelerometer + Gyro = dIMU | Dexter Industries Blog
Pingback: Nieuwe Sensor: Accelerometer + Gyro = dIMU van Dexter Industries
Pingback: It’s here: Dexter Industries 6-DOF IMU
Did you actually use the acceleration data or only the gyro data?
I only used the gyro data from the Y axis to keep it balanced.
i have the dimu to and i have build a segway but i dont know how to program it.. i can only program in nxt-g and i cant find anywhere how to make a segway program there i have tried to modifi the Ht-way program but it didint work. Can you send my the program you use, i know it is in nxc but than i can still let my segway work.
I am working on making the program presentable. I plan to post it later today. I was going to do it before, so thanks for the reminder.
Oke,
thats nice im am looking forward at my segeay running
Do you think it is possible to to make an nxt-g program?
It might be possible to modify the NXT-G program to work with the dIMU, but I don’t personally program in NXT-G unless I need to (like for testing hardware).
oke thans fine
Pingback: NXShield dIMU Segway | mattallen37
Pingback: New Sensor: Accelerometer + Gyro = dIMU - Dexter Industries