Circuit Documentation
Summary
This circuit consists of an Arduino Nano microcontroller, a blue LED, a reed switch, and a 18650 Li-Ion battery. The Arduino Nano controls the LED and reads the state of the reed switch. The circuit is powered by the 18650 Li-Ion battery.
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
LED: Two Pin (blue)
- Description: A blue light-emitting diode with two pins.
- Pins: cathode, anode
Reed Switch
- Description: A magnetic switch that closes in the presence of a magnetic field.
- Pins: VCC, GND, DO
18650 Li-Ion
- Description: A rechargeable lithium-ion battery.
- Pins: Positive, Negative
Wiring Details
Arduino Nano
- GND: Connected to the cathode of the LED, GND of the reed switch, and Negative of the 18650 Li-Ion battery.
- D2: Connected to DO of the reed switch.
- VIN: Connected to Positive of the 18650 Li-Ion battery.
- 5V: Connected to VCC of the reed switch.
- D13/SCK: Connected to the anode of the LED.
LED: Two Pin (blue)
- cathode: Connected to GND of the Arduino Nano.
- anode: Connected to D13/SCK of the Arduino Nano.
Reed Switch
- VCC: Connected to 5V of the Arduino Nano.
- GND: Connected to GND of the Arduino Nano.
- DO: Connected to D2 of the Arduino Nano.
18650 Li-Ion
- Positive: Connected to VIN of the Arduino Nano.
- Negative: Connected to GND of the Arduino Nano.
Code Documentation
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.txt
This document provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used in the Arduino Nano.
