Circuit Documentation
Summary
This circuit involves an Arduino Nano microcontroller interfaced with a 4-position DIP switch and four 4700 Ohm resistors. The DIP switch is used to provide input to the Arduino Nano, which can read the state of each switch through its analog pins. The resistors are used as pull-down resistors to ensure a defined logic level when the switches are open.
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
DIP Switch 4 Position
- Description: A 4-position DIP switch used for input.
- Pins: 1, 2, 3, 4, 5, 6, 7, 8
Resistor (4x)
- Description: 4700 Ohm resistor used as pull-down resistors.
- Pins: pin1, pin2
- Properties:
- Resistance: 4700 Ohms
Wiring Details
Arduino Nano
- GND: Connected to pins 5, 6, 7, and 8 of the DIP Switch.
- A3: Connected to pin1 of a 4700 Ohm resistor.
- A2: Connected to pin1 of a 4700 Ohm resistor.
- A1: Connected to pin1 of a 4700 Ohm resistor.
- A0: Connected to pin1 of a 4700 Ohm resistor.
DIP Switch 4 Position
- Pin 1: Connected to pin2 of a 4700 Ohm resistor.
- Pin 2: Connected to pin2 of a 4700 Ohm resistor.
- Pin 3: Connected to pin2 of a 4700 Ohm resistor.
- Pin 4: Connected to pin2 of a 4700 Ohm resistor.
- Pins 5, 6, 7, 8: Connected to GND of the Arduino Nano.
Resistor (4x)
Resistor 1:
- pin1: Connected to A3 of the Arduino Nano.
- pin2: Connected to pin 4 of the DIP Switch.
Resistor 2:
- pin1: Connected to A2 of the Arduino Nano.
- pin2: Connected to pin 3 of the DIP Switch.
Resistor 3:
- pin1: Connected to A1 of the Arduino Nano.
- pin2: Connected to pin 2 of the DIP Switch.
Resistor 4:
- pin1: Connected to A0 of the Arduino Nano.
- pin2: Connected to pin 1 of the DIP Switch.
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
