Κανένα προϊόν
Οι τιμές είναι μετά φόρων
PRD-002693
Νέο προϊόν
Διαθέσιμο
Προσοχή: Τελευταία κομμάτια!
Ημερομηνία Διαθεσιμότητας:
Step 1: Gather the Required Equipment:
Step 2: Understand the 5V Relay Module:
Step 3: Connect the 5V Relay Module to the Breadboard:
Step 4: Control the 5V Relay Module with Arduino:
#define RELAY_PIN 7 // Pin number to which the 5V Relay Module input is connected
void setup() {
pinMode(RELAY_PIN, OUTPUT); // Set the 5V Relay Module pin as output
}
void loop() {
digitalWrite(RELAY_PIN, HIGH); // Turn on the relay
delay(1000); // Wait for 1 second
digitalWrite(RELAY_PIN, LOW); // Turn off the relay
delay(1000); // Wait for 1 second
}
That's it! You have successfully connected and controlled a 5V Relay Module with an Arduino. You can now use the relay module to control various high-voltage devices in your Arduino projects, such as lights, motors, fans, and more. Please note that when dealing with high-voltage devices, be sure to take proper precautions and follow safety guidelines to avoid any potential hazards.
Portable USB LED with white light Number of...
0,80 €
With six ball joints, the gripper arms can be...
6,70 €
Dimension : 40 x 19 x 43 mm Color: Black...
6,50 €
Display color: Red Two-wire Measurement range:...
2,20 €
Operating voltage: max. 24 V DC Current load:...
0,90 €
Jumper Cable wires usefull for connect...
2,80 €