How To Use A Relay With Raspberry Pi Pico

  Рет қаралды 23,438

Core Electronics

Core Electronics

Күн бұрын

🔗 The full guide : _core-electronics.com.au/guide...
In this guide, we'll learn what a Relay is, why we might use one, how to choose a Relay, and finally how to use one with a Raspberry Pi Pico .
Note: Not all Relays are compatible with the Raspberry Pi Pico or other 3.3V devices. The 5V Relay Module we are using is compatible with 3.3V power and logic. If you are following along with a different Relay, please check the product page/datasheet to confirm it is 3.3V compatible and that it will work with this guide.
🔧🔨🧰 Hardware featured in this guide:
5V Single Channel Relay Module:
core-electronics.com.au/catal...
Raspberry Pi Pico:
core-electronics.com.au/catal...
LED and Resistor Pack:
core-electronics.com.au/catal...
12V Blower Fan:
core-electronics.com.au/catal...
12V Plugpack:
core-electronics.com.au/catal...
Barrel Jack Adapter:
core-electronics.com.au/catal...
Relays:
core-electronics.com.au/compo...
💡❓ If you have any questions about this content or want to share a project you're working on head over to our maker forum: coreelec.io/forum
0:00 Intro
1:06 Poles and Throws Explained
2:28 Why and When to Use a Relay
3:54 How to Choose the Right Relay
4:43 Connecting a Relay to a Rasberry Pi Pico
6:39 Example 1 - Controlling an LED
7:38 Example 2 - Controlling a 12V Fan
8:44 Example 3 - Normally Open vs Normally Closed
11:22 Conclusion
🌏🦘 Core Electronics is located in the heart of Newcastle, Australia. We're powered by makers, for makers. Drop by if you are looking for:
• Raspberry Pi core-electronics.com.au/raspb...
• Arduino core-electronics.com.au/ardui...
• Sparkfun core-electronics.com.au/brand...
• Adafruit core-electronics.com.au/brand...
• Pololu core-electronics.com.au/brand...
• DFRobot core-electronics.com.au/brand...
The following trademarks are owned by Core Electronics Pty Ltd:
"Core Electronics" and the Core Electronics logo
"Makerverse" and the Makerverse logo
"PiicoDev" and the PiicoDev logo
"GlowBit" and the GlowBit logo

Пікірлер: 26
@michaelclark6610
@michaelclark6610 10 ай бұрын
Thanks for the video! Working on a project and plan to use rbpi to control everything
@ronsflightsimlab9512
@ronsflightsimlab9512 11 ай бұрын
Great content, thanks!
@marco6ocram
@marco6ocram 3 ай бұрын
New subscriber. Thanks You!
@sahirismail9302
@sahirismail9302 Жыл бұрын
Hi, i am having a weird issue, the relay is switching on as soon i declare the pin as out pin but the relay is not switching off. Can you please suggest a solution?
@wifinesesi
@wifinesesi 6 ай бұрын
Just *how* cool is this 7 dollar board?
@mohsinjessa8951
@mohsinjessa8951 8 ай бұрын
The link for "The Full Guide:" is broken. Excellent video..subscribed to the channel.
@Core-Electronics
@Core-Electronics 8 ай бұрын
Ooh good catch, updated the link. Cheers mate!
@imanitrecruiterineurope4142
@imanitrecruiterineurope4142 Жыл бұрын
hi! i'm getting no snappy sound when i run the script (coming from the relay). Furthermore, I'm not capable of burning the LED even though I connected it with no resistor to the wire coming from the Common slow of my relay. The ground is connected. Oddly enough the red light from the relay dims a little when I the signal gets sent... Am I being a dummy or is there maybe a relay power issue going on? Lovely video, thank you for posting it! :D
@Core-Electronics
@Core-Electronics Жыл бұрын
The best place for technical help is on the forums. There you can share a photo of your setup and we can debug the circuit properly: forum.core-electronics.com.au/
@zdenekpecenka3668
@zdenekpecenka3668 Жыл бұрын
I am wondering could you have used the VBUS 5V signal coming from USB for the relay VCC?
@benjaminberthelot1332
@benjaminberthelot1332 7 ай бұрын
you could
@alexsmith5455
@alexsmith5455 Жыл бұрын
I copy exactly what you done and the output from GPI 16 was not strong enough to activate the 5V relay (the red led is on but the green one remain off). I understand I should use UL2803A to elvate the output signal from 3.3V to 5V
@jyvben1520
@jyvben1520 Ай бұрын
exactly ? instructor did say take the 5 volt from the pico (not from pin 16) to power the relay, pin 16 signals the relay to move the contact.
@user-xy7rg3jd7t
@user-xy7rg3jd7t Жыл бұрын
will the pico be able to control the 5v relay as it has only 3.3 volt signal
@PauloVazquez
@PauloVazquez Жыл бұрын
Im guessing the same!
@johnouellette1098
@johnouellette1098 9 ай бұрын
I was able to drive a 5V relay on the pico's GPIO with a VERY similar looking relay (don't have the d.sheet) BUT it crashed the serial communications to the pico
@andrewwanstall2467
@andrewwanstall2467 4 ай бұрын
Great tutorial, can you use this module with a shaft encoder?, say 400ppr?
@jyvben1520
@jyvben1520 Ай бұрын
relay is a slow device, no idea what you want todo with it, turn on 400 times a minute/second ?
@gnojedseek
@gnojedseek Жыл бұрын
FYI: I couldn't do it with the 5-volt output of my pico W. However, it worked fine with the 3-volt output. I suspect it depends on the type of relay.
@dillardc81
@dillardc81 2 ай бұрын
I'm going to use a relay to try to do a wireless model rocket launcher with the pico.
@Core-Electronics
@Core-Electronics 2 ай бұрын
I think this is among the coolest applications of a relay that we've seen so far!
@Paul_______
@Paul_______ 11 ай бұрын
Why the negative side of the fan?
@Core-Electronics
@Core-Electronics 11 ай бұрын
it's common to switch a load on the low side because this is often how it's done with transistors (NPN, or N-Channel MOSFETS). In this case it doesn't really matter though!
@offwhitemke
@offwhitemke 7 ай бұрын
The audio keeps ducking in this video which makes it impossible to watch.
@jyvben1520
@jyvben1520 Ай бұрын
you could turn on "closed captions" CC button, audio seems fine to me, hardware problem with your setup ?
How To Use A Servo With Raspberry Pi Pico
11:49
Core Electronics
Рет қаралды 18 М.
Connecting a Relay Module to a Microcontroller
11:41
Brad Henson
Рет қаралды 217 М.
MEGA BOXES ARE BACK!!!
08:53
Brawl Stars
Рет қаралды 35 МЛН
DIY Smart Switch - Part 1 how to use a relay
8:02
byte sized engineering
Рет қаралды 638 М.
How To Control A Solenoid With A Raspberry Pi Using a Relay
6:15
Core Electronics
Рет қаралды 85 М.
Raspberry Pi Pico - Control the (I/O) World
1:03:16
DroneBot Workshop
Рет қаралды 603 М.
Raspberry Pi Relay   Wiring + Code
12:27
Tech Notebook
Рет қаралды 43 М.
How To Control Relays With A PICO
42:26
Making Stuff with Chris DeHut
Рет қаралды 2,2 М.
The Petabyte Pi Project
22:27
Jeff Geerling
Рет қаралды 2,2 МЛН
How to make 5V relay work on raspberry pi (hack)
4:50
Gyro
Рет қаралды 66 М.
RASPBERRY PI - All  About controlling Relay Boards for Home Automation
15:05
Turning a Raspberry Pi Pico into a GPU!
16:42
element14 presents
Рет қаралды 103 М.