Description
What is it The 12V DC Relay HK19F-DC12V-SHG is an electronic device used to control alternating current (AC) or direct current (DC) circuits from Arduino or other microcontrollers. This component allows you to break or establish an electrical connection between two independent circuits. Features Operating voltage: 12V DC DC current capacity: 1A at 30VDC AC current capacity: 2A at 125VAC What is it used for Ideal for home automation projects, the relay can be used to control devices such as light switches or other electrical appliances. For example, you can create an automatic lighting system that turns on the lights at dusk and turns them off when it gets light using a light-dependent resistor (LDR). Tutorial: How to Use 12V DC Relay HK19F-DC12V-SHG The 12V DC Relay HK19F-DC12V-SHG is a useful device for controlling AC or DC circuits from Arduino or other microcontrollers. Ideal for beginners who want to automate domestic processes. What do you need Arduino Uno USB Cable 12V Resistor Protection Steps Connect the relay to the 12V power supply and the microcontroller (GND, VCC, IN) Check the protection resistor between the relay output and the external circuit Write an Arduino sketch to control the relay Test the system with a simple ON/OFF command Example code void setup() { pinMode(2, OUTPUT); } void loop() { digitalWrite(2, HIGH); // Turns on the actuator connected to the relay delay(1000); digitalWrite(2, LOW); // Turns off the actuator connected to the relay delay(1000); } Mini-project Create an automatic lighting system that turns on the lights at dusk and turns them off when it gets light. Using an LDR sensor to detect light levels. Common errors Not to check the protection resistor Connect the relay output directly to high-voltage circuits without an intermediate circuit Ignore the relay’s electrical specifications during the project Recommended accessories 1kΩ Resistor LDR Sensor Relay Shield for Arduino ESD Protection Module







Reviews
There are no reviews yet.