Arduino Tutorials: Basic programming , blinking LED and using switch![code is in the description!]

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

КОМЕНТАРІ • 37

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

    I am looking to incorporate in my project using arduino with 5 buttons to pulse the associated relay
    That means that each switch will create a short single output pulse no matter how long the button is pressed
    Your help will be greatly appreciated
    Many thanks
    Erik Hoffman
    London, UK

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

      Yes, you can do with the use of Delay() function .. between on and off timings of your output.

  • @vampyceiling6678
    @vampyceiling6678 4 роки тому

    I've searched many vid. and like this but only your tutorial worked
    Thank you very MUCH IT WORKS!!!!

  • @harshverma8580
    @harshverma8580 5 років тому +5

    You have written in code that when switch output is high then led output will be high but in video when you press button led turns off means it is getting output low🤔

    • @KKMaity
      @KKMaity 4 роки тому

      he did it wrong when wiring .. switch was pulled to ground

  • @Ausssie_adventures_with_4Paws
    @Ausssie_adventures_with_4Paws 3 роки тому +3

    Wheres the code you were going to upload later??

  • @11-stem3avancenarenzel6
    @11-stem3avancenarenzel6 3 роки тому +4

    Where is the code?

  • @hafeezmughal806
    @hafeezmughal806 4 роки тому

    Thank you, Bhai ya bta de k led light or black color ky wire, white color k bord me jha mrzy dal sktay ha

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

    Super 👍 Thanks

  • @hafeezmughal806
    @hafeezmughal806 4 роки тому

    Ya Jo ap wires lga rhay ha is ky blkl smjh nhy lg rhy koncy wire ks number k sath lgany he.
    College lock down ky wja se bnd he kuch chezo ky smjh nhy lg rhy

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

    bro,
    you have enabled access to ur personal data too !!

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

    you have to put a resistor in there or it will burn out over time

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

    the codes were not readable

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

    something is wrong with code didn't work

  • @gmlcks1908
    @gmlcks1908 4 роки тому

    @Shyam Sundar
    we can operate this in VSCode using Platform I/O?

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

    Great video sir can you do you a video on 5 push buttons?

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

      Of course you can do it ... Just follow same steps on each pushbutton

  • @copycatpenguin2k990
    @copycatpenguin2k990 5 років тому +1

    it did not work why???

  • @Fpvcrewgr
    @Fpvcrewgr 6 років тому

    Can you tell me how I can write the code so when I press the push button the led turns ON and stays ON and when I press it again it turns OFF and stays OFF untill I press it again to turn ON.
    Thank you !!!

    • @kavi2790
      @kavi2790 6 років тому

      if(digitalRead(BUTTON) == HIGH)
      {
      digitalWrite(LED,HIGH);
      }
      if(digitalRead(BUTTON) == HIGH && digitalRead(LED) == HIGH)
      {
      digitalWrite(LED, LOW);
      }
      try this one
      you might blow up something be careful

    • @alexradoi8318
      @alexradoi8318 5 років тому

      forum.arduino.cc/index.php?topic=200933.0
      this is what you need
      You will find a lot of info on that matter
      sorry for the late response

    • @MinecraftXXXXL
      @MinecraftXXXXL 5 років тому

      Int state = 0 ; //initialize as global variable or in setup
      If(digitalRead(buttonpin))
      {
      State! = state;
      }
      digitalWrite(ledpin, state) ;

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

    can you give me the code dude?

  • @nartymmd
    @nartymmd 5 років тому +1

    God, where is pull down resistor? Stop teaching people this madness.

    • @shyamsundarsaravanan7398
      @shyamsundarsaravanan7398  5 років тому

      Arduino has very low output current that's why I didn't add it.

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

      @@shyamsundarsaravanan7398 some time you'll get error signal

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

    Code please

  • @kaushalyepalugaswewa3168
    @kaushalyepalugaswewa3168 6 років тому

    Very simple

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

    thats not blinking!

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

    Plz give me link arduinobord plz

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

    give me the cod e

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

    Code!

  • @conquerorzzz
    @conquerorzzz 5 років тому +1

    Bro i will subsceibe you if you will make more videos

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

    Plz sir plz

  • @MinecraftXXXXL
    @MinecraftXXXXL 5 років тому

    What about blinking using Millis? People who use delays in the program are stupid

  • @motornowindia7342
    @motornowindia7342 5 років тому

    Very simple and basic blaahhhhhhhhhh