Arduino-Controlled Robotic Vehicle with Bluetooth Audio Feedback
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit designed to control servo motors, drive gearmotors, play audio through a loudspeaker, and communicate via Bluetooth. The circuit is built around an Arduino UNO microcontroller, which interfaces with various components including SG90 servo motors, gearmotors, a PAM8403 audio amplifier, a 12v relay, an mp3e module, a loudspeaker, a battery, a toggle switch, and a Bluetooth module. The circuit is designed to perform tasks that require motor control, audio playback, and wireless communication.
Component List
- SG90 Servo Motor: A small and lightweight servo motor used for precise control of angular or linear position, velocity, and acceleration.
- Gearmotor DC Wheels (Right and Left): Motors with gear reduction that are typically used to drive wheels or other rotating parts.
- PAM8403: A small digital amplifier used for driving stereo audio signals.
- Arduino UNO: A microcontroller board based on the ATmega328P, widely used for building digital devices and interactive objects.
- L293D Driver Shield: A motor driver shield that can control up to four DC motors with an Arduino board.
- 12v Relay: An electrically operated switch that allows you to turn on or off a circuit using voltage and/or current much higher than a microcontroller can handle.
- mp3e: An MP3 audio module for playing music and other audio files.
- Loudspeaker: An electroacoustic transducer that converts an electrical audio signal into a corresponding sound.
- Battery 12v: A 12-volt battery that provides power to the circuit.
- Toggle Switch: A switch that can maintain its state either on or off without any further push or pull.
- Bluetooth Module: A wireless technology standard for exchanging data over short distances.
Wiring Details
SG90 Servo Motors
- PWM: Connected to Arduino UNO's digital pins (D10 for one servo, D9 for the other).
- 5V: Connected to Arduino UNO's 5V output and shared with other components.
- GND: Connected to Arduino UNO's ground (GND) and shared with other components.
Gearmotor DC Wheels (Right and Left)
- PIN1 & PIN2: Connected to L293D Driver Shield's motor control pins (m1, m2, m3, m4).
PAM8403
- 5vIN+: Connected to mp3e's 5v output and 12v Relay's NO pin.
- GND/IN-: Connected to mp3e's gnd.
- R-INPUT: Connected to mp3e's lout.
- L-INPUT: Connected to mp3e's rout.
- L- & L+: Connected to Loudspeaker's pin1 and pin2 respectively.
Arduino UNO
- 5V & GND: Provide power to various components in the circuit.
- D10 & D9: Control signals for SG90 servo motors.
- D13: Connected to 12v Relay's IN pin.
- D1 & D0: Communication with Bluetooth module (D1 to rxd, D0 to txd).
L293D Driver Shield
- m1, m2, m3, m4: Control signals for Gearmotor DC Wheels.
- GND: Connected to battery 12v's negative terminal.
12v Relay
- COM: Connected to Arduino UNO's 5V output.
- DC+ & DC-: Power input from the battery 12v.
- IN: Control signal from Arduino UNO's D13.
mp3e
- rout & lout: Audio signal outputs to PAM8403.
- 5v & gnd: Power inputs from Arduino UNO's 5V and GND.
Loudspeaker
- pin1 & pin2: Audio signal inputs from PAM8403.
Battery 12v
- + & -: Provide power to the circuit and L293D Driver Shield.
Toggle Switch
- Sig: Connected to L293D Driver Shield.
- Gnd: Connected to battery 12v's positive terminal.
Bluetooth Module
- vcc & gnd: Power inputs from Arduino UNO's 5V and GND.
- txd & rxd: Communication with Arduino UNO (txd to D0, rxd to D1).
Documented Code
// Arduino UNO Code - sketch.ino
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Note: The provided code is a template and does not contain any functional code specific to the circuit's operation. It is expected that the user will add the necessary code to control the components as per the requirements of their application.