Picture of Lego Mindstorms Calculator
This calculator uses a modified version of one of the Mindstorms tutorial's code to add how many times you press one touch sensor to how many times you press another touch sensor. To subtract, you have to add negative numbers.

Oh and sorry for the poor picture quality, I took everything on an iPhone camera :P
Remove these adsRemove these ads by Signing Up

Step 1: Parts

Picture of Parts
Two touch sensors
8 black pegs
2 "L" bars
Mindstorms NXT brick
2 connector cords for sensors

Step 2: Add the L bars

Picture of Add the L bars
Attach the L bars to the NXT with the little peg things.

Step 3: Add the sensors

Picture of Add the sensors
Attach the sensors to the L bars with the leftover peg things.

Step 4: Plug the sensors into the NXT

Picture of Plug the sensors into the NXT
Plug the left sensor into port 1 and the right sensor into port 2. I put two longer pegs in the NXT to keep the wires in place, but it won't affect anything if you leave them out.

Step 5: Download code

Download the 2 files on this page and sync "add.rbt" to your NXT brick. 
AJMansfield2 years ago
Wow that sounds so incredibly useful!
jbarrett93 years ago
Cool I personally don't have nxt but just to see it in action can you put avid up
ALogan97 (author)  jbarrett93 years ago
Yeah, I'll probably have one up in a few weeks after I rebuilt it
khsora3 years ago
=0 cooooollllllllllll!!!!!!!!!!!!!!!! xD
Dude im getting the computer soon probaly gonna make a whole bunch of things