Circuit Documentation
Summary
This circuit integrates a variety of components to create a system capable of sensing and interacting with its environment. The core of the circuit is the Mtiny Uno ATmega328P microcontroller, which interfaces with a 0.96" OLED display, a TF LUNA LIDAR sensor, an MPU6050 accelerometer and gyroscope module, and a DHT11 temperature and humidity sensor. The circuit is powered by a 9V battery, regulated to 5V by a 7805 voltage regulator. Communication with a computer for programming and debugging is facilitated by the Adafruit FTDI Friend. A toggle switch is included to control power to the circuit.
Component List
Mtiny Uno ATmega328P: A microcontroller board based on the ATmega328P. It has a variety of digital and analog I/O pins.
0.96" OLED: A small display that uses the I2C protocol for communication.
TF LUNA LIDAR: A compact time-of-flight (ToF) sensor that provides distance measurements.
MPU6050: A motion processing module that contains an accelerometer and a gyroscope.
DHT11: A basic, low-cost digital temperature and humidity sensor.
9V Battery: Provides the power source for the circuit.
2.1mm DC Barrel Jack: A connector for the power supply.
Power Jack: A component that facilitates the connection of the power supply to the circuit.
7805: A voltage regulator that outputs a stable 5V from a higher voltage input.
Toggle Switch (SPST): A single-pole single-throw switch used to control the power to the circuit.
Adafruit FTDI Friend: A breakout board for FTDI FT232RL USB to serial IC, used for programming and communication with the microcontroller.
Wiring Details
Mtiny Uno ATmega328P
- A4 (SDA): Connected to the SDA pin of the 0.96" OLED and the SCL pin of the MPU6050.
- A5 (SCK): Connected to the SCK pin of the 0.96" OLED and the SDA pin of the MPU6050.
- GND: Common ground with the 0.96" OLED, MPU6050, Adafruit FTDI Friend, DHT11, and TF LUNA LIDAR.
- 4: Connected to the RXD/SDA pin of the TF LUNA LIDAR.
- 3: Connected to the TXD/SCL pin of the TF LUNA LIDAR.
- 2: Connected to the DATA pin of the DHT11.
- TX: Connected to the RX pin of the Adafruit FTDI Friend.
- RX: Connected to the TX pin of the Adafruit FTDI Friend.
- RST: Connected to the RTS/DTR pin of the Adafruit FTDI Friend.
- 5V: Connected to the Vout pin of the 7805 voltage regulator and VDD pin of the 0.96" OLED, VCC pin of the Adafruit FTDI Friend, VCC pin of the DHT11, and power pin of the TF LUNA LIDAR.
0.96" OLED
- GND: Common ground with the Mtiny Uno ATmega328P and MPU6050.
- VDD: Connected to the Vout pin of the 7805 voltage regulator.
TF LUNA LIDAR
- GND: Common ground with the Mtiny Uno ATmega328P.
- RXD/SDA: Connected to pin 4 of the Mtiny Uno ATmega328P.
- TXD/SCL: Connected to pin 3 of the Mtiny Uno ATmega328P.
- Power: Connected to the Vout pin of the 7805 voltage regulator.
MPU6050
- GND: Common ground with the Mtiny Uno ATmega328P.
- VCC: Connected to the Vout pin of the 7805 voltage regulator.
- SCL: Connected to the A4 (SDA) pin of the Mtiny Uno ATmega328P.
- SDA: Connected to the A5 (SCK) pin of the Mtiny Uno ATmega328P.
DHT11
- GND: Common ground with the Mtiny Uno ATmega328P.
- VCC: Connected to the Vout pin of the 7805 voltage regulator.
- DATA: Connected to pin 2 of the Mtiny Uno ATmega328P.
9V Battery
- +: Connected to the Vin pin of the 7805 voltage regulator through the Toggle Switch (SPST).
- -: Common ground with the circuit.
2.1mm DC Barrel Jack
- Center: Connected to the Vin pin of the 7805 voltage regulator.
- Sleeve: Common ground with the circuit.
Power Jack
- POSITIF: Connected to the Vin pin of the 7805 voltage regulator.
- NEGATIF: Common ground with the circuit.
7805
- Vin: Connected to the positive terminal of the 9V Battery, center pin of the 2.1mm DC Barrel Jack, and POSITIF pin of the power jack.
- Gnd: Common ground with the circuit.
- Vout: Connected to the 5V power supply pins of the Mtiny Uno ATmega328P, 0.96" OLED, Adafruit FTDI Friend, DHT11, and TF LUNA LIDAR.
Toggle Switch (SPST)
- L1: Connected to the positive terminal of the 9V Battery.
- COM: Connected to the Vin pin of the 7805 voltage regulator.
Adafruit FTDI Friend
- GND: Common ground with the Mtiny Uno ATmega328P.
- VCC: Connected to the Vout pin of the 7805 voltage regulator.
- TX: Connected to the RX pin of the Mtiny Uno ATmega328P.
- RX: Connected to the TX pin of the Mtiny Uno ATmega328P.
- RTS/DTR: Connected to the RST pin of the Mtiny Uno ATmega328P.
Documented Code
No code was provided for the microcontroller. The documentation of the code would typically include descriptions of the functionality implemented for each connected component, initialization procedures, main loop behavior, interrupt service routines, and any libraries or external resources used. Since no code is available, this section remains empty.
