Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Battery-Powered Arduino Nano Reed Switch LED Indicator

View and Edit Project In Cirkit DesignerImage of Battery-Powered Arduino Nano Reed Switch LED Indicator

Circuit Documentation

Summary

This circuit consists of an Arduino Nano microcontroller, a Reed Switch, a red LED, a 18650 Li-Ion battery, a Rocker Switch, and a 330 Ohm resistor. The circuit is designed to control the LED based on the state of the Reed Switch, powered by the 18650 Li-Ion battery, and controlled via the Rocker Switch.

Component List

  1. 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
  2. Reed Switch

    • Description: A magnetic switch that opens or closes a circuit in the presence of a magnetic field.
    • Pins: VCC, GND, DO
  3. LED: Two Pin (red)

    • Description: A red light-emitting diode.
    • Pins: cathode, anode
  4. 18650 Li-Ion

    • Description: A rechargeable lithium-ion battery.
    • Pins: Positive, Negative
  5. Rocker Switch

    • Description: A switch that can be toggled between two positions.
    • Pins: 1, 2
  6. Resistor

    • Description: A 330 Ohm resistor used to limit current.
    • Pins: pin1, pin2
    • Properties: Resistance: 330 Ohms

Wiring Details

Arduino Nano

Reed Switch

LED: Two Pin (red)

18650 Li-Ion

Rocker Switch

Resistor

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 components and settings, and the loop() function is where the main logic of your program runs repeatedly.