Arduino UNO Controlled LED Array with MPU-6050 and Servo Integration
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller, multiple resistors, red LEDs, an MPU-6050 sensor, a servo motor, and a speaker. The circuit is designed to control the LEDs, read data from the MPU-6050 sensor, and control the servo motor. The Arduino UNO serves as the central controller, interfacing with all other components.
Component List
Arduino UNO
- Description: Microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
Resistor
- Description: Resistor with a resistance of 200 Ohms.
- Pins: pin1, pin2
- Properties: Resistance: 200 Ohms
LED: Two Pin (red)
- Description: Red LED with two pins.
- Pins: cathode, anode
MPU-6050
- Description: 6-axis motion tracking device.
- Pins: VCC, GND, SCL, SDA, XDA, XCL, AD0, INT
Servo
- Description: Servo motor.
- Pins: gnd, vcc, pulse
Speaker
- Description: Speaker with two pins.
- Pins: +, -
Loudspeaker
- Description: Loudspeaker with two pins.
- Pins: pin1, pin2
TIP41C
- Description: NPN power transistor.
- Pins: Base, Collector, Emitter
Wiring Details
Arduino UNO
- 5V: Connected to VCC of MPU-6050 and vcc of Servo.
- GND: Connected to GND of MPU-6050 and gnd of Servo.
- D8: Connected to pulse of Servo.
- A4: Connected to SDA of MPU-6050.
- A5: Connected to SCL of MPU-6050.
Resistors
- pin1: Connected to pin1 of all other resistors and GND of Arduino UNO.
- pin2: Connected to anode of corresponding LEDs.
LEDs
- cathode: Connected to cathode of all other LEDs.
- anode: Connected to pin2 of corresponding resistors.
MPU-6050
- VCC: Connected to 5V of Arduino UNO.
- GND: Connected to GND of Arduino UNO.
- SDA: Connected to A4 of Arduino UNO.
- SCL: Connected to A5 of Arduino UNO.
Servo
- vcc: Connected to 5V of Arduino UNO.
- gnd: Connected to GND of Arduino UNO.
- pulse: Connected to D8 of Arduino UNO.
Speaker
- +: Not connected in the provided net list.
- -: Not connected in the provided net list.
Loudspeaker
- pin1: Not connected in the provided net list.
- pin2: Not connected in the provided net list.
TIP41C
- Base: Not connected in the provided net list.
- Collector: Not connected in the provided net list.
- Emitter: Not connected in the provided net list.
Documented Code
Arduino UNO Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
This code is a basic template for the Arduino UNO. The setup function is used to initialize any settings, and the loop function contains the main code that runs repeatedly. Currently, both functions are empty and need to be filled with the appropriate logic for the circuit's operation.