How to use relay with arduino - Turn on and off 220V AC lamp

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 เม.ย. 2020
  • This is tutorial video about how to turn on and off an 220V AC lamp using a relay controlled with an arduino.
    You can support us and unlock premium projects code by joining our membership by clicking the link below:
    / @miliohm
    Find code and another tutorial here :
    miliohm.com/how-to-use-relay-...
    breakrow.com/miliohm/how-to-u...
    Music: Travel - AShamaluevMusic.
    Music Link: / travel
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @Dbfatherinfo
    @Dbfatherinfo 3 ปีที่แล้ว +2

    i like your way and style to teach us thanks.. i got it really fast cause you have teach us
    very nice

    • @miliohm
      @miliohm  3 ปีที่แล้ว

      Thanks, really apreciate it

  • @rudraryabiswas6446
    @rudraryabiswas6446 3 ปีที่แล้ว

    i love you brother , my project worked

  • @botanahmed3527
    @botanahmed3527 2 ปีที่แล้ว

    Nice demo

  • @deepsaha5096
    @deepsaha5096 2 ปีที่แล้ว

    Can we connect any terminal of the load with the relay. Or we have to connect any specific terminal??

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

    Good job 👏
    Thank you 🙏

    • @miliohm
      @miliohm  4 ปีที่แล้ว

      You are welcome

  • @tiagorodrigues3425
    @tiagorodrigues3425 2 ปีที่แล้ว

    Anyone know how what cables to connect if using the germany cables? brown, blue and yellow/green

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

    Thankyou

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

    And what if I have a random layout in sockets, when in some of them ground is on left and in others on the irght ? It would mean that relay would be on LOW side and lamp would be always on PLUS side so under voltage !
    btw, you did not mention about 3-wire 230v setup...

    • @miliohm
      @miliohm  3 ปีที่แล้ว

      Closed circuit means a lamp should connected to V+ and GND or in AC it means phase and neutral. Any of wire opened it would turn the lights off. No matter which wire.
      Sorry about three wire setup. In my country only has two wire. But for three wire you can either cut the phase or neutral cable.

    • @adamwalter2573
      @adamwalter2573 3 ปีที่แล้ว

      @@miliohm no problem. I've just solved my problem.
      I also have 2-wires in sockets, so I connected gnd to neutral and set up my relays, but before I connect my relays to any socket, I need to make sure it has power on left on left side, because this is the line where my relay is. If I forget about it, relay will be on low side.
      I know, sounds weird, but this is - I guess - the only proper way to set it up.
      Oh, I need gnd, because I connect also 3-wire tools to this relay.
      BTW,
      For some reason my relay does not go into low state when no signal is passed to it. It's still on (!). It's happy to work with even 3.3V signal, but for sometimes it's not enough. Did you also face this problem ?

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

    ganbatee :D, keep inspiring

    • @miliohm
      @miliohm  4 ปีที่แล้ว

      Thank you, keep comment : )

  • @AzizMelb
    @AzizMelb 3 ปีที่แล้ว

    Does it matter if I cut the black wire and connect it to the relay instead of the white wire?

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

      Nope, that would works too

  • @moussaab8292
    @moussaab8292 3 ปีที่แล้ว

    Please, I have a problem when writing pineMode (7,OUTPUT) The relay works directly without typing HIGH

    • @miliohm
      @miliohm  3 ปีที่แล้ว

      Try LOW instead of HIGH

    • @moussaab8292
      @moussaab8292 3 ปีที่แล้ว

      @@miliohm Yes, it works on the contrary, where is the problem?

  • @02herogamer44
    @02herogamer44 3 ปีที่แล้ว

    Sir really nice but give me the link of the code

  • @naufal6560
    @naufal6560 2 ปีที่แล้ว

    Does it works with water pump 220v too?

    • @miliohm
      @miliohm  2 ปีที่แล้ว

      Sure

  • @imranali-po7bl
    @imranali-po7bl 3 ปีที่แล้ว

    Mobile technology

  • @AleZakko
    @AleZakko 2 ปีที่แล้ว

    your accent... LOL

    • @miliohm
      @miliohm  2 ปีที่แล้ว

      you definitely can't guess where I am from

    • @AleZakko
      @AleZakko 2 ปีที่แล้ว

      @@miliohm probably not England or USA and your accent it's just meh 😂

  • @jonasdriemel
    @jonasdriemel 3 ปีที่แล้ว

    halts maul