Wednesday, May 20, 2009

Patrol Robot: Continue Bluetooth Challenge




The first part of the patrol robot continue phase was bluetooth communication. It recommended looking at another page which explained all of the bluetooth techniques so I looked at that and figured out how to get the bluetooth connected and write simple programs with that. The challenge for this section was to have the robot detect if a door is open or closed and then send a message to another nxt saying that the door is open or closed. This program involved using data wires and bluetooth send and receive blocks. The main part of the program with the bluetooth blocks is shown below if you want to see it. The receiving robot had a simple receive message block with a data wire going to a display block.

No comments:

Post a Comment