NXT-G Files

These are the program files used to control the 6 robots on the Lego NXT Pinball machine.  They are still a work in progress and are not yet documented or commented - that will come later when the programs are complete.  They are written using  NXT-G 2.0.

We decided to program the machine in NXT-G in order to use these files as a basis for sharing Computer Science concepts with the general public.  The files grew to be quite complex and pushed the limits of what is possible to program in NXT-G.
BonusBumperNXT.rbtx
Download
Bonus Bumper program - this machine has three touch sensors and lamps that are lit when the touch sensors are hit.   2099k v. 1 May 10, 2010 8:18 AM Mark G
FlipperNXT.rbtx
Download
This NXT monitors the touch sensors at the bottom of the board and controls the automatic ball return.  1989k v. 1 May 10, 2010 8:21 AM Mark G
MasterScoreNXT.rbtx
Download
This is the program that runs on the Master NXT Score robot. It communicates with the other scoring robots using light sensors and receives scoring updates from three NXTs via light sensors.   1575k v. 1 May 10, 2010 8:19 AM Mark G
ScoreNXT-hundreds.rbtx
Download
This is one of the Scoring NXT robot programs (hundreds). It also monitors the touch sensors at the top of the machine and passes scoring updates back to the Master via light sensor.  1665k v. 1 May 10, 2010 8:23 AM Mark G
ScoreNXT-tens.rbtx
Download
This NXT displays the 'tens' column in the scoreboard. It also flashes 3 lights at the top of the board to indicate when it is in demo mode.  726k v. 1 May 10, 2010 8:23 AM Mark G
ScoreNXT-thousands.rbtx
Download
This program powers the 'thousands' NXT scoring robot that also powers the two spinners in the middle of the machine - they are spun in random directions and power levels.   512k v. 1 May 10, 2010 8:20 AM Mark G