Use 1000s of switches in ONE pin

Sdílet
Vložit
  • čas přidán 25. 08. 2024
  • This video shows how you can use multiple switches on a single pin
    EDISON SCIENCE CORNER
    This channel is all about electronics and tech videos.
    You can find tutorials and projects of
    IoT
    Arduino
    electronics
    DIY stuff
    blynk app
    Robotics
    Mechatronics
    science
    You can buy components from
    www.esclabs.in
    Join our community and explore
    Whatsapp group
    chat.whatsapp....
    Instagram
    / edison_science_corner
    Facebook
    / escpage
    Telegram
    t.me/edisonsci...

Komentáře • 15

  • @CrazyCoupleDIY
    @CrazyCoupleDIY Před 2 měsíci +1

    Nice and easy explanation

  • @drelectronics13
    @drelectronics13 Před 2 měsíci +1

    Nice and easy explanation, will use in future projects

  • @x-6790
    @x-6790 Před 2 měsíci +1

    Good idea

  • @Edmorbus
    @Edmorbus Před 2 měsíci +2

    Thanks for sharing
    can you help me to make circuit schematics and code
    I want to read voltage with an isolated ground
    Mine setup is 4x 12v battery with 4x solar controllers with 1x Esp32 and 2x ADS1115

  • @creatvitylight224
    @creatvitylight224 Před 2 měsíci +2

    The problem with this method is when u press 2 switch in same time the analog value will completely change.. so it's a bad idea to use this type of method in a controller..

    • @EDISON_SCIENCE_CORNER
      @EDISON_SCIENCE_CORNER  Před 2 měsíci

      You can't normally use that. But in critical cases we can adapt this type of hacks without any problem . By the way if want want use two buttons at a time that is also possible by just reading the analog values at the time of two button push.

    • @CrazyCoupleDIY
      @CrazyCoupleDIY Před 2 měsíci +1

      @@EDISON_SCIENCE_CORNER exactly, you can setup if statements for all the permutations

    • @EDISON_SCIENCE_CORNER
      @EDISON_SCIENCE_CORNER  Před 2 měsíci

      Yes a user can alter accordingly

    • @creatvitylight224
      @creatvitylight224 Před 2 měsíci

      @@EDISON_SCIENCE_CORNER
      In this way you not only make the code complicated but also cause a noticeable delay , false reading etc.. this technique not good for a controller but for other such small applications it's a fantastic trick

    • @drfrancintosh
      @drfrancintosh Před 2 měsíci

      Actually, if you use an R2R resistor ladder that should work fine… The each button would be a power of two resistance instead of a multiple of two and in that way, you can push two buttons at the same time and read the binary values in different statements. Although I am interested in the performance lag or the latency of reading the deck in real time.