Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1.71 KB

File metadata and controls

38 lines (25 loc) · 1.71 KB

Bluetooth LED warm-up

Use this short setup lesson before Exercise A when students will later control sketches over a TTL Bluetooth serial module.

Goals

  • Confirm the Bluetooth module pairs and exchanges characters at 9600 baud.
  • Prove that the same serial commands work over USB Serial and Bluetooth.
  • Avoid confusing upload failures caused by leaving the module on pins 0/1.

Sketch

Use extras/basic-bluetooth-led.

Wiring checklist

  1. Power the Arduino from USB while configuring and testing.
  2. Wire the Bluetooth module TX to Arduino RX (pin 0) and module RX to Arduino TX (pin 1) only after upload succeeds.
  3. Share ground between the module and Arduino.
  4. Confirm the module voltage matches the board and module documentation.
  5. If the module RX pin is 3.3 V logic (common for HC-05/HC-06 class modules), level-shift Arduino TX before connecting. See Serial control.
  6. Disconnect the module from pins 0/1 before every new upload.

Test procedure

  1. Upload the warm-up sketch with the Bluetooth module disconnected from pins 0/1.
  2. Open Serial Monitor at 9600 baud and verify LED commands over USB.
  3. Power down, connect the Bluetooth module with correct voltage/level shifting, pair from the host device, and reconnect serial.
  4. Send the same characters and confirm identical LED behaviour.
  5. Disconnect the module before returning to Exercise A uploads.

Safety and limitations

This warm-up is serial diagnostics only. It does not authorize motor wiring. Keep motor lessons gated behind Hardware safety. Do not drive a 3.3 V RX pin with unshifted 5 V UART.

Next step

Continue with Exercise A.