Pages - Menu

Minggu, 15 April 2012

Lego Mindstorms Calculator

Lego Mindstorms Calculator
i
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

Step 1Parts

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

Step 2Add the L bars

Add the L bars
i
  • IMG_1441.JPG
  • IMG_1438.JPG
Attach the L bars to the NXT with the little peg things.

Step 3Add the sensors

Add the sensors
i
  • IMG_1443.JPG
  • IMG_1442.JPG
Attach the sensors to the L bars with the leftover peg things.

Step 4Plug the sensors into the NXT

Plug the sensors into the NXT
i
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 5Download code

Download the 2 files on this page and sync "add.rbt" to your NXT brick.

http://www.filedropper.com/addcalculator
http://www.filedropper.com/add_4

Tidak ada komentar:

Posting Komentar