http://www.techbricks.nl build a NXTway-Gyro (or NXTway-g) Segway self-balancing LEGO NXT Mindstorms robot with Mindsensors remote PSP controller and a Hitechnic gyro sensor with NXC software based on JanB's program. (Segway PT is a two-wheeled electric vehicle invented by Dean Kamen). The bot is able to run over a tilt surface and it is controlled very smooth.
A very small NXC program is keeping the bot upricht by doing the following tasks:
- determine the gyro bias, because every gyro sensor can be influenced by temperature and manufacturing tolerances.
- read out the Sony PSP joystick using the Mindsensors PSP-Nx-v3 controller.
- the body tilt controller prevents the robot from falling over.
- the position controller prevents the robot from driving away.
- the gyro drift compensation allows the robot to balance for long time.
- set the friction compensation.
Ryo Watanabe (NXTway-G), Ramin (Self balancing bot), Yorihisa Yamamoto (NXTway-GS) and Engscope (Jegway) programmed there NXT segway in some kind of C language (RobotC or lejos), but I wanted to run my program in NXC (because it is free!).
If you have a NXT Mindstorms set (9797-1, 8527-1 or 8547-1) and you buy a gyro sensor at Hitechnic you can build this bot. If you want to control it using PS2 joystick, you need of course a Mindsensors PSP controller.
Please check for instructions, software download and more info about the programs: http://www.techbricks.nl/My-NXT-projects/nxt-self-balancing-segway-nxtway-rob...
Check my website for the source code and additional information.
techbricks 1 year ago
hello can you send me the code please i have tried to do the same thing but i have some problem. and i dont find a lot of help for robotC IDE
tipso100 1 year ago
@tipso100 Check my web site. My code is written in NXC, you can also find a links to the Ramin segway code (gyro_rk4_v4.c) written in RobotC.
techbricks 1 year ago