Raspberry Pi Relay Wiring + Code
Вставка
- Опубліковано 20 лип 2024
- This video shows how to wire and write python code so that a raspberry pi can turn on a relay
Music:
Ray Le Fanue - Heaven [NCN Release]
Exiro - Miracles [NCN Release]
Different Heaven - Nekozilla [NCS Release]
Distrion & Electro-Light - Rubik [NCS Release]
Github:
github.com/TechNotebookYT/Ras...
Thanks For Watching!
Please Like this video and Subscribe to Tech Notebook - Наука та технологія
Finally my favorite UA-camr with 54 subscribers uploaded! Great job
Thanks
Nice video. You are clear and don't run on with distracting verbiage like so many out there. I couldn't watch it straight through though. The background noise was grating to me. Probably a sign of my age. Thanks for your work!
Thank you for this, really detailed! Keep it up homie!!!
Such a great video. I think the music is not a problem at all... your voice is loud enough and clear ! :) do you have any link to the relays that you used or something similar? keep up the great content! Also I am curious if the cables need to be purchased separately. Do you know that? :) thank you for the video and for inspiring :)
Great video, very helpful. Thanks for posting.
I subbed! Nice work!
Thank you! So clear and understandable.
Thanks a lot, that was a great tutorial. Keep going :)
What is the name of the extension that lets you view pi commands while you are typing?
Thanks. Really helpful video😊
Hey, nice video for me as a beginner trying to understand how to use a relay with Python on a RasPi. Thank you. You might want to drop the music, though. A bit distracting.
Does anyone know who makes that relay module? I just want life simple and copy his example. AWESOME VIDEO!!!!
Great work, thanks, ⭐️⭐️⭐️⭐️⭐️. 🤓🤓🤓
How do you handle the power on status of the GPIO pins so they don't inadvertently trigger the relays? Thanks
A little late I know, but for future reference: "gpio.setup(21, gpio.OUT, initial=gpio.HIGH)", where "initial=gpio.HIGH" sets the initial state of the gpio (in the case where the relay´s wired). And don´t be confused by the "HIGH" because relays works in a "inverted logic", so this means his initial state´ll be off.
Hi, please can you help me understand....if you set 1 second for each function, why is there an overlay where both relays are on at the same time....surely one turns in, then off, then other turns on then off.....unless the pi reads and activates the eecond relay before the 1 second on the first relay finishes?
The sequence I used was High, High, Low Low. So, it turns on relay 1, then it turns on relay 2, and then it turns off relay 1, and it turns off relay 2 after that. Therefore, there will be a point where both relay 1 and relay 2 will be on at the same time. I hope that made sense...
@@TechNotebook Hi, thanks so much, completely makes sense, you're a star.
You're welcome! Glad I could help
Thank you for your valubale information
And how interface with web?
Plz make a video on DHT11 sensor interfacing with Respberry pi to calculate Temperature and humidity....
Also it's simulation on Proteus plz... Need your help
music is alittle too loud
Yes I have brought it down in my newer videos
Nice tutorial.
Thx
Also, can you stop the process by pressing control and c?
Yes
You are good.
We need your voice not the loud music. Anyway, very good video. Thanks for the details.
What relay did you use? PS: great video helped me verry much
I am also interested to know. Very helpful video btw.
you can use any arduino/pi compatible relay.
How do you switch 1st relay on for say 5 seconds, but switch the second relay on 2 seconds after the first relay has activated....sorry for all the questions, trying to understand the logic!,,
No problem... The first delay would be 'time.sleep(5)' and the second delay would be 'time.sleep(2)'
Great video! Wouldn't hurt if the music were a little quieter or not there at all
thnx
this video literally save my life, you are a pro, thanks for share this!!!!!!
what program u used to write the python code?
visual studio code
Yes
hello, I can't speak English. I'm using google translate. I'd like to ask. I get the message "RPi.GPIO as GPIO no module" what is the solution? I have installed but it didn't work. Please help me 🙏🙏🙏
The Music?
i got warning "this channel is already in use". do you know what's that mean?
That likely means that some of the pins are still active from a previous program. To mitigate this, you will need to add the line GPIO( or whatever your rpi.GPIO instance is called).cleanup()
^^ GPIO.cleanup()
Why is there a mechanical noise? For every second. What is that mechanical click sound?
what pip should i use?
Python 3
@@TechNotebook no i mean pip install libary because i had a problem but i found my mistake
What is the voltage of the reel ?
5v
In your future videos , please stop the background music while you are talking. It is difficult to understand you with that background music.
Yeah I have done so in my new videos
@@TechNotebook Thank you :-)
lose the music
Thanks for the video. But the music is terrible annoying.
Music is redundant and too loud.
please turn that music down
I have done that in my newer vids
Desesperantemente lento
He sounds like 14 or older
Guess I just have shitty relays because none of this is working lmao.
Make sure your jumper cables work. I had a batch of faulty jumper cables once and I thought my relay was broken.
kill the music