1. Connection of LED
LED (Light Emitting Diode) is a solid-state semiconductor device that can convert electrical energy into visible light. It directly converts electricity into light. The core of the LED is a semiconductor chip, one end of which is attached to a bracket, one end is the negative electrode, and the other end is connected to the positive electrode of the power supply, encapsulating the entire chip in epoxy resin.Note: The longer leg is the positive electrode, and the shorter leg is the negative electrode.
When the current flowing through the LED exceeds its limit, it may burn out, so generally, circuits require a current-limiting resistor. Please calculate the minimum value of the current-limiting resistor based on the formula. Refer to the circuit connection diagram.
Current-limiting resistor = (Power supply voltage – LED forward working voltage) / LED working current
2. Connection of switch components
3. DHT11 temperature and humidity sensor
The sensor includes a resistive humidity sensing element and an NTC temperature sensing element, connected to a high-performance 8-bit microcontroller. It can be used in HVAC, dehumidifiers, testing and detection equipment, consumer products, automobiles, automatic control, data loggers, meteorological stations, home appliances, humidity regulators, medical and other related temperature and humidity detection and control.
Functional features:
1. Can detect the humidity and temperature of the surrounding environment 2. Humidity measurement range: 20%-95% (0 degrees – 50 degrees range) Humidity measurement error: ±5% 3. Temperature measurement range: 0℃-50℃, temperature measurement error: ±2℃ 4. Operating voltage 3.3V-5V 5. Output form: digital output 6. Power indicator light (red)
Leave a Comment
Your email address will not be published. Required fields are marked *