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

  Рет қаралды 901,921

skiwithpete

skiwithpete

10 жыл бұрын

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

Пікірлер: 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.👍🏽
@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.
@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.
@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
@girardaquino
@girardaquino 9 жыл бұрын
Thanks so much man! I had a slightly different setup but your video provide a good starting point.
@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!
@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.
@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.
@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
@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:)
@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!!!
@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
@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.
@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
@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.
@dannye6912
@dannye6912 3 жыл бұрын
What a wonderful human u are. Respekt Bro
@woodywood6961
@woodywood6961 3 жыл бұрын
You sound like Christian Slater. I found this comforting and reassuring. Great video
@Cmdrlucky8
@Cmdrlucky8 8 жыл бұрын
Great posting, I love your pull to generate community from this video.
@skiwithpete
@skiwithpete 8 жыл бұрын
thanks for posting. it works
@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.
@TheHarryspidy
@TheHarryspidy 8 жыл бұрын
Got it... Working fine with your code... Thanks!!!
@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.
@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.
@Mr.P539
@Mr.P539 4 жыл бұрын
Watching now love it.
@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.
@j.r.3664
@j.r.3664 4 жыл бұрын
Very useful and interesting video, congratulations!
@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: kzfaq.info/get/bejne/hbepodeCscfefYk.html
@berkcan3475
@berkcan3475 8 жыл бұрын
its really helping and lerning centered video thank you
@starbug1630
@starbug1630 8 жыл бұрын
nice presentation... keep on!
@ImranSaeed
@ImranSaeed 10 жыл бұрын
Great effort skiwithpete
@skiwithpete
@skiwithpete 10 жыл бұрын
thanks Imran Saeed appreciate your patience.
@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. :(
@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.
@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
@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.
@nalinfernando8184
@nalinfernando8184 2 жыл бұрын
Thank you, this made my day! Also I have modified your code I will put it up...
@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?
@adamnawzad
@adamnawzad 9 жыл бұрын
thank you so much please continue
@63thrasher
@63thrasher 9 жыл бұрын
Great video helped out alot
@anilsinghmalara865
@anilsinghmalara865 7 жыл бұрын
helped me a lot.. Thankyou
@dawers6233
@dawers6233 9 жыл бұрын
it helped me! Thankyou.
@skiwithpete
@skiwithpete 9 жыл бұрын
Thanks! Appreciate you taking the time to let me know.
@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 😊
@HandFedMole
@HandFedMole 9 жыл бұрын
Pretty amazed you got this working... Those pins only output a few ma and at 3.3v...
@skiwithpete
@skiwithpete 9 жыл бұрын
jasonroxorz that's why you need to choose the Optocoupler Relays as 3.3V and just a few ma is all that is required to trip the switch.
@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?
@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.
@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!
@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
@louisstacey8060
@louisstacey8060 8 жыл бұрын
dude love your videos so good so awesome
@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!
@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 ?
@raphalopes495
@raphalopes495 8 жыл бұрын
Nice video friend, thank you so much for this help =)
@artica01zero
@artica01zero 9 жыл бұрын
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
@dpm608
@dpm608 9 жыл бұрын
Awesome video walk-through, thank you! I didn't realize relay boards were this affordable. Q1) If I want to use the B+, can I connect all the GPIO and then provide power externally using the 5v/GND pins and a power supply? Q2) If the first answer is yes, can I use a voltage divider to drop my 24v supply down to 5v? In other words, will the required current be too high for small resistors (
@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
@LiezerZero
@LiezerZero 9 жыл бұрын
I have a 16 relay module that uses 12v 320ma, while powering the relay module I also have the relay module powering my raspberry pi 2. Its nice.. No noticeable lack of power to the pi since there is no dimming or shutting off of the red power led as an indicator.
@TomasNovak_oriven
@TomasNovak_oriven 8 жыл бұрын
+Valueless Dollar do you use Raspberry 2 PI model B ?
@williamshamblin7465
@williamshamblin7465 6 жыл бұрын
Thank you!
@bendik6202
@bendik6202 9 жыл бұрын
i've tried this with my Raspberry Pi Model B, and i have had no problems with it what so ever when testing it over wifi. proof; 8channel relay switch test
@skiwithpete
@skiwithpete 9 жыл бұрын
***** Nicely done! And thanks for sharing it here.
@magnusg-blog3674
@magnusg-blog3674 10 жыл бұрын
Very nice tutorial (Y)
@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?
@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
@bluemember
@bluemember 7 жыл бұрын
very good video
@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?
@PhG1961
@PhG1961 8 жыл бұрын
Great stuff man !! I really appreciate what you're doing. Continue the good work, Greetz,
@ehlai1676
@ehlai1676 10 жыл бұрын
Try all the codes on model B and they work fine. I ran them using Python 3 so for print statement, I would to add parentheses like so print("xxxx"); semicolon should be removed from the codes as well. Your codes are for python 2. Don't see the strange thing you encouraged. By the way, there's no click sound on the relay...which is great. Thank you.
@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+.
@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.
@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
@BillBodkin
@BillBodkin 10 жыл бұрын
THX YAY!! :D IT WORKS!!
@DaveDugganITPro
@DaveDugganITPro 9 жыл бұрын
good job , very interesting and informative - suggest: you could use built in quicktime to record your laptop screen for an improved experience - also: how can we know / monitor the power draw issue more definitively (measure) ? A vs B vs B+ ?
@skiwithpete
@skiwithpete 9 жыл бұрын
Yes, you're right. I should get something to measure the power draw... I'll look into that.
@oachkatzlschwoaf01
@oachkatzlschwoaf01 7 жыл бұрын
Cool mate thanks a lot!!
@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?
10 жыл бұрын
very nice thank you!!!
7 жыл бұрын
niiiice tutorial. How long those jumper cables from the relay to the GPIO can be to this to continue working fine?
@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?
@jonatasheringer
@jonatasheringer 9 жыл бұрын
About the bug on RP B when it hangs on the 6th switch, i i don't think its a power problem, its more like a architecture problem of the board. I'm using the RP B+ and this same problem happened to me . using the GPIO 10 and 9 together would cause the problem so i switched them to GPIO 13 and 26 and now i can open all the RELAYS
@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
@originalanthraxtony
@originalanthraxtony 5 жыл бұрын
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.
@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 ?
@iechlong
@iechlong 7 жыл бұрын
nice work
@skiwithpete
@skiwithpete 7 жыл бұрын
Thanks!
@EmmanuelOchoa8a
@EmmanuelOchoa8a 10 жыл бұрын
Good video! Where are you get the 8 channel relay? or did you make it?
@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.
@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
@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?
@ApplySkills
@ApplySkills 6 жыл бұрын
my lights work but i dont hear the clicking sounds. Im using the model b+ is it a power issue
@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.
@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 !!
@vincentxie7571
@vincentxie7571 9 жыл бұрын
Hello, thanks for the great video. I bought a pi today and wanted to do what you are doing, but i have no idea how to set up my pi with a mac, like you did in the video (being able to run raspbian/control gpio pins from a mac). Im pretty sure i have all of the materials i need: SD card with raspbian, wifi dongle, ethernet cable, and of course the pi and a mac. I know its probably gonna be too long to explain over this, but do you know any articles that can show me how to set up a pi and use it like you did in this video? thanks so much
@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)?
@AnimosityGamers
@AnimosityGamers 8 жыл бұрын
Great video I'm trying to get my kettle to turn on via my phone from my bed in the morning while i get dressed. Also I am a electrician so I don't mind messing with mains (hopefully won't burn out my board though) but I will say i'd cost more than a few dollars to check your work safety wise lol. Although yea, don't be stupid folks. keep out of your 120v/240v mains.
@skiwithpete
@skiwithpete 8 жыл бұрын
+AnimosityGamers sounds like a cool project, and defo good advice. Let us know how you go.
@zulfqarali8603
@zulfqarali8603 7 жыл бұрын
Nice demo, why not use external power with model b, or newer models with relay card
@w.rustylane5650
@w.rustylane5650 7 жыл бұрын
On powering the relay board with a separate 5v supply, how much amperage does the relay board draw? Thanks.
@tubeDude48
@tubeDude48 Жыл бұрын
Weird delay is from the Wi-Fi which was common back then. It wasn't fixed until *Pi 3 B* - Watched Dec. 2022
@tyeron9192
@tyeron9192 8 жыл бұрын
I really enjoy your videos. I plan on getting a raspberry pi. I want to build a sound activated light and pump fountain. any ideas or helpful thoughts
@Eatmykebab
@Eatmykebab 7 жыл бұрын
tye ron jasper
@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 .
Easy Raspberry Pi Garage Door Remote over Wifi (home automation)
2:13
Became invisible for one day!  #funny #wednesday #memes
00:25
Watch Me
Рет қаралды 58 МЛН
Happy 4th of July 😂
00:12
Pink Shirt Girl
Рет қаралды 61 МЛН
Can You Draw A PERFECTLY Dotted Line?
00:55
Stokes Twins
Рет қаралды 114 МЛН
That's how money comes into our family
00:14
Mamasoboliha
Рет қаралды 11 МЛН
Raspberry Pi Automation #1: Mains Relay HAT
15:03
ExplainingComputers
Рет қаралды 271 М.
RASPBERRY PI - All  About controlling Relay Boards for Home Automation
15:05
Top Fifteen Mistakes People Make When Designing Prototype PCBs
12:26
Cosplay Light and Sound
Рет қаралды 136 М.
Control ANY COMPUTER with these Pi KVMs!
17:46
Jeff Geerling
Рет қаралды 802 М.
Relais anschließen und ansteuern mit einem Arduino
13:08
Bastelbruder
Рет қаралды 46 М.
The ULTIMATE Raspberry Pi 5 NAS
32:14
Jeff Geerling
Рет қаралды 1,7 МЛН
Became invisible for one day!  #funny #wednesday #memes
00:25
Watch Me
Рет қаралды 58 МЛН