Question: Communication with Bluetooth Wireless Prelab: Preliminary NXC Program Sensor 1: Touch sensor Sensor 2: Light sensor OUT A: Left motor OUT B: Right mator Task

Communication with Bluetooth Wireless
Prelab: Preliminary NXC Program Sensor 1: Touch sensor Sensor 2: Light sensor OUT A: Left motor OUT B: Right mator Task Description: From what we have learned so far, the NXT brick can be controlled by an NXC program. It can also be directly controlled by the Bricx command center. Since the NXT brick has the facility to accept messages via the Bluetooth wireless circuitry, we can write an NXC program to let the NXT brick perform a certain task according to messages sent from another NXT brick. Being able to control the NXT using messages has many useful applications such as rermote bamb defusing, remote car control, etc Write a NXC program for the NXT to continuously (nonstop) wait for a Bluetooth wireless message and perform the task once according to the table below Message Tasks Go Forward for 0.5 sec Go Backward for 0.5 sec Spin clockwise for 0.5 sec Spin counterclackwise for Q.5 sec Play four tones: GABG, each for 0.25 sec. Go forward until touch (Sensor hits something). Go forward from white space; if Light sensor is on black, stop the motar, increment variable cnt, and display cnt value on the LCD, cnt is initially O Use NumOut function to display the cnt value) Go forward from white space, cross two black strips, and stcp
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
