EducateNXT Bluetooth Remote Control Using Bluetooth and the Rotation sensors in NXT motors, it is...
-
Upload
verity-todd -
Category
Documents
-
view
213 -
download
0
Transcript of EducateNXT Bluetooth Remote Control Using Bluetooth and the Rotation sensors in NXT motors, it is...
![Page 1: EducateNXT Bluetooth Remote Control Using Bluetooth and the Rotation sensors in NXT motors, it is possible to create a remote- controlled robot using two.](https://reader038.fdocuments.in/reader038/viewer/2022110206/56649d0e5503460f949e3f53/html5/thumbnails/1.jpg)
EducateNXT
Bluetooth Remote ControlUsing Bluetooth and the Rotation sensors in NXT motors, it is possible to create a remote-controlled robot using two NXT bricks.
This PowerPoint shows how to make a simple remote control, but there are ample opportunities for extension.
![Page 2: EducateNXT Bluetooth Remote Control Using Bluetooth and the Rotation sensors in NXT motors, it is possible to create a remote- controlled robot using two.](https://reader038.fdocuments.in/reader038/viewer/2022110206/56649d0e5503460f949e3f53/html5/thumbnails/2.jpg)
EducateNXT
Making a Remote ControlThe simplest remote control is made by attaching “paddles” to the NXT motors.
An example is shown below.
![Page 3: EducateNXT Bluetooth Remote Control Using Bluetooth and the Rotation sensors in NXT motors, it is possible to create a remote- controlled robot using two.](https://reader038.fdocuments.in/reader038/viewer/2022110206/56649d0e5503460f949e3f53/html5/thumbnails/3.jpg)
EducateNXT
Programming Steps• When a paddle on the Remote Control (RC) is
pushed forward, the Rotation sensor inside the NXT motor is read and passed by Bluetooth to the EduBot brick.
• The above step is done for both paddles and placed in an indefinite loop.
• Upon receiving the Rotation sensor readings, the EduBot program wires these values into the Power input on a respective Move block for each wheel.
• The EduBot program is also placed in an indefinite loop so Bluetooth messages can be continually received from the paddle remote control.
![Page 4: EducateNXT Bluetooth Remote Control Using Bluetooth and the Rotation sensors in NXT motors, it is possible to create a remote- controlled robot using two.](https://reader038.fdocuments.in/reader038/viewer/2022110206/56649d0e5503460f949e3f53/html5/thumbnails/4.jpg)
EducateNXT
Programming the RCFirst step is to Zero the Rotation sensors
“Place paddles in an upright starting position – then press the orange
button to begin.”
The following text can be displayed on the NXT Screen:
Note: You need a new Display block for each line of text – and deselect the clear check box for every
display icon except the first.
Reset the
Rotation Sensors on the
Paddles.
Wait forPress of
the OrangeButton.
![Page 5: EducateNXT Bluetooth Remote Control Using Bluetooth and the Rotation sensors in NXT motors, it is possible to create a remote- controlled robot using two.](https://reader038.fdocuments.in/reader038/viewer/2022110206/56649d0e5503460f949e3f53/html5/thumbnails/5.jpg)
EducateNXT
Programming the Remote Control
Now for recording
Paddle position and sending.
1. Read the value for the B Rotation sensor.2. Pass this message to the Btooth block for sending (via Mailbox 1).3. Read the value for the C Rotation sensor.4. Pass this message to the Btooth block for sending (via Mailbox 2).5. Put all the above in an indefinite loop.
Add to previous blocks
![Page 6: EducateNXT Bluetooth Remote Control Using Bluetooth and the Rotation sensors in NXT motors, it is possible to create a remote- controlled robot using two.](https://reader038.fdocuments.in/reader038/viewer/2022110206/56649d0e5503460f949e3f53/html5/thumbnails/6.jpg)
EducateNXT
Programming the EduBot
1. Receive the Bluetooth value for Mailbox 1.2. Wire this into a Motor B block. 3. Receive the Bluetooth value for Mailbox 2.4. Wire this into a Motor C block. 5. Put all the above in an indefinite loop.
Start a new program:
![Page 7: EducateNXT Bluetooth Remote Control Using Bluetooth and the Rotation sensors in NXT motors, it is possible to create a remote- controlled robot using two.](https://reader038.fdocuments.in/reader038/viewer/2022110206/56649d0e5503460f949e3f53/html5/thumbnails/7.jpg)
EducateNXT
Download ProgramsDownload the two programs to the Remote Control and
Edubot respectively.
Ensure the EduBots have established a Bluetooth connection.
For more on how to do this go to
EducateNXT
Establishing a Bluetooth Connection PowerPoint
The world is now your remote oyster!
![Page 8: EducateNXT Bluetooth Remote Control Using Bluetooth and the Rotation sensors in NXT motors, it is possible to create a remote- controlled robot using two.](https://reader038.fdocuments.in/reader038/viewer/2022110206/56649d0e5503460f949e3f53/html5/thumbnails/8.jpg)
EducateNXT