User Tools

Site Tools


marvin:ecp5

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
marvin:ecp5 [2009/01/29 09:24] devamarvin:ecp5 [2009/01/29 10:09] deva
Line 5: Line 5:
  
 ======Lab report 5 - Bluetooth controlled robot====== ======Lab report 5 - Bluetooth controlled robot======
-**Date:** January 19nd and 20th 2009\\ +**Date:** January 19nd 2009\\ 
-**Duration of activity:** 8-16 (both days)\\+**Duration of activity:** 8-16\\
 **Participants:** Kasper, Bent and Johnny\\ **Participants:** Kasper, Bent and Johnny\\
  
Line 19: Line 19:
 {{ :marvin:bluetoothlogo.png |The Bluetooth Logo}} {{ :marvin:bluetoothlogo.png |The Bluetooth Logo}}
  
-From wikipedia: //"Bluetooth is a wireless protocol for exchanging data over short distances"//(([[http://en.wikipedia.org/wiki/Bluetooth]])). The NXT hosts a bluetooth communication device, and is capable of communicating at up to approximately 10 metres distance.\\+From wikipedia: //"Bluetooth is a wireless protocol for exchanging data over short distances"//(([[http://en.wikipedia.org/wiki/Bluetooth|Bluetooth on Wikipedia]])). The NXT hosts a bluetooth communication device, and is capable of communicating at up to approximately 10 metres distance.\\
 LeJOS has built an entire framework for bluetooth communication, over normal Java input/output streams. LeJOS has built an entire framework for bluetooth communication, over normal Java input/output streams.
-(([[http://lejos.sourceforge.net/nxt/nxj/api/lejos/nxt/comm/BTConnection.html]]))\\ +(([[http://lejos.sourceforge.net/nxt/nxj/api/lejos/nxt/comm/BTConnection.html|The LeJOS Bluetooth class]]))\\ 
-We do not want to go further into the details of the protocol itself, but the way the device is shared can eventually end up in data loss(([[http://lejos.sourceforge.net/nxt/nxj/api/lejos/nxt/comm/BTConnection.html]])). We however do not care about this, since we intend to use it to send loads of control keycodes to the robot without worrying whether they will all arrive safely at the destination. +We do not want to go further into the details of the protocol itself, but the way the device is shared can eventually end up in data loss(([[http://lejos.sourceforge.net/nxt/nxj/api/lejos/nxt/comm/BTConnection.html|The LeJOS Bluetooth class]])). We however do not care about this, since we intend to use it to send loads of control keycodes to the robot without worrying whether they will all arrive safely at the destination. 
  
 On the PC LeJOS has also made a bluetooth interface. This works exactly the same as the one on the NXT, and we therefore simply had to make a connection (listening on the NXT and connecting on the PC) and then creating input/output streams, to make the communication work as intended.  On the PC LeJOS has also made a bluetooth interface. This works exactly the same as the one on the NXT, and we therefore simply had to make a connection (listening on the NXT and connecting on the PC) and then creating input/output streams, to make the communication work as intended. 
Line 70: Line 70:
         case directionLeft:         case directionLeft:
           left(200);           left(200);
 +
  
           break;           break;
marvin/ecp5.txt · Last modified: 2009/01/29 10:58 by rieper