All coding ever posted on this blog is available below. Guidelines:
- The list is descending, so the newest is always up.
- Programs get updated; the newest version is always the highest one available, but the older versions are always still there.
- Click the project’s name (in bold) to download the source code and click “post” to view details about a project.
- All files are in Microsoft Office Word 1997-2003 format, unless otherwise specified – to use the programs, copy and paste the full content of the Word file into RobotC, and compile and download it to your NXT.
- Anyone is free to use any of the source code below in any way they want, unless otherwise specified (usually within the program; at the top).
Bionic NXTPod Master Bionic NXTPod Slave project page Bionic NXTPod 3.0 – based on Festo’s Bionic Tripod 3.0
PID Line follower 2.0 post The pausing problem is fixed. Also, the robot’s design was changed, and the touch sensors were replaced with HiTechnic magnetic field sensors.
PID Line follower 1.4 post Instead of aborting the entire program, the robot is only paused. It doesn’t work very well though, since the motors keep on spinning too long.
PID Line follower 1.3 post Robot is now able to stop (abort the program) when either (or both) of the touch sensors are pressed.
PID Line follower 1.0 first post Basic PID line following program. Version 1.2 includes much better PID parameters (coding is the same except for that)
HiTechnic magnetic field sensor Angle test/ Speed test post Two programs used for testing the HiTechnic magnetic field sensor, looking at update speed (readings per second) and sensor value vs. encoder value.
Pong Game post version 1.1. New functions: pausing the game, improved graphics, improved “You Lose” sequence.
Magnetic Grapher post Program that graphs the values of the HiTechnic Magnetic Field sensor, recording the highest value.
Pong Game post version 1.0. Based on one of the oldest video games out there, the NXT pong game allows the user to play forever, with continuously increased difficulty.
Bouncing Ball post A ball of adjustable size bounces around an adjustable field at an adjustable speed
ALFRED post Automated Lego Finding Robot for Desk-cleaning follows a line using a PID controller, grabbing Lego pieces along the way. The Lego pieces are deposited into an pen shelf after a complete round.
Magnetic Communicator post First encodes a motor position to an eight-bit binary code, and then sends it to the magnetic field sensor by turning a magnet (so that either north or south, 1 or 0, are up). Following, it decodes this information and moves the last motor accordingly, thus synchronizing the two motors.
Music Drawer post A continuously turning robotic arm that reads sound levels to decide on a motor position, to change the radius of the drawn circle.
Tick Tack Toe Game post A two player tic-tac-toe game using the buttons on the NXT for navigation and input.
Avoider/ Climber Robot post An autonomous robot, which combines sensor input (from two touch sensors and one ultrasonic sensor) to decide to either climb or avoid objects according to their respective heights.
Motor Segway post Another failed attempt at creating a segway, this time using the rotation sensors within the NXT motors; program is P based (from PID).
Ultrasonic Segway post Failed attempt at creating a segway using the Lego Mindstorms NXT Ultrasonic Sensor. The sensor turned out to be too slow balancing a segway.
HiTechnic IR Link Remote Control post Program controls up to four different PF motors, according to which way the user turns a NXT motor.
Robotic Arm Base post Simple turning program; speeds up and slows down two motors.