Raspberry Pi Relay Wiring + Code

  Рет қаралды 43,650

Tech Notebook

Tech Notebook

Күн бұрын

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

Пікірлер: 66
@HobokenHam
@HobokenHam 2 ай бұрын
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!
@ahadbarkat5283
@ahadbarkat5283 4 жыл бұрын
Finally my favorite KZfaqr with 54 subscribers uploaded! Great job
@TechNotebook
@TechNotebook 4 жыл бұрын
Thanks
@priyalnaidoo78
@priyalnaidoo78 2 жыл бұрын
Thank you for this, really detailed! Keep it up homie!!!
@bucovschimihai7949
@bucovschimihai7949 Жыл бұрын
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 :)
@ronk1739
@ronk1739 2 жыл бұрын
Great video, very helpful. Thanks for posting.
@utdallaz
@utdallaz 5 ай бұрын
Thank you! So clear and understandable.
@sameeroafbazivich2832
@sameeroafbazivich2832 Жыл бұрын
Thanks a lot, that was a great tutorial. Keep going :)
@brankend
@brankend 2 жыл бұрын
Thanks. Really helpful video😊
@user-ey9qk7bz1e
@user-ey9qk7bz1e 3 жыл бұрын
I subbed! Nice work!
@ronk1739
@ronk1739 2 жыл бұрын
What is the name of the extension that lets you view pi commands while you are typing?
@rickhoro
@rickhoro 5 ай бұрын
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.
@stevenbeebe35
@stevenbeebe35 Жыл бұрын
Does anyone know who makes that relay module? I just want life simple and copy his example. AWESOME VIDEO!!!!
@rogerrodgersen7702
@rogerrodgersen7702 3 жыл бұрын
Great work, thanks, ⭐️⭐️⭐️⭐️⭐️. 🤓🤓🤓
@raptor2915
@raptor2915 3 жыл бұрын
music is alittle too loud
@TechNotebook
@TechNotebook 3 жыл бұрын
Yes I have brought it down in my newer videos
@Mr-ws9ky
@Mr-ws9ky 3 жыл бұрын
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
@ripper9111
@ripper9111 3 жыл бұрын
How do you handle the power on status of the GPIO pins so they don't inadvertently trigger the relays? Thanks
@wandersonbarcelos5519
@wandersonbarcelos5519 3 жыл бұрын
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.
@thistemba
@thistemba 2 жыл бұрын
Great video! Wouldn't hurt if the music were a little quieter or not there at all
@lukebrown6913
@lukebrown6913 3 жыл бұрын
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?
@TechNotebook
@TechNotebook 3 жыл бұрын
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...
@lukebrown6913
@lukebrown6913 3 жыл бұрын
@@TechNotebook Hi, thanks so much, completely makes sense, you're a star.
@TechNotebook
@TechNotebook 3 жыл бұрын
You're welcome! Glad I could help
@Jake-xi7jc
@Jake-xi7jc 3 жыл бұрын
Nice tutorial.
@TechNotebook
@TechNotebook 3 жыл бұрын
Thx
@aslammeethal3876
@aslammeethal3876 2 жыл бұрын
Thank you for your valubale information And how interface with web?
@7mamwait
@7mamwait 10 ай бұрын
thnx
@jonatandominguez3042
@jonatandominguez3042 2 жыл бұрын
this video literally save my life, you are a pro, thanks for share this!!!!!!
@hjhjhjh676767
@hjhjhjh676767 10 ай бұрын
We need your voice not the loud music. Anyway, very good video. Thanks for the details.
@dineshvyas
@dineshvyas 2 жыл бұрын
You are good.
@grune_gurke4770
@grune_gurke4770 2 жыл бұрын
What relay did you use? PS: great video helped me verry much
@stevekyhon
@stevekyhon 2 жыл бұрын
I am also interested to know. Very helpful video btw.
@TechNotebook
@TechNotebook 2 жыл бұрын
you can use any arduino/pi compatible relay.
@lukebrown6913
@lukebrown6913 3 жыл бұрын
Also, can you stop the process by pressing control and c?
@TechNotebook
@TechNotebook 3 жыл бұрын
Yes
@lukebrown6913
@lukebrown6913 3 жыл бұрын
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!,,
@TechNotebook
@TechNotebook 3 жыл бұрын
No problem... The first delay would be 'time.sleep(5)' and the second delay would be 'time.sleep(2)'
@jhulindawati7489
@jhulindawati7489 Жыл бұрын
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 🙏🙏🙏
@ahmedabdallahfouad8682
@ahmedabdallahfouad8682 3 жыл бұрын
what program u used to write the python code?
@ahmedabdallahfouad8682
@ahmedabdallahfouad8682 3 жыл бұрын
visual studio code
@TechNotebook
@TechNotebook 3 жыл бұрын
Yes
@hansolavrkkennordland9534
@hansolavrkkennordland9534 Жыл бұрын
The Music?
@teksolucians6989
@teksolucians6989 Жыл бұрын
Why is there a mechanical noise? For every second. What is that mechanical click sound?
@jehianezra4452
@jehianezra4452 3 жыл бұрын
i got warning "this channel is already in use". do you know what's that mean?
@TechNotebook
@TechNotebook 3 жыл бұрын
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()
@TechNotebook
@TechNotebook 3 жыл бұрын
^^ GPIO.cleanup()
@lassmicharztichbindurch5319
@lassmicharztichbindurch5319 3 жыл бұрын
what pip should i use?
@TechNotebook
@TechNotebook 3 жыл бұрын
Python 3
@lassmicharztichbindurch5319
@lassmicharztichbindurch5319 3 жыл бұрын
@@TechNotebook no i mean pip install libary because i had a problem but i found my mistake
@fordsrmaster
@fordsrmaster 2 жыл бұрын
In your future videos , please stop the background music while you are talking. It is difficult to understand you with that background music.
@TechNotebook
@TechNotebook 2 жыл бұрын
Yeah I have done so in my new videos
@fordsrmaster
@fordsrmaster 2 жыл бұрын
@@TechNotebook Thank you :-)
@ghostcraft2019
@ghostcraft2019 2 жыл бұрын
What is the voltage of the reel ?
@TechNotebook
@TechNotebook 2 жыл бұрын
5v
@cinquecento1985
@cinquecento1985 Жыл бұрын
Thanks for the video. But the music is terrible annoying.
@BRadosavljevich
@BRadosavljevich 3 жыл бұрын
please turn that music down
@TechNotebook
@TechNotebook 3 жыл бұрын
I have done that in my newer vids
@NamasenITN
@NamasenITN 2 жыл бұрын
Music is redundant and too loud.
@wingit7602
@wingit7602 2 жыл бұрын
lose the music
@jace_Henderson
@jace_Henderson 2 жыл бұрын
Guess I just have shitty relays because none of this is working lmao.
@TechNotebook
@TechNotebook 2 жыл бұрын
Make sure your jumper cables work. I had a batch of faulty jumper cables once and I thought my relay was broken.
@sergioblanco6635
@sergioblanco6635 3 жыл бұрын
Desesperantemente lento
@lolgamerslol5248
@lolgamerslol5248 3 жыл бұрын
He sounds like 14 or older
@rackemyt9999
@rackemyt9999 2 жыл бұрын
kill the music
RASPBERRY PI - All  About controlling Relay Boards for Home Automation
15:05
Connecting a Relay Module to a Microcontroller
11:41
Brad Henson
Рет қаралды 217 М.
I wish I could change THIS fast! 🤣
00:33
America's Got Talent
Рет қаралды 109 МЛН
1❤️
00:17
Nonomen ノノメン
Рет қаралды 13 МЛН
Raspberry Pi Automation #1: Mains Relay HAT
15:03
ExplainingComputers
Рет қаралды 271 М.
How To Control Relays With A PICO
42:26
Making Stuff with Chris DeHut
Рет қаралды 2,2 М.
Control you Raspberry Pi with a BUTTON
12:03
Sam Westby Tech
Рет қаралды 16 М.
Using Relays and Relay Boards with the Raspberry Pi
10:35
Gaven MacDonald
Рет қаралды 279 М.
How to Control a 12V Motor with Arduino: Easy Wiring & Code Examples
44:13
Raspberry Pi Pico Tutorial - 5V Relay Module
6:32
NerdCave
Рет қаралды 25 М.
iPhone 16 с инновационным аккумулятором
0:45
ÉЖИ АКСЁНОВ
Рет қаралды 6 МЛН
Урна с айфонами!
0:30
По ту сторону Гугла
Рет қаралды 8 МЛН
1$ vs 500$ ВИРТУАЛЬНАЯ РЕАЛЬНОСТЬ !
23:20
GoldenBurst
Рет қаралды 1,5 МЛН
Самый дорогой кабель Apple
0:37
Romancev768
Рет қаралды 201 М.