Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


Presentation on theme: "Bluetooth Communication Module 3. Warm Up SWQ: 30 – Oct. – 2013 Give examples where Bluetooth technology is used What is the range for the Bluetooth ?"— 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 ConnectionConnection section is used to identify the connection number of the target NXT (the NXT that will receive the message). It is a value between 0 and 3. MessageIncludes: message type (logic, number or text) message content. MailboxEach NXT brick has 10 mailbox numbers where wireless messages can be stored. Each mailbox number can hold up to five messages.

11 Receive Message Block

12 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 The receive message block can be configured using either the configuration panel or using data wires

13 Receive Message Block Message:The message section allows you to select the type of message being received (logic, number or text). Compare to:If you want to compare the incoming message with a test message, either type the test text or number or use the radio buttons to choose the logic test value (True or False). If the test message and the received message are the same, the Yes/No data wire will return a value of “1”; otherwise, it will return a value of “0”. Mailbox:The mailbox identifies the receiver’s mailbox where the sent message will be stored.

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 LAB ACTIVITY 1: – 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 Step 5: Receiver Program Step 6: Run the program on the receiver first LAB ACTIVITY 1: (Page 11), Why ?? Step 4: Sender Program

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 LAB ACTIVITY 2: Remote Control Program

25 LAB ACTIVITY 2: 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


Download ppt "Bluetooth Communication Module 3. Warm Up SWQ: 30 – Oct. – 2013 Give examples where Bluetooth technology is used What is the range for the Bluetooth ?"

Similar presentations


Ads by Google