Circuit Documentation
Summary
This circuit integrates a variety of components including an MPU6050 accelerometer and gyroscope module, multiple servo motors, a voltage regulator (7805), a 9V battery, resistors, a ceramic capacitor, and an Arduino UNO microcontroller. The circuit is designed to power and control servo motors based on data from the MPU6050 sensor, with the Arduino UNO serving as the central processing unit. The voltage regulator ensures a stable 5V supply to the components from the 9V battery.
Component List
MPU6050 Accelerometer + Gyroscope (Wokwi Compatible)
- Description: A motion tracking device that combines a 3-axis gyroscope and a 3-axis accelerometer on the same silicon die.
- Pins: INT, AD0, XCL, XDA, SDA, SCL, GND, VCC
Servo
- Description: An actuator that has the capability of precise control of angular position.
- Pins: gnd, vcc, pulse
7805 Voltage Regulator
- Description: A voltage regulator that outputs a regulated 5V from a higher voltage input.
- Pins: Vin, Gnd, Vout
9V Battery
- Description: A standard 9V battery used as the power source for the circuit.
- Pins: -, +
Resistor
- Description: A passive two-terminal electrical component that implements electrical resistance as a circuit element.
- Properties: Resistance: 200 Ohms
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0-A5, SCL, SDA, AREF, D0-D13
Ceramic Capacitor
- Description: A fixed-value capacitor where the ceramic material acts as the dielectric.
- Properties: Capacitance: 0.1 µF (1e-7 Farads)
Wiring Details
MPU6050 Accelerometer + Gyroscope
- VCC connected to 5V power supply net.
- GND connected to ground net.
- SDA connected to Arduino UNO pin D10.
- SCL connected to Arduino UNO pin D9.
Servo Motors
- All servos' VCC pins connected to 5V power supply net.
- All servos' GND pins connected to ground net.
- Each servo's pulse pin connected to an Arduino UNO digital pin through a 200 Ohm resistor.
7805 Voltage Regulator
- Vin connected to the positive terminal of the 9V battery.
- Gnd connected to the negative terminal of the 9V battery.
- Vout connected to the 5V power supply net.
9V Battery
- Positive terminal connected to 7805 Vin.
- Negative terminal connected to 7805 Gnd.
Resistors
- Each 200 Ohm resistor connected between an Arduino UNO digital pin and a servo motor's pulse pin.
Arduino UNO
- 5V pin connected to the 5V power supply net.
- GND pin connected to the ground net.
- Vin connected to the 7805 Vout.
- Digital pins D3, D5, D6, and D11 connected to servo motors' pulse pins through 200 Ohm resistors.
- Digital pins D9 and D10 connected to MPU6050's SCL and SDA pins, respectively.
Ceramic Capacitor
- One pin connected to the 5V power supply net.
- The other pin connected to the ground net.
Documented Code
Arduino UNO Code (sketch.ino)
void setup() {
}
void loop() {
}
Note: The provided code is a template and does not contain any functional code to operate the circuit. It needs to be populated with the necessary setup and loop instructions to initialize the MPU6050 sensor, read its data, and control the servo motors accordingly.