Тёмный

Raspberry Pi: 8 Channel Relay step-by-step with software examples for automation 

skiwithpete
Подписаться 33 тыс.
Просмотров 902 тыс.
50% 1

Check in this section for all the further information relating to this video.
Get the relay here: amzn.to/1zG6Daz
Get the GPIO wires: amzn.to/1VyYIYb
Get the WiFi dongle: amzn.to/1v8L7Ho
And, the Raspberry Pi 2B: amzn.to/1zJlP9L
Get the parts in the UK: bit.ly/15XFRBH
**Remember: Help each other in the comments section. And please repost your code.
Find the scripts here:
Lights1: github.com/skiwithpete/relayp...
Lights2: github.com/skiwithpete/relayp...
Lights3: github.com/skiwithpete/relayp...
Lights4: github.com/skiwithpete/relayp...
Lights5: github.com/skiwithpete/relayp...
Watch my other Raspberry Pi relay videos:
1 channel relay video: • Raspberry Pi: 1 Channe...
4 channel relay video: • Raspberry Pi: 4-channe...
16 channel relay video: • Raspberry Pi: 16 Chann...
To see my other Raspberry Pi projects:
Garage door remote: • Easy Raspberry Pi Gara...
Outdoor Automated Lights: • Raspberry Pi Automated...
File Server (NAS): • Raspberry Pi: File Ser...
Weather Station: • Raspberry Pi: Weather ...
How to Bitcoin Miner: • How to: Mine Bitcoins ...
Voice activated lights: • Raspberry Pi: Voice ac...
Control a light with your Mobile phone: • Raspberry Pi: how to t...
Donate here: If you like the video or think it's useful buy me a coffee bit.ly/1kAous6
Donate with bitcoin! 1HfHr25qZQjPzwphPxpNaD5CytDNYcfzrJ
Support this channel on Patreon!
/ skiwithpete

Опубликовано:

 

23 май 2014

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 708   
@dutchman55
@dutchman55 5 лет назад
Watching and loving this in 2019
@dutchman55
@dutchman55 5 лет назад
1 week later I have my parts and the free time, it works! You're awesome man!!! I'm a full time software engineer, but I've never messed with this stuff before. So cool!
@i_Tubs
@i_Tubs 4 года назад
What pi did you end up using? I’m in uk and can’t find the exact one that’s in the video- I’m also new to the pi so don’t know the difference between the models!
@dogbite1516
@dogbite1516 4 года назад
@@i_Tubs have you found what you were looking for? I am using the pi Model B rev 2 and i did have the issue acouple of years ago, that swpete was talking about, but revisiting this, it just simply worked... okay, after adjusting the GPIO numbers in the list. as long as you know what pi you are ussing you can search the 'net for pin/gpio layout. This also worked for me using raspberry pi 3
@i_Tubs
@i_Tubs 4 года назад
Stephen Viner yes thanks Stephen. In the end I just went for the 4gb pi 4, for the extra £20 or so I thought it would be worth to go for the newest and highest spec one! Got it controlling my Christmas lights at the moment!
@ru-pirie1952
@ru-pirie1952 3 года назад
try 2020 :P
@HamzaQayyum
@HamzaQayyum 8 лет назад
I really love how you explain this everything such depth, all while sounding very non-monotone. Keep doing what you're doing!
@blenderbari
@blenderbari 6 лет назад
Thank you so much for the tutorial videos. It took me a few days to figure it out, but finally, everything worked just like your video. I had to edit the scripts a little to update the print commands, but then everything came to life. Please post more - we appreciate them, and the work you put in.
@RobertAlexanderRM
@RobertAlexanderRM 4 года назад
Watching this in 2020! :) Did my first use of GPIO with a spare RPi 2 v1.1 and your same 8 relay module. Pinout was the same. Worked flawlessly with your script. My board is attached to cabled Ethernet not WiFi. Thank you very much.
@skiwithpete
@skiwithpete 4 года назад
Awesome. Thanks for the comment!
@xcruell
@xcruell 7 лет назад
Thanks a ton for all the videos about the RaspberryPi & 8ch relay! Im planning on doing the same in my rather small garden, since i dont have any lights atm. Keep up the great work man! :)
@JayMoodley
@JayMoodley 4 года назад
Thanks for the video.. used it as my lockdown project for get my reef pi up and running.👍🏽
@RandyRasmussen
@RandyRasmussen 9 лет назад
I must say your videos are very impressive. The tutorials are great and I love the way you put in the links. Very nice.
@skiwithpete
@skiwithpete 9 лет назад
Randy Rasmussen Thanks, that's very kind of you.
@girardaquino
@girardaquino 9 лет назад
Thanks so much man! I had a slightly different setup but your video provide a good starting point.
@fetchitnowuk
@fetchitnowuk 4 года назад
Thank you so much for this. Followed the instruction and using this now for an Aliuminum Can crusher project. I'll share the automation code once done. Thanks again.
@nikf3188
@nikf3188 8 лет назад
Top tutorial which has just resulted in a Pi, Relay, Asterisk mashup to control gate opening & closing via SIP. Thank you!
@skiwithpete
@skiwithpete 8 лет назад
show us a vid when you get a minute to film it.
@Skilldibop
@Skilldibop 9 лет назад
Very simple but effective demo. I'm a network engineer by trade and like many I have a test lab at home full of kit I can connect to remotely. Downside is leaving it all on so it's accessible can burn something like 650-700w. The plan is to borrow some of the principals and code you kindly provided to be able to connect remotely to the Pi and power on only the equipment I need, only when I need it. Hopefully saving me a heap on my energy bills! It should also be a fair bit cheaper and more fun than buying a proper network managed PDU off the shelf :)
@LukeAlderton
@LukeAlderton 8 лет назад
Thanks man! Saw your video, immediately ordered the parts, just used wget on the Pi over SSH to get your scripts and it's all working. Brilliant!
@skiwithpete
@skiwithpete 8 лет назад
+Luke Alderton :) Thanks. Let me know if you make a vid for your project and I'll link it here.
@LukeAlderton
@LukeAlderton 8 лет назад
+skiwithpete Will do! I just hooked up the lamp on my desk. At first I was a bit hesitant to use the mains electricity but it works brilliantly. :D
@Cmdrlucky8
@Cmdrlucky8 10 лет назад
Fantastic video! Really appreciate the time you've put into this. Looking forward into delving into these projects!
@skiwithpete
@skiwithpete 10 лет назад
Thanks! Hope you'll subscribe!
@jameshyde6395
@jameshyde6395 7 лет назад
Hi I have just hooked up the Raspberry pi 3 to the 8 channel relay board exactly how it is in this video , however i had an intermittent problem with channel 3, this was easily solved by moving the wire for GPIO pin 4 to GPIO pin 5 and Edited the code at the start of the script to output to GPIO5 pin instead, problem solved. great Video clear instructions and got to the point without beating about the bush.
@skiwithpete
@skiwithpete 7 лет назад
Thanks!
@F0YF0YT0S
@F0YF0YT0S 6 лет назад
James are you using the same relay? I cant get it to work and its suggested that i get an external power source for the relay. I am using RSpi 3 model b.
@shiro.kabocha
@shiro.kabocha 7 лет назад
This seems to be the most friendly community i ever saw on youtube.
@Juasml
@Juasml 6 лет назад
This is just one person's opinion, but I think that the general profile of people who watch these videos is that of someone who puts themselves to work and produce stuff, people on the internet who just want to be entretained by YT videos end up not having fun, being bored and frustrated which makes them angry and toxic.
@chrisurban6835
@chrisurban6835 4 года назад
Bravo! It worked with my Raspberry pi 4 b. in conjunction with Mu 1.0.2. Finally i made it do something.
@jK-zv7nk
@jK-zv7nk 5 лет назад
Dude, this is awesome! I have no programming experience, but the idea of programming something for automation is awesome. I would like to get a raspberry pi to learn how have it water plants at a certain time/length of time as a fun, side project. Great work! :)
@skiwithpete
@skiwithpete 5 лет назад
The code is downloadable in the about section
@azelbane87
@azelbane87 Год назад
I DISCOVERED your channel JUST&ONLY NOW!!! and I LOOOOOOOVE IT!!! YOU ARE MY SAVIOR!!!!BLESS YOU WHOEVER YOU ARE!!BLESS YOU BLESS YOU BLESS YOU BLESS YOU BLESS YOU!!!
@risingtiger42
@risingtiger42 10 лет назад
awesome. I've got a raspberry pie B+ running nodejs which will power a sprinkler system. I'm hoping this will work. Thanks for the vid:)
@ericsinclair4704
@ericsinclair4704 5 лет назад
I just built my relay box 8 channels similar to how you have yours set up, mine is a box looking thing but non the less functions just like your does. However I do not get the same problem as you on the test script countdown the very first one you run, it lags out at 7 8 and yours but on mine it does not do that at all, Even with all WiFi Bluetooth and HDMI with Ethernet didn't make it trip like that I'm not sure why your is doing that. My model is the pi 3 b+. Thank you so much for this video it worked wonders for my build, I built a controllable 8 channel wall plugs 4 of them but able to control individually by snipping the positive connecting piece on the plug thus I can control 8 plugs. I'm using mine for this years Christmas lights show. Yes I went with mains on this project because of what I wanted to do, I know everyone says stay away, but your good if you have the right equipment, a gfci plug goes a long long way to test these things and common sense is the best form of safety. Also the pi supply's all the power to the relay board on my setup, no additional power source needed, I also using python coding to control so that may play a factor idk I'm knew to the pi world and loving it, not knew to how pc's works and what not but knew to tinkering with it and controlling it the way I want it to be controlled is awesome
@woodywood6961
@woodywood6961 3 года назад
You sound like Christian Slater. I found this comforting and reassuring. Great video
@skiwithpete
@skiwithpete 9 лет назад
Dylan Manthei Q1) Yes. Q2) I don't know, that's outside of the scope of my knowledge. If you can get it down to 5V, I don't know why you couldn't - but I don't know for sure.
@ianmoore5129
@ianmoore5129 7 лет назад
Just noticed that the relay supports two power supplies - one from the PI and the JCC being the 5V for the relays. These can operate independently as from the internal diagram, the two parts (input control and relay control) are connected via a photo diode . As each relay requires 20mA, then it would seem better to use a separate power supply. To change, remove the jumper. Connect the PI power supply using the GND and VCC on the jumpers next to the inputs, and use the other GND,JVCC to connect power for the relays
@Cmdrlucky8
@Cmdrlucky8 8 лет назад
Great posting, I love your pull to generate community from this video.
@skiwithpete
@skiwithpete 8 лет назад
thanks for posting. it works
@tfaqir
@tfaqir 10 лет назад
Great video...excellent quality. In my RPi circuits I always use a secondary power supply even if what's needed is 5volt for the external board. I connect the grounds together and things work fine. I'll order the relay on amazon and give it a try with the model B using an Edimax Wifi dongle. I'll post back my results.
@JustinBarak
@JustinBarak 2 года назад
Results?
@JorgeHernandez-ob6jj
@JorgeHernandez-ob6jj 2 года назад
Still waiting on those results, please, post them up so I can move on with my life.
@TheIndustrialphreak
@TheIndustrialphreak 8 лет назад
So my question is how easy would it be to throw a light detecting diod that could control if a relay state is on or off. I want to setup a controll system with my aquaponics system and possibly use it to control a robotic arm kit to tend the plants.
@j.r.3664
@j.r.3664 4 года назад
Very useful and interesting video, congratulations!
@stankrajewski8255
@stankrajewski8255 8 лет назад
Thank you for the tutorial. I am resurrecting a 5 loop guitar effects rack that I built in the late 80's. I am dropping one of my effects and focusing on using four relays for clean signal switching and the other four for powering LEDs at the foot controlled switch box. I have been told that I can simply apply digital on and off signals to the relay triggers. However, it would be better if four input switches could enable a more complex array of effects e.g. 1=comp, 2 = comp+dist, 3 = dig delay, 4 = octaver + dig delay. My question, yet unanswered, is how do I get my dry closures from my foot switches inputted into the RasPi or other?
@Channel-nc9yl
@Channel-nc9yl 9 лет назад
I build one of 30 years ago using a VIC-20 and a hand-build 4-relay board. Programmed it with BASIC.
@TheHarryspidy
@TheHarryspidy 8 лет назад
Thanks for this tutorial... When i try to connect the 8ch relay with Rpi, channel 8&3 are in HIGH and other channels are in LOW state: Why is this happening? also this following error occurs.. RuntimeWarning: A physical pull up resistor is fitted on this channel!
@Will-rl6oj
@Will-rl6oj 9 лет назад
I have recently purched the 16 ch version of this board and was wondering if anyone could help me with the coding to allow relays to be activated by keyboard buttons. The 16 ch also has a port for a 12 volt external power supply alowing it to draw more power without straining the pi. I have a b+.
@dannye6912
@dannye6912 3 года назад
What a wonderful human u are. Respekt Bro
@tonylock7657
@tonylock7657 9 лет назад
The question about why the output stopped displaying when using the Model B may have been rhetorical, but if not, I'd guess that there wasn't enough current to run the relays and the wi-fi adaptor, so when you operate enought relays, the wifi stops working. The code finishes, the wi-fi comes back on and the laptop them displays the remaining counts 7, 8, 9. My suggestion would be to give the relay board its own 5V supply.
@reesv01
@reesv01 5 лет назад
A quick way to test this theory would be to have a continuous ping going to the device IP - i.e. "ping 192.168.0.2 -t" in CMD Windows, if the pings drop "Request timed out", then you'd know communication to the Pi over Wifi was stopped.
@starbug1630
@starbug1630 8 лет назад
nice presentation... keep on!
@TheHarryspidy
@TheHarryspidy 8 лет назад
Got it... Working fine with your code... Thanks!!!
@frozencons
@frozencons 7 лет назад
Very clear and easy to wrap my dumb head around. Thanks so much for doing this!
@skiwithpete
@skiwithpete 7 лет назад
frozencons thanks for the kind words!
@berkcan3475
@berkcan3475 8 лет назад
its really helping and lerning centered video thank you
@shashanksp8020
@shashanksp8020 5 лет назад
thank you so much for the description, and code but when I tested those codes, I got the output in pi but LED on relay board didnot turn on. kindly suggest me a solution.
@Mr.P539
@Mr.P539 4 года назад
Watching now love it.
@ApplySkills
@ApplySkills 7 лет назад
my lights work but i dont hear the clicking sounds. Im using the model b+ is it a power issue
@yawmbox
@yawmbox 10 лет назад
Fantastic! Very, very easy and clear! Thanks!
@skiwithpete
@skiwithpete 9 лет назад
Cool. Let me know if you build anything with it. Cheers, P
@Erdiil
@Erdiil 9 лет назад
great video. Do you need external power supply to control the relay board ? or just the power from Raspberry (5v) and will this work with the new raspberry pi 2? thanks
@ronaldodelossantosangeles4132
@ronaldodelossantosangeles4132 5 лет назад
How can i use it in a prgrammable guitar looper switcher to run my guitar effects pedal on and of...so that i can control all my chained guitar effects pedal
@nalinfernando8184
@nalinfernando8184 3 года назад
Thank you, this made my day! Also I have modified your code I will put it up...
@humorean
@humorean 7 лет назад
Nice Video. One question, do I need to use breadboard and resistors in order for this to work? Or can I just plug straight from RPI to the relay board like you did?
@scottbrim9020
@scottbrim9020 7 лет назад
Nice job explaining clearly! I setup my new PI and I think it doesn't have enuf power as the older models do. I get the full display on the screen of each step but no response from the 8 channel board. Is there a 3.5 V 4 or 8 channel board or can I somehow get 5 v to the PI?
@vedardhagudapati4996
@vedardhagudapati4996 4 года назад
Hi, can i know the command you gave to test the relay, it will be a very helpful command to test the relay before starting the project Thank you in advance
@llamallama2007
@llamallama2007 9 лет назад
Great video, this really helped me understand Raspberry Pi GPIO so much more. I'm currently working this video through and trying to get it to automate some lights. Working well so far! but my in4 on my relay isn't functioning. So I hope it's not one of my pins, I've changed the wire and that had no effect. Going to have to try it on a different GPIO pin.. :)
@llamallama2007
@llamallama2007 9 лет назад
Abraham Gihawi Just tried a different GPIO pin, as well as a different wire, and it's definitely the relay that's faulty. :(
@raphalopes495
@raphalopes495 8 лет назад
Nice video friend, thank you so much for this help =)
@moonsikkong4047
@moonsikkong4047 9 лет назад
Hi Thank you for the video. I was following along your video and I noticed that the GPIO pin only provides 3.3v when they are on HIGH so my 5V relay only blinks, but does not give a control and that click sound/ How did you manage to supply the relays 5V with GPIO outputs?
@lucassherry3126
@lucassherry3126 8 лет назад
Would I be able to wire the relay board to solenoids and run them on timers (as long as they were the same voltage)?
@999monkeymonkey
@999monkeymonkey 9 лет назад
Hi matey update is, the 8 channel relays I got are faulty. I since brought 4 channel relays from another ebay seller and its all working great! Thanks for your help!
@skiwithpete
@skiwithpete 9 лет назад
999monkeymonkey Cool, glad you got it sorted. I just posted a new 4-channel tutorial this morning here: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-OQyntQLazMU.html
@EmmanuelOchoa8a
@EmmanuelOchoa8a 10 лет назад
Good video! Where are you get the 8 channel relay? or did you make it?
@ImranSaeed
@ImranSaeed 10 лет назад
Great effort skiwithpete
@skiwithpete
@skiwithpete 10 лет назад
thanks Imran Saeed appreciate your patience.
@w.rustylane5650
@w.rustylane5650 7 лет назад
On powering the relay board with a separate 5v supply, how much amperage does the relay board draw? Thanks.
@originalanthraxtony
@originalanthraxtony 6 лет назад
I want to use a similar set up for starting a car, I only need 3 to 4 relays, which will in turn activate 30~60 amp relays @ 12VDC, should I use an A board for this as well? I have been hesitant to buy any hardware cause I don't know anything about it, but my build is getting stale and I need to make a move before the year is up.
@XW0RKS
@XW0RKS 7 лет назад
I have calorifier in my garage... Can I use relay as a switch for it, or do I need any extra components? I'm in Europe so we use 220V, if that makes any difference I should mention it.
@pawelsurowka9549
@pawelsurowka9549 8 лет назад
Hi, I bought the same relay. I am using Raspberry Pi B+ and I can't get the relay to 'switch' because of GPIO voltage output (3.3V). I would be thinking you'd need some transistor ?
@brightideas5782
@brightideas5782 3 года назад
Awesome video love it !!!! Question im trying to connect a relay switch with Bluetooth to turn on a light by Bluetooth from a vibration sensor? So when the vibration sensor goes off it turns on the light. Thank you 😊
@63thrasher
@63thrasher 9 лет назад
Great video helped out alot
@tubeDude48
@tubeDude48 9 лет назад
Personally I like to use: from time import sleep That way, you only need to enter: sleep(20) , rather then time.sleep(20) Saves on code size.
@derekbeaumia8780
@derekbeaumia8780 6 лет назад
Hi Pete, I like the video and am wanting to do something along these lines. What I want to do is set up a relay to switch from an external power source (the grid or battery bank) to an internal one (ThermoVoltaic cell bank within the heating unit) when the internal source reaches the proper voltage for the DC motor. Do you or anyone else have any thoughts or advice?
@ellis123lee
@ellis123lee 7 лет назад
I'm currently undertaking a project in which we have to use a raspberry pi to control some pumps and also a couple of rotary/ linear actuators. Is this the sort of route we should be going down to enable us to do this, or would it be better to use transistors? (I have no experience in electronics so this is all very new to me!). Thanks for any help.
@louisstacey8060
@louisstacey8060 8 лет назад
dude love your videos so good so awesome
@anilsinghmalara865
@anilsinghmalara865 7 лет назад
helped me a lot.. Thankyou
7 лет назад
niiiice tutorial. How long those jumper cables from the relay to the GPIO can be to this to continue working fine?
@woopywoopwoop
@woopywoopwoop 6 лет назад
i am really confused between using a 5v relay or a 12 v relay please help me decide which one would be useful and why !! i will be using it for my Fan , lights and witching LED TV on/off !!
@chasetheinflatablegod
@chasetheinflatablegod 3 года назад
I have questions, I want to program an LED lightshow to music (not pixles, just regular 12 volt LEDs) how much is the output of the replays, it can’t be anymore than 12v or it will fry my custom made LED strand. I wired a bunch of 12v single LEDs together to make a strand. If this is more power than I need, where can I find a board that I can use LEDs on and program it with my raspberry pie?
@kentuhler6104
@kentuhler6104 7 лет назад
Hey thanks to his video I've got a crazy idea to build a car computer / infotainment thing for my 2011 Jeep JK. Much like the Alpine X109-WRA. So I got a Raspberry Pi 3 B I think it's the plus and this same relay board within an acrylic. Now my question is I want to run everything through a touchscreen and make auxiliary switches through the touch screen for off road lights, lockers, winch, etc. I've got a fuze box to run the 12v from my Jeep to each really through a 30A fuze and a ground bus for all the grounds. My biggest issue is the software. I really like the Blynk app but since my Pi has arrived in the mail yet I'm worried it won't work on the Pi unless connected to the internet. Any ideas that I can use for the touchscreen switches?
@EnergySeeker
@EnergySeeker 3 года назад
so i can just connect 120 volts to the common and to the 120 volts 10 amps lamp and it will light up ? do i need anything between the light and that relay ?
@elricho72
@elricho72 8 лет назад
How you connect a extra power supply to the relee ? I see a jumper in the board , what for ?
@leerman22
@leerman22 8 лет назад
Does this offer the same protection as a programmable logic controller? It would be cool to use this to start a few horsepower induction motors.
@BipinDhingra
@BipinDhingra 9 лет назад
I wish to play a video on a series of video screens with a slight delay on successive screens. Is it possible on the RPi?
@EmilePolka
@EmilePolka 9 лет назад
great, I had one running more than 6months all it has do is turn on the lights at 6pm to 6am outside. All I use is a Rpi A+, RTC module and 8channel relay module.
@ravenBXNY
@ravenBXNY 8 лет назад
This is a great video. After I copy/paste the script what is the cmds to run them? I am new to python
@turboromy
@turboromy 6 лет назад
On pc, it'll be "py -3" + filename.py It depends on specific versions, os etc, but should be similar to it.
@thomasgambardella8315
@thomasgambardella8315 8 лет назад
I have a new raspberry pi 2 and looking to do christmas lights with music controlling it . what programs do i need to install on my sd card to get this started .
@ChristianEilskov
@ChristianEilskov 6 лет назад
Do you know if the Raspberry Pi 3 Model B will have the same power issues?
@dawers6233
@dawers6233 10 лет назад
it helped me! Thankyou.
@skiwithpete
@skiwithpete 10 лет назад
Thanks! Appreciate you taking the time to let me know.
@abecoulter18
@abecoulter18 6 лет назад
How do I connect multiple together like 150 to 300 relays from one pi and trigger from a "hotkey" in a sequence
@rikunvariedvideos
@rikunvariedvideos 7 лет назад
Hi, I have a 5V 10 A 8 channel relay module. I want to use it for controlling any device which we usually control by switches. So can I can power it just by the 5V GPIO pin or do I need a DC adaptor like you used to power your 16 channel relay in the other video? By the way I have a Raspberry Pi 3, show it should work right?
@CamCroz99
@CamCroz99 8 лет назад
I am trying this for Christmas lights. I have a raspberry Pi model B+. Did you ever figure out what was happening with the ssh freezing? I haven't gotten my relay board yet so I cannot comment if it has happened or not. I am looking to get an external power source for my relay board however. Also, does it matter what pins I connect the relay board to?
@edwinmartin1924
@edwinmartin1924 8 лет назад
I followed this tutorial and used a raspberry pi B+, but my relay would not work. in the end i found that i had to use an external 5v power supply straight to the relay board vcc. and another for the pi.
@ApplySkills
@ApplySkills 7 лет назад
how do i make/find a external power supply
@mr.reeftank1456
@mr.reeftank1456 6 лет назад
Just run a single power supply 5V that can handle both... that way you only take up 1 plug from the wall...
@F0YF0YT0S
@F0YF0YT0S 6 лет назад
I am trying to do the same and apparently RSpi 3 model b cannot power the same relay used on this video. Where did you find the power adapter for the relay? did you make on yourself or can you buy it of the shelf?
@Honeybadddger
@Honeybadddger 7 лет назад
Hey, man I am really confused about how the loop works. I made exactly as yours except I want it to run a test sequence such as turning all on/ off one at time. After the test I like to have 4 out of the 8 turning on 30 sec off 30s one relay at time. The last 4 relays on for 50s and off for 80s. All 8 is running in a loop after the initial test sequence. Can you help me out on this?
@adamnawzad
@adamnawzad 9 лет назад
thank you so much please continue
@artica01zero
@artica01zero 10 лет назад
Following this video Using Relays and Relay Boards with the Raspberry Pi we should use 3.3V for Vcc (GPIO pin 1) and 5V for JD-Vcc (GPIO pin2) to hadnle relay board better. Hope you will sometime update your great video with this info. Thanks.
@skiwithpete
@skiwithpete 9 лет назад
I have tried this method with the board shown in this video - and it simply does not work. Sorry.
@artica01zero
@artica01zero 9 лет назад
Yep, I tried 3.3V with with B+ model and also it does not work. So only 5V and jumper on Vcc-JDVcc
@PyroRob69
@PyroRob69 5 лет назад
Power the relays externally. On the set I have (mine are made by Sainz but they are all the same), the JD-Vcc is 5VDC, and the Vcc is 3.3VDC. Power the relays externally and you won't draw down the power buses on the Pi. I have run banks of 8 relays this way with no issues.
@DanielChagasrs
@DanielChagasrs 7 лет назад
I bought a 8ch board, but it's "Active LOW", and the automation systems (like domoticz) recognize "Low = off" and "High = on", so, then they consider that a lamp is off, but it's actually on.. if I connect the devices to nc, they will be on when the rpie is shutdown.... Did you have the same problem? How did you fixed it? Thank you.
@JeffreyHarrington
@JeffreyHarrington 9 лет назад
Few questions: Is the click from the Relay? Can the click be silenced or is that just an effect of the relay? Could you use more relays on the pins from the outside edge of the RPi? I have a B+ with the 40 pins be used? I'm guessing I'd need to use external power. Thanks!
@VJLee-sx1ix
@VJLee-sx1ix 7 лет назад
I am having a problem with turn on and off. I need to control each relay separately but with the normal script like the video all relays work together but the led.
@sonelee8382
@sonelee8382 6 лет назад
is it okay to connect the relay board to circuit breaker ?? and in pin of the relay switch connects to the raspberry pi??
@roystervi
@roystervi 7 лет назад
Hi an am trying to do something like this. I am running Home assistant(HA) on the pi 3. I have (1) 8 channel 5v relay and I won 10 of the single channel. Question, I want to use the home assistant software to control the 18 relays. Can the pi 3 power, power all 18 relay?
@stuartjergensen1155
@stuartjergensen1155 7 лет назад
Why did you not connect a resistor in line with the gpio pin? I have heard you can cause some serious problems by not putting in a resistor when using gpio pins. Thanks!
@nobytes2
@nobytes2 5 лет назад
You're thinking about wiring an led, this relay board probably has a built-in resistor.
@brahimelboudani601
@brahimelboudani601 9 лет назад
skiwithpete thanks I will have a loot at it amazing work ! keep it up
@meatyoker
@meatyoker 6 лет назад
I’m not that savvy on computers but i have been watching your videos and are wonderful. I just would like to no what is the best raspberry pi for doing a light show or what to install a program. Can you make a video on this of how to start and end on it. Thx
@bubba1984
@bubba1984 10 лет назад
What about the whole 3.3v business when interfacing a 5v driven board? Doesn't the relay board pull up all inputs to 5v?
@skiwithpete
@skiwithpete 10 лет назад
The Optocouplers on the Relay board allows the GPIO to output at 3.3V.
@FOATE
@FOATE 4 года назад
You can remove the jumper and power the relay on jd-vcc with a seperate power supply!
@Wiggs138111
@Wiggs138111 4 года назад
Then you could do away with the VCC and the GND to the Pi , Correct ?
@BechirZalila
@BechirZalila 8 лет назад
Thanks for the tutorial. I dit it with an Rpi model B rev 2 and it did juste fine. May be the problem you described is a software bug resolved in the latest version of the OS.
@skiwithpete
@skiwithpete 8 лет назад
Cool. Thanks for letting me know.
@jamiet2130
@jamiet2130 8 лет назад
I had the problem with model B and I just started and got fresh OS
@sahilharit7736
@sahilharit7736 8 лет назад
Can I give my relay ,the 5V power through VCC through any external 5V supply without connecting it to my raspberry pi's 5V GPIO (and ground GPIO)?But only connecting the commanding GPIO between pi and Relay.
@andrespinillai
@andrespinillai 9 лет назад
Hi, I think the problem with the delay in minute 9:30 is a thing that use to happen to me when I was programming applications using C in linux. Many devices use buffers for operation. The program screen output is called stdout in C and if you don't free the buffer, it will remain stuck some times until the program ends. So the solution is to flush the bufer tight after you need to: printf("seven"); // the C instruction for printing seven on the terminal fflush(stdout); // the instruction to force to free the screen buffer I guess it must work the same way on other programming languages. Regards
@sengerandu
@sengerandu 9 лет назад
+Andres Pinilla Yes, this is the way to go. When we want a thing to occur in almost realtime, then we have to do like that. In one of my projects long ago, I had to read keypresses and avoid multiple presses; I had used fflush(). Thanks for sharing.
@smokeycloudzzz
@smokeycloudzzz 8 лет назад
s
@waseemrana4421
@waseemrana4421 6 лет назад
how i control like stepper motors of cnc machine or 3D print by using raspberry pi
Далее
Survive 100 Days In Nuclear Bunker, Win $500,000
32:21
Smart Sigma Kid #funny #sigma #memes
00:26
Просмотров 1,5 млн
Разоблачение ушные свечи
00:28
Просмотров 504 тыс.
Raspberry Pi Automation #1: Mains Relay HAT
15:03
Просмотров 272 тыс.
The new Raspberry Pi Pico W is just $6
7:56
Просмотров 434 тыс.
How many relays can I connect to one Arduino?
9:38
Просмотров 50 тыс.
Survive 100 Days In Nuclear Bunker, Win $500,000
32:21