Circuit Documentation
Summary
This circuit consists of an Arduino Nano microcontroller, an IR sensor, a piezo buzzer, a 12V 5Ah battery, and a step-down converter. The IR sensor detects objects and sends a signal to the Arduino Nano, which then activates the piezo buzzer. The step-down converter is used to convert the 12V from the battery to 5V to power the Arduino Nano and other components.
Component List
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
IR Sensor
- Description: An infrared sensor used to detect objects.
- Pins: out, gnd, vcc
Piezo Buzzer
- Description: A piezoelectric buzzer used to produce sound.
- Pins: pin 1, pin 2
12V 5Ah Battery
- Description: A 12V battery used to power the circuit.
- Pins: 12v +, 12v -
Step-down Converter (18V to 5V)
- Description: A step-down converter used to convert 12V to 5V.
- Pins: VIN, GND IN, GND OUT, VOUT
Wiring Details
Arduino Nano
- D5: Connected to IR Sensor (out)
- 5V: Connected to IR Sensor (vcc)
- GND: Connected to IR Sensor (gnd), Piezo Buzzer (pin 2), Step-down Converter (GND OUT)
- VIN: Connected to Step-down Converter (VOUT)
- D4: Connected to Piezo Buzzer (pin 1)
IR Sensor
- out: Connected to Arduino Nano (D5)
- gnd: Connected to Arduino Nano (GND)
- vcc: Connected to Arduino Nano (5V)
Piezo Buzzer
- pin 1: Connected to Arduino Nano (D4)
- pin 2: Connected to Arduino Nano (GND)
12V 5Ah Battery
- 12v +: Connected to Step-down Converter (VIN)
- 12v -: Connected to Step-down Converter (GND IN)
Step-down Converter (18V to 5V)
- VIN: Connected to 12V 5Ah Battery (12v +)
- GND IN: Connected to 12V 5Ah Battery (12v -)
- GND OUT: Connected to Arduino Nano (GND)
- VOUT: Connected to Arduino Nano (VIN)
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:
}
Documentation (documentation.txt)
This documentation provides a comprehensive overview of the circuit, including a summary, component list, wiring details, and the code used in the Arduino Nano.
