Circuit Documentation
Summary
This circuit consists of an Arduino Nano microcontroller, an IR sensor, and a Piezo Buzzer. The IR sensor detects objects and sends a signal to the Arduino Nano, which then triggers the Piezo Buzzer to produce sound.
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 simple buzzer that produces sound when a voltage is applied.
- Pins: pin 1, pin 2
Wiring Details
Arduino Nano
- GND: Connected to GND of the IR sensor and pin 2 of the Piezo Buzzer.
- D4: Connected to pin 1 of the Piezo Buzzer.
- D6: Connected to the out pin of the IR sensor.
- 3V3: Connected to the vcc pin of the IR sensor.
IR Sensor
- gnd: Connected to GND of the Arduino Nano and pin 2 of the Piezo Buzzer.
- out: Connected to D6 of the Arduino Nano.
- vcc: Connected to 3V3 of the Arduino Nano.
Piezo Buzzer
- pin 1: Connected to D4 of the Arduino Nano.
- pin 2: Connected to GND of the Arduino Nano and gnd of the IR sensor.
Code Documentation
Arduino Nano 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 Nano. The setup() function is where you initialize your variables and settings, and it runs once when the program starts. The loop() function contains the main code that runs repeatedly.
Additional Documentation
This section is reserved for any additional documentation or notes related to the code or circuit.
