1 / 27

Bluetooth Communication

Bluetooth Communication. Module 3. Warm Up. SWQ: 30 – Oct. – 2013 Give examples where Bluetooth technology is used What is the range for the Bluetooth ?. NXT and Bluetooth. Search for projects that uses Bluetooth in the NXT.

tasha
Download Presentation

Bluetooth Communication

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Bluetooth Communication Module 3

  2. Warm Up • SWQ: 30 – Oct. – 2013 • Give examples where Bluetooth technology is used • What is the range for the Bluetooth ?

  3. NXT and Bluetooth Search for projects that uses Bluetooth in the NXT

  4. What blocks I need to build Bluetooth communication between two NXT ??

  5. Send message block: send a wireless message to another NXT Receive message block: receive a wireless message from another NXT

  6. Send Message Block

  7. The send message block can be configured using either the configuration panel or using data wires Connection Mail Box text I will send Number I will send logic I will send X = -2 -2

  8. Ahmed X = Ahmed X = 1 1

  9. How can I send the measured sound level ?

  10. Send Message Block

  11. Receive Message Block

  12. The receive message block can be configured using either the configuration panel or using data wires Mail Box number The test text The test Number The test logic Message received (yes/N0) If the test message and received message the same, output is True The received text The received Number The received logic

  13. Receive Message Block

  14. Why do I need to compare between the test message and the received message ?

  15. Correct Communication • Connection Number on the computer and the chosen one on the NXT must be the same • Mail box of the transmitter and the receiver must be the same

  16. LABACTIVITY1: • Step 1: Turn on Bluetooth on both NXT • Step 2: Rename the NXTs (TX# and RX#) • Step 3: SEARCH for RX# on the TX# NXT <> (connection is made)

  17. LABACTIVITY1: (Page 11) • Step 4: Sender Program • Step 5: Receiver Program , • Step 6: Run the program on the receiver first Why ??

  18. Worksheet

  19. Connection Number: Mail box Number: Sent massage: Data type of the sent massage:

  20. Connection Number: Mail box Number: Sent massage: Data type of the sent massage:

  21. Connection Number: Mail box Number: Sent massage: Data type of the sent massage:

  22. Connection Number: Mail box Number: Sent massage: Data type of the sent massage:

  23. Review Exercise – Page 17 • Sender Program: • The sender unit will read the sound level • The sender will display the sound level values on its screen and send them wirelessly to a receiver unit • Receiver Program: • The receiver unit will receive the sound level values. • If the sound level values are more than 50%, the receiver unit will move forward; otherwise, it will stop moving.

  24. LABACTIVITY2: Remote Control Program

  25. LABACTIVITY2: Car Program This looks confusing ??!! Read it step by step, it will be easy

  26. Recap

  27. Conclusion • Send massage block • Receive massage block • Set up the Bluetooth on both NXTs • Sender program • Receiver Program

More Related