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
Oh and sorry for the poor picture quality, I took everything on an iPhone camera :P
Step 1Parts
Parts:
Two touch sensors
8 black pegs
2 "L" bars
Mindstorms NXT brick
2 connector cords for sensors
Two touch sensors
8 black pegs
2 "L" bars
Mindstorms NXT brick
2 connector cords for sensors
Step 4Plug 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 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
http://www.filedropper.com/addcalculator
http://www.filedropper.com/add_4
.png)
.png)
.png)
.png)
0 comments:
Posting Komentar