filmov
tv
Arduino Tutorial : Controling 4 relay module for use with a 5 volt water pump
Показать описание
In this video I used the following supplies to control a 4 relay module with a arduino
- Arduino uno
- Bread board
- 5-volt water pump
- jumper wires
- 1-4 relay module
- Fish tank tubing
The code is below
byte pump1 = 7;
byte pump2 = 10;
void setup() {
while (!Serial);
pinMode(pump1, OUTPUT); // variant low/high
digitalWrite(pump2, LOW); // variant input/output
}
void loop() {
digitalWrite(pump1, HIGH); // pump1 deactivated
//pinMode(pump2, INPUT); // pump2 deactivated
delay(2000);
digitalWrite(pump1, LOW); // pump1 activated
//pinMode(pump2, OUTPUT); // pump2 activated
delay(2000);
}
- Arduino uno
- Bread board
- 5-volt water pump
- jumper wires
- 1-4 relay module
- Fish tank tubing
The code is below
byte pump1 = 7;
byte pump2 = 10;
void setup() {
while (!Serial);
pinMode(pump1, OUTPUT); // variant low/high
digitalWrite(pump2, LOW); // variant input/output
}
void loop() {
digitalWrite(pump1, HIGH); // pump1 deactivated
//pinMode(pump2, INPUT); // pump2 deactivated
delay(2000);
digitalWrite(pump1, LOW); // pump1 activated
//pinMode(pump2, OUTPUT); // pump2 activated
delay(2000);
}
Arduino Tutorial : Controling 4 relay module for use with a 5 volt water pump
Arduino Tutorial: LED Sequential Control- Beginner Project
Control a Pump with Arduino (Lesson #15)
Controlling multiple bi-polar stepper motors with Arduino Nano
DC Motor Control with an H-Bridge and Arduino (Lesson #17)
How to Control a Servo With an Arduino
Arduino Fan Control using High Frequency 25kHz PWM // 4-Wire CPU Fans
How to Control a 12V Motor with Arduino: Easy Wiring & Code Examples
Arduino Uno Servo Motor Tutorial: Easy Project for Beginners!#arduinoproject #arduinotutorials #ai
Arduino - control 4 LEDs with a potentiometer.
28BYJ-48 stepper motor and ULN2003 Arduino (Quick tutorial for beginners)
Synchronizing Motor Position with Encoders, PID Control and Arduino
Arduino Fan Control // 2-Wire, 3-Wire, and 4-Wire CPU Fan Speed Control and Measurement
You can learn Arduino in 15 minutes.
How to use an Arduino Relay Module
Coordinated stepper motor control (arduino)
Arduino Lesson 4 - Solenoid control using a Transistor
What is Relay? | How to control Relay using Arduino
Arduino Tutorial 35: Understanding How to Use a Stepper Motor
Arduino MASTERCLASS | Full Programming Workshop in 90 Minutes!
DIY Radar With Ultrasonic Sensor And Chat-GPT Generated Arduino Code | Coders Cafe
Stepper Motors with Arduino - Controlling Bipolar & Unipolar stepper motors
Simultaneously Controlling Stepper Motors with Arduino
Arduino Tutorial 37: Understanding How to Control DC Motors in Projects
Комментарии