How To Use A Relay With Raspberry Pi Pico

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 พ.ย. 2024

ความคิดเห็น • 34

  • @michaelclark6610
    @michaelclark6610 ปีที่แล้ว

    Thanks for the video! Working on a project and plan to use rbpi to control everything

  • @damianzelazny5785
    @damianzelazny5785 3 หลายเดือนก่อน +1

    fantastic explanation!

  • @NivedhithaSeenuvasan
    @NivedhithaSeenuvasan ปีที่แล้ว +7

    will the pico be able to control the 5v relay as it has only 3.3 volt signal

    • @PauloVazquez
      @PauloVazquez ปีที่แล้ว +1

      Im guessing the same!

    • @johnouellette1098
      @johnouellette1098 ปีที่แล้ว +1

      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

    • @mrbenpmuir
      @mrbenpmuir 3 หลายเดือนก่อน

      A lot of relays will be triggered by the 3.3v even that say 5v the one here they sell is. I had the same queries as you

  • @sahirismail9302
    @sahirismail9302 ปีที่แล้ว +4

    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?

  • @daghanabi
    @daghanabi 10 หลายเดือนก่อน +1

    Just *how* cool is this 7 dollar board?

  • @imanitrecruiterineurope4142
    @imanitrecruiterineurope4142 ปีที่แล้ว +1

    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  ปีที่แล้ว +1

      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/

  • @andrewwanstall2467
    @andrewwanstall2467 8 หลายเดือนก่อน

    Great tutorial, can you use this module with a shaft encoder?, say 400ppr?

    • @jyvben1520
      @jyvben1520 5 หลายเดือนก่อน

      relay is a slow device, no idea what you want todo with it, turn on 400 times a minute/second ?

  • @ziprock
    @ziprock หลายเดือนก่อน +1

    How much current does that specific relays coil pull from the gpio pin?

    • @nnnik3595
      @nnnik3595 หลายเดือนก่อน

      this

  • @mohsinjessa8951
    @mohsinjessa8951 ปีที่แล้ว

    The link for "The Full Guide:" is broken. Excellent video..subscribed to the channel.

    • @Core-Electronics
      @Core-Electronics  ปีที่แล้ว +1

      Ooh good catch, updated the link. Cheers mate!

  • @6ocram
    @6ocram 8 หลายเดือนก่อน

    New subscriber. Thanks You!

  • @alexsmith5455
    @alexsmith5455 ปีที่แล้ว +1

    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 5 หลายเดือนก่อน

      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.

  • @MuzzleMike
    @MuzzleMike 2 หลายเดือนก่อน

    I wander if I could use a pico w and use a wireless router. Could i use this idea to take place of a garage door switch ( like a door bell switch ) . To control my old garage door using my phone ? I have the components for it .

    • @Core-Electronics
      @Core-Electronics  2 หลายเดือนก่อน

      Yes, we actually released a video doing exactly that when the Pico W was released, the only concern with the project is security as anyone with access to your Wi-Fi can open your garage. Although if you manage to figure out the project it's probably not too much trouble to add some extra protection like a password on the garage control web page. th-cam.com/video/bIBQKl_Sots/w-d-xo.htmlfeature=shared

  • @zdenekpecenka3668
    @zdenekpecenka3668 ปีที่แล้ว +1

    I am wondering could you have used the VBUS 5V signal coming from USB for the relay VCC?

  • @ronsflightsimlab9512
    @ronsflightsimlab9512 ปีที่แล้ว

    Great content, thanks!

  • @seasonedtoker
    @seasonedtoker 22 วันที่ผ่านมา

    I totally understand your concern by advocating switching AC current, but you are incorrect about that. A relay can for sure be used for switching 240V AC mains while being managed by a direct current of say 12V. Almost all relay coils are driven by DC current, because to be honest, not all people have a lab power supply at their disposal to be able to activate the relay coil with low voltage AC. You need a relay with isolated coil so that aC doesn't leak back into the coil and then fry the DC line in turn. I would only advise upmost care when selecting boards from all over the internet. Always buy from reputable brands or af least do the homework and go through datasheets that are provided. Even stuff from amazon and aliexpress can handle AC but do your research!

  • @gnojedseek
    @gnojedseek ปีที่แล้ว +1

    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.

  • @Paul_______
    @Paul_______ ปีที่แล้ว

    Why the negative side of the fan?

    • @Core-Electronics
      @Core-Electronics  ปีที่แล้ว +1

      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!

  • @dillardc81
    @dillardc81 7 หลายเดือนก่อน

    I'm going to use a relay to try to do a wireless model rocket launcher with the pico.

    • @Core-Electronics
      @Core-Electronics  7 หลายเดือนก่อน

      I think this is among the coolest applications of a relay that we've seen so far!

  • @offwhitemke
    @offwhitemke ปีที่แล้ว

    The audio keeps ducking in this video which makes it impossible to watch.

    • @jyvben1520
      @jyvben1520 5 หลายเดือนก่อน

      you could turn on "closed captions" CC button, audio seems fine to me, hardware problem with your setup ?