Arduino Capacitive Touch Sensing!

Поделиться
HTML-код
  • Опубликовано: 26 авг 2024
  • Capacitive touch is a common tool used in touch screens and smart phones, and Arduino has an easy library to utilize capacitive touch sensors!
    In this tutorial we show how to light up two different LED sensors, one for light touch and one for firm touch!
    The code shown in this project can be found here:
    github.com/ple...
    The Arduino beginner kit can be found here:
    amzn.to/3Hr9VKx
    Or just get an Arduino Board if you have the rest!
    amzn.to/426T9s7
    Consider becoming a super supporter at our Patreon link!
    / lemastertech
    Thanks for watching, don't forget to leave a like on the video and subscribe to the channel, and leave a comment with any questions you may have or to suggest future content!

Комментарии • 13

  • @flioink
    @flioink Год назад +1

    Just recently finished the chess tutorial
    and was pleased that I got the pieces movements logic without too much head-scratching. Definitely thumbs up from me:)
    Gonna do several of these in one go whenever I got some time.

    • @lemastertech
      @lemastertech  Год назад +1

      Nice man thanks for watching and glad you liked it!! I’ve got a big pygame one coming for next Monday’s video 😊 cheers mate!

  • @YoupiMatos2
    @YoupiMatos2 6 дней назад

    Thanks a lot ! I'm wondering, sometimes it seems like the sensor gets overwhelmed? Instead of reading 30 times a second it stops at about one per second, reading super high values in the 280000. I don't know what's causing it? Thanks for the tutorial though it works when it's not lagging like that.

  • @eguvweyugbos245
    @eguvweyugbos245 7 месяцев назад +2

    hi, i followed step by step to do this, but mine isnt working. The board lights up when i plug in my arduino and upload the sketch, indicating that everything is fine, but when i touch the wire, it doesnt light up. I tried changing the ohms, maybe i put the wrong ones, but nothing. i know the LEDs are fine, because they light up when i first plug in. My serial monitor shows that its "0" and when i touch the sensor, the number goes up, but no lights on the LEDs.

    • @lemastertech
      @lemastertech  7 месяцев назад +1

      Hi - sorry this is a tricky one to help with without seeing your circuit. Have you been able to try a few different input pins on your arduino to make sure you don’t have just one bad pin/connection?

  • @xpoweral
    @xpoweral 7 месяцев назад +1

    Hello! First of all, thank you for the video; you explain the project well and clearly. I would like to create it too, but I only have D1 Mini microcontrollers at home. Before starting the project, I would like to know if the presented library works with this microcontroller, and whether I should use the recommended 1 megaohm resistor you suggested or replace it with a different value. The D1 Mini has digital pins operating at 3.3 volts. Thank you for your help.

    • @lemastertech
      @lemastertech  7 месяцев назад

      Hello, I am not sure if this library will work for those specific microcontrollers but if they can be programmed with the arduino IDE than the odds are they probably will still work!

  • @MrWrestler500
    @MrWrestler500 5 месяцев назад +2

    Hello, I’m using this cord and build to analogwrite a cord to the value of the capacitor. For some reason, no matter how hard I press on the wire it does not change from 0.
    Could you help me?

    • @lemastertech
      @lemastertech  5 месяцев назад

      Hi, you wouldn’t analog write a value to a capacitive sensing input you would read the analog value back!

    • @MrWrestler500
      @MrWrestler500 5 месяцев назад

      @@lemastertech Yes so the goal was to use the capacitive sensors as a start and end, but all it’s returning js zero, my guess was that I don’t have enough resistance for a change to be noticed but I’m not sure how to implement that

    • @MrWrestler500
      @MrWrestler500 5 месяцев назад +1

      @@lemastertech Ok sorry so i figured it out and I hooked two up. I touched them both together by accident and now only one works. Did I fry the circuit or a wire?

    • @lemastertech
      @lemastertech  5 месяцев назад

      hi most likely you damaged either the wire/sensor you were using or damaged the Digital input pin you were connected to - if you try different input pins on the arduino and it still doesn't work probably fried a wire or sensor@@MrWrestler500

    • @MrWrestler500
      @MrWrestler500 5 месяцев назад

      @@lemastertech Thank you so much, I switched the pin and upped the resistance and it worked. Is there a reason using two different fingers to touch both capacitive sensors fried if