How To Control Relays With A PICO
Вставка
- Опубліковано 14 жов 2024
- Relays can be very complex devices and if not handled correctly, a lot of problems and danger can be found! Chris covers a lot of the basics about controlling relays with Micropython and the Raspberry PI PICO microcontroller. Stand alone relays and relay modules are covered.
SEE ASSOCIATED VIDEOS:
PICO SETUP AND PREPARATION FOR USE
• Raspberry Pi PICO Setu...
PICO MACHINE LIBRARY PIN CLASS
• PICO Machine Library P...
VISIT OUR COMPANION WEBSITE
makingstuffwit...
DOWNLOAD FILES HERE
makingstuffwit...
I had no idea of the complexity. This was excellent information and quite fascinating.
Hi John,
Unfortunately, yes, controlling relays is complex and in my humble opinion it really shouldn't be. I think a lot of the complexity with modules is that they provide ZERO documentation to understand their circuitry making it very difficult.
I am glad you found the information fascinating and useful.
Cheers!
Chris
Lots of practical, useful info - and explained clearly. Thanks!
Hi Quaternion,
Glad you liked it and found it useful!
Cheers
Chris
Once again, a very well explained lesson. Thank you.
Greetings Oraflores,
Thanks for the kind words.
Cheers!
Chris
thank you. you mentioned a diagram of the relay wiring with an external power supply, where can i find it? thank you.
HI alanswackhamer4645
In the description of the video there is a link to the files for the videos.
Cheers!
Chris
I built a "smart mains outlet" with a electomechanical relay. When I built it, I used an RPI Zero with an IR device to activate the relay. I use the system to turn on my computer screens and desk lights when it detects my presence. When the Pico became available, I replaced the Zero with a Pico. Until recently, It has worked very well. Now the relay is stuck ON. The relay is a HiLetgo 5V One Channel Relay Module Relay Switch with OPTO Isolation High Low Level Trigger that I bought at Amazon. I bought a couple of optical relays, but I haven't replace the failed relay. I can see the LED on the relay toggle as the unit is turned on and off.
Hi William,
By chance have you checked the input signal voltage at at the module? It could be that the PICO's output pin may not be providing either enough voltage or current. I have had that happen on both PIs and PICOs. With the PICO, I have just switched to a different pin and all was good again.
Cheers!
Chris
@@MakingStuffwithChrisDeHut The relay stays closed even if I remove power from the Pico. I assume the relay contacts are welded closed since the connection is normally open.
I'm a bit confused, I was planning on buying a relay module rated for 3.3VDC, but how to power the coil externally?
Rightfully so! There are so many different combinations of "relay modules" out there that it is very difficult to determine if one will work over the other just by their description. Especially all the cheap varieties found on Aliexpress and Amazon.
At issue is two things: Voltage and Current draw. While the voltage may be 3.3 volts, it may require .25 amps (250 mAmps) which the PICO cannot supply.
Some modules provide a connection for the external power source. From the PICO you are only supplying the Logic signal (ON or OFF), which then controls a "power switch" for the external power to control the coil.
My suggestion is to buy from a reputable supplier (Sparkfun, Adafruit, Digikey, Mouser, etc.) and review their documentation.
Cheers!
Chris
Awesome 🤘🏽😊
Thank you! Cheers!
Chris
You know how you can make your channel more popular?.. blow stuff up
Good morning Jason,
I like your idea, Mythbusters did a great job doing that for many years. Perhaps you have some specific suggestions?
Cheers!
Chris
Start with a guitar
@@jasonkasper505 Hmmm, interesting. I know you are a musician who plays guitars. Why would you want to destroy such and instrument? In order to fit within this channel and topic, how might you suggest I do that with a Raspberry Pi PICO?
Cheers!
Chris (BTW, you better be enjoying your vacation!!!!)