Bluetooth Controller Setting up the BT controller and Arduino with Processing.

15
Bluetooth Controller Setting up the BT controller and Arduino with Processing

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.

Bluetooth Controller

Setting up the BT controller and Arduino with Processing

Page 2: Bluetooth Controller Setting up the BT controller and Arduino with Processing.

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.

Bluetooth Controller

• This is HC-05 Module• Already has name – ROBOTX

Page 4: Bluetooth Controller Setting up the BT controller and Arduino with Processing.

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.

Wiring to Robot

Page 7: Bluetooth Controller Setting up the BT controller and Arduino with Processing.

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.

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.

Bluetooth Connections

• Select Bluetooth and a terminal session

Page 10: Bluetooth Controller Setting up the BT controller and Arduino with Processing.

Bluetooth Connections

• Search for Bluetooth – should appear

Page 11: Bluetooth Controller Setting up the BT controller and Arduino with Processing.

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.

Bluetooth Connections

• Connect to Serial Port - Forward

Page 13: Bluetooth Controller Setting up the BT controller and Arduino with Processing.

Bluetooth Connections

• Make sure you see successful connection to /dev/rfcomm0

Page 14: Bluetooth Controller Setting up the BT controller and Arduino with Processing.

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.