Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes various components such as a relay, resistors, a voltage regulator, a battery, a transistor, a diode, an IR sensor, a fan, and an LED. The circuit is designed to control a fan and an LED based on the input from an IR sensor, with power regulation provided by a voltage regulator and switching controlled by a relay and a transistor.
Component List
Relay 5V
- Pins: COM, COIL 1, COIL 2, NO, NC
- Description: A 5V relay used for switching.
- Purpose: To control the switching of the fan and LED.
Resistor (1000 Ohms)
- Pins: pin1, pin2
- Description: A resistor with a resistance of 1000 Ohms.
- Purpose: To limit current in the circuit.
Resistor (300 Ohms)
- Pins: pin1, pin2
- Description: A resistor with a resistance of 300 Ohms.
- Purpose: To limit current in the circuit.
Voltage Regulator
- Pins: IN, GND, OUT
- Description: A voltage regulator.
- Purpose: To regulate the voltage supplied to the IR sensor and other components.
9V Battery
- Pins: +, -
- Description: A 9V battery.
- Purpose: To provide power to the circuit.
NPN Transistor (EBC)
- Pins: emitter, base, collector
- Description: An NPN transistor.
- Purpose: To amplify current and control the relay.
Diode
- Pins: cathode, anode
- Description: A diode.
- Purpose: To allow current to flow in one direction and protect the circuit.
IR Sensor
- Pins: out, gnd, vcc
- Description: An IR sensor.
- Purpose: To detect infrared signals and provide input to the circuit.
Fan
- Pins: GND, 5V
- Description: A fan.
- Purpose: To provide cooling.
LED: Two Pin (red)
- Pins: cathode, anode
- Description: A red LED.
- Purpose: To provide visual indication.
Wiring Details
Relay 5V
- COM is connected to the positive terminal of the 9V Battery.
- COIL 1 is connected to the anode of the Diode and the emitter of the NPN Transistor.
- COIL 2 is connected to the cathode of the Diode, the output of the Voltage Regulator, and the VCC of the IR Sensor.
- NC is connected to pin1 of the 300 Ohms Resistor and the 5V pin of the Fan.
Resistor (1000 Ohms)
- pin1 is connected to the base of the NPN Transistor.
- pin2 is connected to the output of the IR Sensor.
Resistor (300 Ohms)
- pin1 is connected to the NC pin of the Relay and the 5V pin of the Fan.
- pin2 is connected to the cathode of the LED.
Voltage Regulator
- IN is connected to the positive terminal of the 9V Battery.
- GND is connected to the ground of the IR Sensor, the ground of the 9V Battery, and the collector of the NPN Transistor.
- OUT is connected to the VCC of the IR Sensor, the cathode of the Diode, and the COIL 2 pin of the Relay.
9V Battery
- + is connected to the COM pin of the Relay and the IN pin of the Voltage Regulator.
- - is connected to the ground of the IR Sensor, the ground of the Voltage Regulator, and the collector of the NPN Transistor.
NPN Transistor (EBC)
- emitter is connected to the anode of the Diode and the COIL 1 pin of the Relay.
- base is connected to pin1 of the 1000 Ohms Resistor.
- collector is connected to the ground of the IR Sensor, the ground of the Voltage Regulator, and the ground of the 9V Battery.
Diode
- anode is connected to the COIL 1 pin of the Relay and the emitter of the NPN Transistor.
- cathode is connected to the COIL 2 pin of the Relay, the output of the Voltage Regulator, and the VCC of the IR Sensor.
IR Sensor
- out is connected to pin2 of the 1000 Ohms Resistor.
- gnd is connected to the ground of the Voltage Regulator, the ground of the 9V Battery, and the collector of the NPN Transistor.
- vcc is connected to the output of the Voltage Regulator, the cathode of the Diode, and the COIL 2 pin of the Relay.
Fan
- 5V is connected to pin1 of the 300 Ohms Resistor and the NC pin of the Relay.
- GND is connected to the ground of the 9V Battery and the anode of the LED.
LED: Two Pin (red)
- anode is connected to the ground of the 9V Battery and the GND pin of the Fan.
- cathode is connected to pin2 of the 300 Ohms Resistor.
Code
There is no code provided for this circuit.
This document provides a comprehensive overview of the circuit, including a summary, a detailed component list, wiring details, and a section for code documentation.
