Bluetooth Controller Setting up the BT controller and Arduino with Processing.
-
Upload
austin-james -
Category
Documents
-
view
233 -
download
0
Transcript of Bluetooth Controller Setting up the BT controller and Arduino with Processing.
![Page 1: Bluetooth Controller Setting up the BT controller and Arduino with Processing.](https://reader035.fdocuments.net/reader035/viewer/2022062801/56649e7c5503460f94b7e868/html5/thumbnails/1.jpg)
Bluetooth Controller
Setting up the BT controller and Arduino with Processing
![Page 2: Bluetooth Controller Setting up the BT controller and Arduino with Processing.](https://reader035.fdocuments.net/reader035/viewer/2022062801/56649e7c5503460f94b7e868/html5/thumbnails/2.jpg)
What do I need
• Linux Laptop• Robot• Bluetooth Controller• 4 Female to Female wires• PS Controller• Sketches – Should be on the Laptop – They will
work – need to be updated for all controls
![Page 3: Bluetooth Controller Setting up the BT controller and Arduino with Processing.](https://reader035.fdocuments.net/reader035/viewer/2022062801/56649e7c5503460f94b7e868/html5/thumbnails/3.jpg)
Bluetooth Controller
• This is HC-05 Module• Already has name – ROBOTX
![Page 4: Bluetooth Controller Setting up the BT controller and Arduino with Processing.](https://reader035.fdocuments.net/reader035/viewer/2022062801/56649e7c5503460f94b7e868/html5/thumbnails/4.jpg)
Wiring to Robot
• Very important wire this correctly• 4 wires to be connected• Wire Colour NOT important – correct pins are• Turn Robot off and disconnect when wiring
![Page 5: Bluetooth Controller Setting up the BT controller and Arduino with Processing.](https://reader035.fdocuments.net/reader035/viewer/2022062801/56649e7c5503460f94b7e868/html5/thumbnails/5.jpg)
Wiring to Robot
![Page 7: Bluetooth Controller Setting up the BT controller and Arduino with Processing.](https://reader035.fdocuments.net/reader035/viewer/2022062801/56649e7c5503460f94b7e868/html5/thumbnails/7.jpg)
Wiring to Robot
Sensor Shield Bluetooth HC-05
Pin 7 – Sensor RX
Pin 4 – Sensor TX
Pin 0 (V) 5V
Pin 0 (G) GND
• Wiring for Pins
![Page 8: Bluetooth Controller Setting up the BT controller and Arduino with Processing.](https://reader035.fdocuments.net/reader035/viewer/2022062801/56649e7c5503460f94b7e868/html5/thumbnails/8.jpg)
Connecting
• Arduino – Download Remote Control Sketch• First test from Linux Laptop – Connect to
Bluetooth – should see name of Bluetooth
![Page 9: Bluetooth Controller Setting up the BT controller and Arduino with Processing.](https://reader035.fdocuments.net/reader035/viewer/2022062801/56649e7c5503460f94b7e868/html5/thumbnails/9.jpg)
Bluetooth Connections
• Select Bluetooth and a terminal session
![Page 10: Bluetooth Controller Setting up the BT controller and Arduino with Processing.](https://reader035.fdocuments.net/reader035/viewer/2022062801/56649e7c5503460f94b7e868/html5/thumbnails/10.jpg)
Bluetooth Connections
• Search for Bluetooth – should appear
![Page 11: Bluetooth Controller Setting up the BT controller and Arduino with Processing.](https://reader035.fdocuments.net/reader035/viewer/2022062801/56649e7c5503460f94b7e868/html5/thumbnails/11.jpg)
Bluetooth Connections
• Right click on the Bluetooth name and click Setup. Use pass code 1234
![Page 12: Bluetooth Controller Setting up the BT controller and Arduino with Processing.](https://reader035.fdocuments.net/reader035/viewer/2022062801/56649e7c5503460f94b7e868/html5/thumbnails/12.jpg)
Bluetooth Connections
• Connect to Serial Port - Forward
![Page 13: Bluetooth Controller Setting up the BT controller and Arduino with Processing.](https://reader035.fdocuments.net/reader035/viewer/2022062801/56649e7c5503460f94b7e868/html5/thumbnails/13.jpg)
Bluetooth Connections
• Make sure you see successful connection to /dev/rfcomm0
![Page 14: Bluetooth Controller Setting up the BT controller and Arduino with Processing.](https://reader035.fdocuments.net/reader035/viewer/2022062801/56649e7c5503460f94b7e868/html5/thumbnails/14.jpg)
Bluetooth Connections
• Test by sending this command in the terminal window: printf “F\n” > /dev/rfcomm0
![Page 15: Bluetooth Controller Setting up the BT controller and Arduino with Processing.](https://reader035.fdocuments.net/reader035/viewer/2022062801/56649e7c5503460f94b7e868/html5/thumbnails/15.jpg)