Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller, an LM393 comparator, a blue LED, and a resistor. The Arduino UNO serves as the central control unit, interfacing with the LM393 comparator and controlling the LED through a resistor. The circuit is powered by the 5V supply from the Arduino UNO.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
LM393
- Description: A dual comparator IC.
- Pins: VCC, GND, D0, A0
LED: Two Pin (blue)
- Description: A blue light-emitting diode.
- Pins: cathode, anode
Resistor
- Description: A resistor with a resistance of 200 Ohms.
- Pins: pin1, pin2
- Properties: Resistance = 200 Ohms
Wiring Details
Arduino UNO
- 5V is connected to VCC of the LM393.
- GND is connected to GND of the LM393 and the cathode of the LED.
- D13 is connected to pin2 of the resistor.
- D2 is connected to D0 of the LM393.
LM393
- VCC is connected to 5V of the Arduino UNO.
- GND is connected to GND of the Arduino UNO.
- D0 is connected to D2 of the Arduino UNO.
LED: Two Pin (blue)
- cathode is connected to GND of the Arduino UNO.
- anode is connected to pin1 of the resistor.
Resistor
- pin1 is connected to the anode of the LED.
- pin2 is connected to D13 of the Arduino UNO.
Code Documentation
Arduino UNO 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 UNO. The setup() function is used to initialize any settings or configurations, and the loop() function contains the main code that runs repeatedly. Currently, both functions are empty and can be filled with the desired logic for the circuit.
