How to Control Multiple Relays With a PICO
Vložit
- čas přidán 23. 07. 2024
- Driving multiple relays from a PICO may not work or only work unreliably. In this video, Chris shows you how to incorporate an additional chip into the circuit that adds a lot of protection for the PICO and increases its ability to drive more outputs. Take a look at this video how the ULN2803 chip is a great addition to many projects.
SEE ASSOCIATED VIDEOS:
PICO SETUP AND PREPARATION FOR USE
• Raspberry Pi PICO Setu...
PICO MACHINE LIBRARY PIN CLASS
• PICO Machine Library P...
HOW TO CONTROL A RELAY
• How To Control Relays ...
PROTECT YOUR PICO WITH THIS CHIP
• Protect your PICO by u...
VISIT OUR COMPANION WEBSITE
makingstuffwithchrisdehut.com
DOWNLOAD FILES HERE
makingstuffwithchrisdehut.com... - Věda a technologie
Very useful as always
H Nigel,
Thank you for the kind words! Very much appreciated.
Cheers
Chris
Would it be possible to show this circuit again but modified to use a 3 to 8 line decoder to reduce the number of GPIO's needed.
Hi Steve, Unfortunately I don't have much time to do customs like that. Perhaps in the future I will have time.
Sorry,
Chris
@@MakingStuffwithChrisDeHut No worries, I just thought it might be an interesting extension to driving multiple relays sometime in the future.
Thanks for all the great content!
range(1,7) means 1 to 6, as there were only 6 pins/lines/relays/leds, could have started with empty list e.g.
mylist = [] or mylist = list() and then appended ..., then the range would be (0,6), but both work so personal choice.
another way would be
mylist = [
machine.Pin(13, machine.Pin.OUT), # 0
machine.Pin(14, machine.Pin.OUT), # 1
machine.Pin(15, machine.Pin.OUT), # 2
] is allowed over many lines, would not need append. (and python allows comma on last line)
and comment(s) is/are allowed.
Hi Ben,
Thank you very much for adding clarity to that.
Much appreciated.
Cheers!
Chris