dIMU NXT Segway

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.

About these ads
This entry was posted in Dexter Industries, Mindstorms, NXT and tagged , , , . Bookmark the permalink.

16 Responses to dIMU NXT Segway

  1. Pingback: dIMU 6 DOF accelerometer and gyroscope | mattallen37

  2. SavedCoder says:

    Why did you spell constants with a k?

    • mattallen37 says:

      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.

  3. Pingback: New Sensor: Accelerometer + Gyro = dIMU | Dexter Industries Blog

  4. Pingback: Nieuwe Sensor: Accelerometer + Gyro = dIMU van Dexter Industries

  5. Pingback: It’s here: Dexter Industries 6-DOF IMU

  6. hergipotter says:

    Did you actually use the acceleration data or only the gyro data?

  7. sikko says:

    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.

  8. Pingback: NXShield dIMU Segway | mattallen37

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s