Circuit Documentation
Summary
This document provides a detailed overview of a complex circuit involving various components such as resistors, LEDs, an Arduino Nano, sensors, and other modules. The circuit is designed to perform multiple functions, including data acquisition, communication, and control. The document includes a component list, wiring details, and documented code for the microcontrollers used in the circuit.
Component List
Resistor
- Description: A passive electrical component that implements electrical resistance as a circuit element.
- Pins: pin1, pin2
- Properties:
Resistor
- Description: A passive electrical component that implements electrical resistance as a circuit element.
- Pins: pin1, pin2
- Properties:
LED: Two Pin (red)
- Description: A light-emitting diode that emits red light.
- Pins: cathode, anode
LED: Two Pin (red)
- Description: A light-emitting diode that emits red light.
- Pins: cathode, anode
Arduino Nano
- Description: A small, complete, and breadboard-friendly board based on the ATmega328P.
- Pins: D1/TX, D0/RX, RESET, GND, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11/MOSI, D12/MISO, VIN, 5V, A7, A6, A5, A4, A3, A2, A1, A0, AREF, 3V3, D13/SCK
Arduino Nano
- Description: A small, complete, and breadboard-friendly board based on the ATmega328P.
- Pins: D1/TX, D0/RX, RESET, GND, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11/MOSI, D12/MISO, VIN, 5V, A7, A6, A5, A4, A3, A2, A1, A0, AREF, 3V3, D13/SCK
18650 Li-ion Battery
- Description: A rechargeable lithium-ion battery.
- Pins: -, +
Piezo Buzzer
- Description: An audio signaling device.
- Pins: pin 1, pin 2
BMP280
- Description: A barometric pressure sensor.
- Pins: SDO, CSB, SDA, SCL, GND, VCC
LoRa Ra-02 SX1278
- Description: A long-range transceiver module.
- Pins: GND, NSS, MOSI, MISO, SCK, D105, DI04, 3.3V, RST, DI00, DI01, D102, DI03
SDcard module
- Description: A module for interfacing with SD cards.
- Pins: GND, +3.3V, +5V, CS, MOSI, SCK, MISO
Adafruit AMG8833
- Description: An 8x8 thermal camera sensor.
- Pins: VCC, 3.3V, GND, SCL, SDA, INT
OV7670
- Description: A camera module.
- Pins: RET, PWDN, D1, D0, D3, D2, D4, D5, D6, PLK, XLK, D7, VS, HS, SCL, SDA, 3.3V, DGND
TP4056
- Description: A lithium battery charger module.
- Pins: OUT-, B-, B+, OUT+, IN-, IN+
Boost Converter MT3608
- Description: A DC-DC step-up power converter.
- Pins: OUTPUT +, OUTPUT -, INPUT +, INPUT -
Adafruit ADXL345
- Description: A 3-axis accelerometer.
- Pins: VIN, 3.3V, GND, CS, INT1, INT2, SDO/ADDR, SDA/SDIO, SCL
MAG3110
- Description: A 3-axis magnetometer.
- Pins: GND, VCC, SDA, SCL, INT
Resistor
- Description: A passive electrical component that implements electrical resistance as a circuit element.
- Pins: pin1, pin2
- Properties:
RTC DS3231
- Description: A real-time clock module.
- Pins: 32K, SQW, SCL, SDA, VCC, GND
Wiring Details
Resistor (220 Ohms)
- pin1: Connected to pin1 of another 220 Ohms resistor and D13/SCK of Arduino Nano.
- pin2: Connected to the cathode of a red LED.
Resistor (220 Ohms)
- pin1: Connected to pin1 of another 220 Ohms resistor and D13/SCK of Arduino Nano.
- pin2: Connected to the cathode of a red LED.
LED: Two Pin (red)
- cathode: Connected to pin2 of a 220 Ohms resistor.
- anode: Connected to GND.
LED: Two Pin (red)
- cathode: Connected to pin2 of a 220 Ohms resistor.
- anode: Connected to GND.
Arduino Nano
- D1/TX: Connected to D1 of OV7670.
- D0/RX: Connected to D2 of OV7670.
- GND: Connected to GND of multiple components.
- D2: Connected to D3 of OV7670.
- D3: Connected to D4 of OV7670.
- D4: Connected to D7 of OV7670.
- D5: Connected to D5 of OV7670.
- D6: Connected to D6 of OV7670.
- D8: Connected to VS of OV7670.
- D9: Connected to XLK of OV7670.
- D10: Connected to CS of SDcard module and NSS of LoRa Ra-02 SX1278.
- D11/MOSI: Connected to MOSI of SDcard module and LoRa Ra-02 SX1278.
- D12/MISO: Connected to MISO of LoRa Ra-02 SX1278 and pin2 of a 330 Ohms resistor.
- VIN: Connected to VIN of another Arduino Nano and OUTPUT + of boost converter MT3608.
- A7: Connected to DI00 of LoRa Ra-02 SX1278.
- A6: Connected to D0 of OV7670.
- A5: Connected to SCL of multiple components.
- A4: Connected to SDA of multiple components.
- A3: Connected to PWDN of OV7670.
- A2: Connected to RET of OV7670.
- A1: Connected to HS of OV7670.
- A0: Connected to PLK of OV7670.
- 3V3: Connected to 3.3V of LoRa Ra-02 SX1278 and OV7670.
- D13/SCK: Connected to SCK of SDcard module and LoRa Ra-02 SX1278.
Arduino Nano
- GND: Connected to GND of multiple components.
- D2: Connected to INT of Adafruit AMG8833 and MAG3110.
- D9: Connected to pin1 of Piezo Buzzer.
- 5V: Connected to VCC of Adafruit AMG8833 and MAG3110.
- 3V3: Connected to 3.3V of Adafruit ADXL345 and VCC of BMP280 and RTC DS3231.
18650 Li-ion Battery
- -: Connected to B- of TP4056 and INPUT - of boost converter MT3608.
- +: Connected to B+ of TP4056 and INPUT + of boost converter MT3608.
Piezo Buzzer
- pin 1: Connected to D9 of Arduino Nano.
- pin 2: Connected to GND.
BMP280
- GND: Connected to GND.
- SDA: Connected to SDA.
- SCL: Connected to SCL.
- VCC: Connected to 3.3V.
LoRa Ra-02 SX1278
- GND: Connected to GND.
- NSS: Connected to CS of SDcard module and D10 of Arduino Nano.
- MOSI: Connected to MOSI of SDcard module and D11/MOSI of Arduino Nano.
- MISO: Connected to D12/MISO of Arduino Nano and pin2 of a 330 Ohms resistor.
- SCK: Connected to SCK of SDcard module and D13/SCK of Arduino Nano.
- 3.3V: Connected to 3V3 of Arduino Nano.
- DI00: Connected to A7 of Arduino Nano.
SDcard module