Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an Arduino UNO microcontroller, a BH1750 light sensor, and two 4-channel relay modules. The Arduino UNO is used to control the BH1750 sensor and the relay modules. The document includes a list of components, wiring details, and the embedded code used in the microcontroller.
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
BH1750
- Description: A digital light sensor that communicates via I2C.
- Pins: VCC, GND, SCL, SDA, ADDR
4 Channel Relay Module (1)
- Description: A relay module with 4 channels for controlling high voltage devices.
- Pins: N.O. 4, COM 4, N.C. 4, N.O. 3, COM 3, N.C. 3, N.O. 2, COM 2, N.C. 2, N.O. 1, COM 1, N.C. 1, Pin 13, Pin 14, Pin 15, Pin 16, Pin 17, Pin 18, Pin 19, Pin 20, Pin 21, Pin 22, Pin 23, Pin 24, VCC+, VCC- (GND), IN 1, IN 2, IN 3, IN 4
4 Channel Relay Module (2)
- Description: A relay module with 4 channels for controlling high voltage devices.
- Pins: N.O. 4, COM 4, N.C. 4, N.O. 3, COM 3, N.C. 3, N.O. 2, COM 2, N.C. 2, N.O. 1, COM 1, N.C. 1, Pin 13, Pin 14, Pin 15, Pin 16, Pin 17, Pin 18, Pin 19, Pin 20, Pin 21, Pin 22, Pin 23, Pin 24, VCC+, VCC- (GND), IN 1, IN 2, IN 3, IN 4
Wiring Details
Arduino UNO
- 3.3V: Connected to BH1750 VCC
- GND: Connected to BH1750 GND
- A4: Connected to BH1750 SDA
- A5: Connected to BH1750 SCL
BH1750
- VCC: Connected to Arduino UNO 3.3V
- GND: Connected to Arduino UNO GND
- SDA: Connected to Arduino UNO A4
- SCL: Connected to Arduino UNO A5
4 Channel Relay Module (1)
- No connections specified in the provided net list
4 Channel Relay Module (2)
- No connections specified in the provided net list
Code
Arduino UNO Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Documentation (documentation.txt)
This document provides a comprehensive overview of the circuit, including the components used, their wiring, and the embedded code.
