Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Project Documentation

Arduino UNO Bluetooth-Controlled Speaker

Image of Arduino UNO Bluetooth-Controlled Speaker

Circuit Documentation

Summary of the Circuit

This circuit is designed to control a Bluetooth-enabled speaker using an Arduino UNO microcontroller. The Arduino UNO interfaces with a Bluetooth Mate Gold module for wireless communication and drives a speaker for audio output. The circuit is powered by the Arduino's 5V output, which also powers the Bluetooth module. Ground connections are shared among all components to complete the circuit.

Component List

Arduino UNO

  • Description: A microcontroller board based on the ATmega328P.
  • Purpose: Acts as the central processing unit of the circuit, controlling the Bluetooth module and the speaker.
  • Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0-A5, SCL, SDA, AREF, D0-D13.

Speaker

  • Description: An audio output device.
  • Purpose: To produce sound as instructed by the Arduino UNO.
  • Pins: + (positive), - (negative).

Bluetooth Mate Gold

  • Description: A wireless communication module compatible with Bluetooth technology.
  • Purpose: To enable wireless communication between the Arduino UNO and a Bluetooth device.
  • Pins: RTS-O, RX-I, TX-O, VCC, CTS-I, GND, PIO6.

Wiring Details

Arduino UNO

  • 5V is connected to the VCC pin of the Bluetooth Mate Gold to provide power.
  • GND is connected to the GND pin of the Bluetooth Mate Gold and the negative (-) pin of the Speaker to establish a common ground.
  • D9 is connected to the positive (+) pin of the Speaker for audio signal output.
  • D1 (TX) is connected to the RX-I pin of the Bluetooth Mate Gold for serial communication.
  • D0 (RX) is connected to the TX-O pin of the Bluetooth Mate Gold for serial communication.

Speaker

  • + (positive) is connected to pin D9 of the Arduino UNO for receiving audio signals.
  • - (negative) is connected to the GND pin of the Arduino UNO for completing the circuit.

Bluetooth Mate Gold

  • VCC is connected to the 5V pin of the Arduino UNO for power.
  • GND is connected to the GND pin of the Arduino UNO for a common ground.
  • RX-I is connected to pin D0 (RX) of the Arduino UNO for receiving serial data.
  • TX-O is connected to pin D1 (TX) of the Arduino UNO for transmitting serial data.

Documented Code

/*
 * Arduino Bluetooth Speaker
 * This code is intended to control a Bluetooth speaker using an Arduino UNO.
 * It includes placeholders for Bluetooth module and speaker connections.
 * Please update the pin definitions and logic as per your specific hardware.
 */

// Pin definitions (update these as per your hardware setup)
const int bluetoothRxPin = 0; // RX pin of Bluetooth module, connected to D0 on Arduino
const int bluetoothTxPin = 1; // TX pin of Bluetooth module, connected to D1 on Arduino
const int speakerPin = 9;     // Speaker output pin, connected to D9 on Arduino

void setup() {
  // Initialize serial communication for Bluetooth module
  Serial.begin(9600);
  pinMode(bluetoothRxPin, INPUT);
  pinMode(bluetoothTxPin, OUTPUT);
  pinMode(speakerPin, OUTPUT);
  // Additional setup code here
}

void loop() {
  // Main code to handle Bluetooth communication and speaker output
  if (Serial.available() > 0) {
    char receivedChar = Serial.read();
    // Process received data and control speaker
    // Placeholder logic: simply output received character to speaker
    analogWrite(speakerPin, receivedChar);
  }
  // Additional loop code here
}

Note: The pin definitions in the code have been updated to reflect the actual wiring of the circuit. The bluetoothRxPin is set to 0 (D0 on Arduino) and bluetoothTxPin is set to 1 (D1 on Arduino) to match the electrical net list provided.