Arduino Nano-Controlled Bluetooth Audio Player with Motion Sensing and Haptic Feedback
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an Arduino Nano as the central microcontroller, interfaced with various components such as sensors, a Bluetooth module, a voltage regulator, capacitors, a motor, a transistor, a diode, a speaker, a resistor, and a media player module. The circuit is powered by a 4 x AAA battery mount, and the voltage is regulated using a 7805 voltage regulator. The Arduino Nano facilitates communication with the HC-05 Bluetooth Module and the DFPlayer MINI, as well as controlling a vibration motor through an NPN transistor and reading data from an MPU-6050 sensor and a flex resistor.
Component List
Arduino Nano
- Microcontroller board based on the ATmega328P
- Pins: D1/TX, D0/RX, RESET, GND, D2 to D13, VIN, 5V, A0 to A7, AREF, 3V3
Electrolytic Capacitor
- Capacitance: 0.0001 Farads
- Pins: -, +
4 x AAA Battery Mount
- Power supply component
- Pins: -, +
7805 Voltage Regulator
- 5V voltage regulator
- Pins: Vin, Gnd, Vout
Ceramic Capacitor
- Capacitance: 0.0000001 Farads
- Pins: pin0, pin1
MPU-6050
- Motion tracking device with a 3-axis gyroscope and a 3-axis accelerometer
- Pins: VCC, GND, SCL, SDA, XDA, XCL, AD0, INT
2.2 inch Basic Flex Resistor
- Flexible sensor that changes resistance when bent
- Pins: Pin 2, pin 1
HC-05 Bluetooth Module
- Bluetooth module for wireless communication
- Pins: Key, VCC, TXD, RXD, State, GND
Vibration Motor
- Small motor that provides haptic feedback
- Pins: POS, NEG
NPN-Transistor
- Bipolar junction transistor used for switching and amplification
- Pins: E, C, B
Diode
- Component that allows current to flow in one direction
- Pins: cathode, anode
Piezo Speaker
- Electronic device that produces sound
- Pins: pin1, pin2
Resistor
- Resistance: 200 Ohms
- Pins: pin1, pin2
DFPlayer MINI
- Compact MP3 player module for playing sound files
- Pins: VCC, BUSY, RX, USB -, TX, USB +, DAC_R, K2/ADC_KEY, DAC_L, K1/ADC_KEY, SPK1, IO 2, GND, SPK2, IO 1
Wiring Details
Arduino Nano
- GND connected to the common ground net
- VIN connected to the output of the 7805 voltage regulator
- 5V connected to the VCC pins of MPU-6050, HC-05 Bluetooth Module, and DFPlayer MINI
- D1/TX connected to RXD of HC-05 Bluetooth Module
- D0/RX connected to TXD of HC-05 Bluetooth Module
- D9 connected to the base (B) of the NPN-Transistor
- D10 connected to one terminal of the Piezo Speaker (other terminal connected to a 200 Ohm resistor)
- D11/MOSI connected to TX of DFPlayer MINI
- D12/MISO connected to RX of DFPlayer MINI
- A5 (SCL) connected to SCL of MPU-6050
- A4 (SDA) connected to SDA of MPU-6050
- A0 connected to Pin 2 of the 2.2 inch Basic Flex Resistor
Electrolytic Capacitor
- "+" connected to Vin of the 7805 voltage regulator and "+" of the 4 x AAA Battery Mount
- "-" connected to the common ground net
4 x AAA Battery Mount
- "+" connected to Vin of the 7805 voltage regulator and "+" of the Electrolytic Capacitor
- "-" connected to the common ground net
7805 Voltage Regulator
- Vin connected to "+" of the 4 x AAA Battery Mount and "+" of the Electrolytic Capacitor
- Gnd connected to the common ground net
- Vout connected to VIN of the Arduino Nano and one terminal of the Ceramic Capacitor
Ceramic Capacitor
- pin0 connected to the common ground net
- pin1 connected to Vout of the 7805 voltage regulator
MPU-6050
- VCC connected to 5V of the Arduino Nano
- GND connected to the common ground net
- SCL connected to A5 (SCL) of the Arduino Nano
- SDA connected to A4 (SDA) of the Arduino Nano
2.2 inch Basic Flex Resistor
- pin 1 connected to 5V of the Arduino Nano
- Pin 2 connected to A0 of the Arduino Nano
HC-05 Bluetooth Module
- VCC connected to 5V of the Arduino Nano
- GND connected to the common ground net
- TXD connected to D0/RX of the Arduino Nano
- RXD connected to D1/TX of the Arduino Nano
Vibration Motor
- POS connected to the collector (C) of the NPN-Transistor
- NEG connected to the common ground net
NPN-Transistor
- E connected to the common ground net
- C connected to POS of the Vibration Motor and cathode of the Diode
- B connected to D9 of the Arduino Nano
Diode
- anode connected to the common ground net
- cathode connected to C of the NPN-Transistor
Piezo Speaker
- pin1 connected to the common ground net
- pin2 connected to D10 of the Arduino Nano and one terminal of the 200 Ohm resistor
Resistor
- pin1 connected to the common ground net
- pin2 connected to pin2 of the Piezo Speaker and D10 of the Arduino Nano
DFPlayer MINI
- VCC connected to 5V of the Arduino Nano
- GND connected to the common ground net
- TX connected to D11/MOSI of the Arduino Nano
- RX connected to D12/MISO of the Arduino Nano
Documented Code
Arduino Nano Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Additional Notes (documentation.txt)
No additional code documentation provided.