May 12, 2006

Giving RaSPy some personality


Tag, I'm it? OK, here's a quick version that I whipped up this morning. Keep in mind that Jim and I have never seen each other or even spoken on the phone, and there's nothing up my sleeves ;-). The new program has a number of requested features: it will wait until you press and release the touch sensor, and then count out loud "one, two, three" while moving the three arms forward 45° and then back (it also displays the number in a cartoon-like "speech bubble" on the LCD screen, just for fun). Then it picks a number and moves just that motor forward 70° to show which one (rock, scissors, or paper) that it picked. This time I did away with the multi-case Switch block at the end, instead just wiring the random number into a Motor block to directly select which motor to run. It waits for a second press and release (a "bump"), resets the motor that it previsouly moved, and starts all over again.

Notice that it's now up to Jim to test this program on his hardware, and perhaps make some modifications. For instance, I might have the motors running in the wrong direction, in which case he has to go in and switch the direction on all of the Motor blocks. Or he might want the arms to move faster or slower than I've set them. All of this is accessible to him, so he can play with it and custom fit it as much as he wants.

--
Brian Davis

1 comment:

Drew said...

IDEA
Add a (ultra) sonic proximity sensor and Mic to create parrallel programs (that excludes the other until its done) that allows YOU to count off the 1,2,3 show your "hand".
This could be simply a US sensor that detects when your hand is thrust into the arena.
This could be a US that counts your hand bobbing up and down into its perception (1 bob, 2 bobs, 3 bobs and show)
Or even a Sound sensor that counts the comanding tones of 1...2...3... Then show.
Or some combo of them such that when one is triggered the rest are disabled until the round is over. The button touch sensor coud still be used for when its NXT's turn...

Hope this idea is useful in making he best possible robot for your challenge.

Related Posts Plugin for WordPress, Blogger...