I just got my 4 channel shield yesterday, thanks for the video, it explained much. However, even though I trimmed the pins for relay #3 as described, the shield still did not sit far enough down on my Arduino/Genuino Megas 2560. I had to use the Prototype Expansion Board from the Starter Kit to get the relays to work. The explanation of the pins might be helpful when I put this on a board.
I'm going to buy this one and a Arduino Rev2 WIFI/ Bluetooth, and they will be used in a PC, to turn on, off groups of Led strings. Via WIFI or my smartphone. These are forseen with only Molex connectors, which are too big for building such a system.
thank you very much for this demo !!! permit me one question, if i run 4 dc motors( each with its power supply) would 9v (680mA) battery be enough to run all 4 relays ??? thanks in advance for your video + time !!!
You are welcome. The amount of current depends on how much current your motor consumes. Maximum should be written as 10A and I have shown it. Your motor voltage can be independent of relay module.
Hi, Robojax, I am using the Motor Shield that you have and i was trying power a DC Motor with that and when i Upload the code, the Arduino and relay shield were glitching and the DC Motor was not moving. I checked the hardware to see is if there was any problem and it seemed to be fine. I also checked the code and even tried your sample code but still glitches. Do recommend any check to be done?
Hello, if don't know if you watched the video fully. if not, watch it without skipping. I have explained things about the module so you learn and if your shield is different you can fix it.
Robojax I have seen the video fully, it was really helpful and we are working for a small project for my son’s project We used 2 power source, one for Arduino and another for the Relay module common to drive the outputs, thanks for replying
Hi Robojax I am trying to run 12V DC motor with 4 Channel Relay shield. I followed your video and tried connecting the same. I am using Relay 1 and 2 for forward and reverse direction. I am really struggling with this and not able to achieve the same any help would be appreciated. Thanks in advance.
Hey Robojax, Thanks for your reply. I did not mention on the post that I want to operate my relay using joystick. Is this possible? Even if I connect my joystick and write a program for the same ……Relay operates on it’s own w/o taking input from joystick. Same program works with single relay. Thanks
Hi robojax, currently I am trying to turn on a solenoid valve on and off for testing and nothing is working. I have copied your code and I have watched the video multiple times. I have the same relay Shiels, does it power a 12v solenoid valve ?
The shield can't do that itself. For each channel, you need 2 resistors (with right values) to make voltage divider and connect it the input of each channel. this can be done. Here is voltage divider bit.ly/v-divider-1 and here is the formula for calculating V out which is your desired voltage. You can calculate R1 and R2 bit.ly/v-divider-2 I hope I understood your question.
Sorry for not explaining - my goal is to turn on 12v / 1amp light bulb 1 for 30 minutes then Off ; then turn on light bulb 2 for 30 minutes ; then back to light bulb 1 and so on repeating .....
this is great to turn the relay on/off I would like to do this in an arcade cabinet with a pir motion sensor,and not with the delay code. im new to this and not really sure how to edit the code to do this. so my question to you would be. Can you provide a code with the pir sensor connected to pin3 which would turn on any one of the 4 relays by walking up to the cabinet,then turning off when no motion is detected. being new to this is like learning to walk for the first time lol your help with this code would be appreciated so much.. signed old dog tryin to learn new tricks
Hi, your project needs multiple components to be put together. You should be able to understand the sensor that detects when cabinet is opened. Then how you will open the door? does it already have motor with component to open/close if not you would have to make that. Then you can put them all together. So 1-Learn how to use the sensor to detect motion. There are lots of ways to do it. One cheap would be ultrasonic sensor sensor to measure the distance. You wold install it inside cabinet and continuously measure the distance up to 180cm. So if obstacle gets closer to the door for example 50cm, you can turn on the motor to open the door. Here is coupon (expires in 4 days) for my Arduino Course on Udemy where you can learn Arduino step by step: www.udemy.com/course/robojax-arduino/?couponCode=9F68A2CA54235660FB69
@@robojax im not trying to open a door. its like turning on a lamp using the 4 chn relay shield,stacked on the Arduino uno. with a motion sensor(PIR) just needed the code for when the pir detects motion..lamp comes on then no motion lamp goes off.
I don't know if you notice but the link on your site for Arduino code and video for 4 channel Relay Shield, is incorrectly linked to Arduino code for HC-SR501 Motion Sensor
It took me a while to find out what is A and B. You should have used reply to previous comments. Your question was related to 8.2V and 16V and that's why I offered solution. Now 12V. I did not understand what actually want to do. We have got 4 relays which work with 5V from Arduino. What do you want to do?