How to Interface Relay With Raspberry pi

Поділитися
Вставка
  • Опубліковано 24 лис 2024

КОМЕНТАРІ • 34

  • @unitedrobotics7377
    @unitedrobotics7377 4 роки тому +3

    Awesome sir

  • @SachinWable
    @SachinWable 4 місяці тому

    I have tried this but it doesn’t for me. I have 5v relay module as soon as I connect vcc to 5v pin, ground to ground pin and in to pin 18 which is set to out both relay lights glow. Even if I change pin status of 18 to dh or dl it doesn’t control relay at all. It always glows both the lights. But if I remove and connect pin 18 then it turns on and off the relay state. I have no idea why pin 18 high and low not controlling the relay. Any idea on this? I am able to control led through same pin 18 by setting it high or low but bit relay. Thank you.

  • @Shyshwak
    @Shyshwak 3 роки тому +1

    nice video

  • @arliejane
    @arliejane 3 роки тому +1

    Hi! This is a great tutorial, I followed all your steps but sadly my relay is not switching. Do you know why ? It just lights on and off but it is not switching.

    • @Kitflix
      @Kitflix  3 роки тому

      Hi
      Please whatsapp ur issue with pic / video on +919404865609, I'll be glad to assist

  • @liron28
    @liron28 3 роки тому +1

    hi ty for the vid. the relay act as a switch and a volt divider between the power supply and the R-pi?
    because of the 3.3 volt limit in the R-pi
    ty.

    • @Kitflix
      @Kitflix  3 роки тому +1

      yes, relay is a switch, which turns on using the transistor which operates on 3.3v output of raspberry pi

  • @balajipurushothaman4999
    @balajipurushothaman4999 4 роки тому +4

    sir which software are you using for this schematic

    • @Kitflix
      @Kitflix  4 роки тому +1

      Hi, the videos are created using Fritzing

    • @genos2719
      @genos2719 3 роки тому +1

      @@Kitflix nice thanks!

  • @razidaufaa9626
    @razidaufaa9626 11 місяців тому

    Excusme sir, why importError : No module named RPi.GPIO. even though I already installed the library. Thanks SIr

  • @shshakibhasan3338
    @shshakibhasan3338 2 місяці тому

    Can i get your ppt file

  • @EnergySeeker
    @EnergySeeker 3 роки тому +1

    is it possible to switch on and off a mosfet IRF840PBF ?

    • @Kitflix
      @Kitflix  3 роки тому +1

      Yes, an N Channel MOSFET can do that. But only for DC Loads and not for AC Loads

    • @EnergySeeker
      @EnergySeeker 3 роки тому

      @@Kitflix i tried it with 470 volts AC and it works

  • @relsonriverapro_ggram3d535
    @relsonriverapro_ggram3d535 2 роки тому +1

    muy buen contenido, pero tengo una duda, mas bien es un problema, al momento de ejecutar cualquier codigo de rele en python on raspberry, me sucede que se activa el rele(osea en automatico), pero ya no se puede desactivar, además ya intente de distintas maneras, y nada, espero que me pueda ayudar con eso. por cierto se ha ganado un suscriptor :D

    • @Kitflix
      @Kitflix  Рік тому

      Thank you, am sorry for so late a reply. If you can give me your relay problem in detail (connection screenshot, code) I'll be able to help in detail

    • @charlesbautista2693
      @charlesbautista2693 Рік тому

      @@Kitflix Tengo el mismo inconveniente

  • @nishanttathagat
    @nishanttathagat Рік тому

    guys make sure your vcc must connect to 3 volt not to 5 volt otherwise it will not blink

    • @Kitflix
      @Kitflix  Рік тому +1

      Dont forget to connect resistor to LED

  • @santhoshkumarboya8693
    @santhoshkumarboya8693 2 роки тому

    Hi can you tell me how to connect 12v relay to the raspberry pi

    • @santhoshkumarboya8693
      @santhoshkumarboya8693 2 роки тому

      I tried connecting to 3v3 pin but the switch didn't turned on.

    • @Kitflix
      @Kitflix  Рік тому

      You'll have to use a ULN2803 driver for connecting 12v relay. Raspberry pi output goes to input pin of ULN and the output pin of ULN acts as sink driver for relay coil.

  • @Dalrae
    @Dalrae 3 роки тому

    what relay is this? can you send an amazon link

    • @Kitflix
      @Kitflix  3 роки тому

      This is a single channel relay module. Based on where you are just search on amazon for "single channel relay module" and you'll most probably get it :)

    • @Dalrae
      @Dalrae 3 роки тому

      @@Kitflix I already found a relay that works. Thanks though

  • @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 🙏🙏🙏

    • @Kitflix
      @Kitflix  Рік тому

      please send email of circuit photo and error screenshot on support@kitflix.com

  • @toopo111
    @toopo111 2 роки тому

    Thank you!

    • @Kitflix
      @Kitflix  2 роки тому +1

      You're welcome!

  • @whiterabbit1632
    @whiterabbit1632 3 роки тому +1

    Hi! My relay works fine but the light stays on constantly. HELP!!!!

    • @Kitflix
      @Kitflix  3 роки тому +1

      amit at kitflix dot com
      please elaborate your problem and send me a mail :)

    • @RRB47tv
      @RRB47tv 3 роки тому

      Same to me ☹️

    • @whiterabbit1632
      @whiterabbit1632 3 роки тому

      @@RRB47tv Bro you need to buy a 3v relay instead. Works like a charm for me now but I have to sell the 5v...