1-Day Project: MPR121 Capacitive Touch Sensor Music Organ

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ม.ค. 2025

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

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

    I love how all of his one day projects actually take like 3 years because he does so many projects at the same time that they all take super long

  • @tobortine
    @tobortine 9 ปีที่แล้ว +3

    Please come back to this soon, I found it fascinating. I'm off to order the same module to have a play with.

  • @pontuslundstrom5831
    @pontuslundstrom5831 9 ปีที่แล้ว +2

    What the formula i × 100 Hz produces is essentially the harmonic series of a note between G2 and G#2 (in scientific pitch notation), assuming A4 set to 440 Hz. This means the tone of pin 2 is an octave above the first, pin 3 a perfect fifth above pin 2, pin 4 a perfect fourth above pin 3 etc.
    The reason why it sounds "musical" is pins 3 to 5 forming a construct called second inversion of a major triad (somewhere between G and G# major in this case).
    If you want a piano-like "touchboard" with equal temperament (octave divided into 12 semitones) you can choose some base note, e.g. "middle C" (C4) with f ≈ 261.6 Hz and calculate the frequencies as f_tone = f_base × pow(2.0, i/12.0). As you can see, if we set i = 12 we get f_tone = 2 × f_base which is exactly one octave above the base note.
    With that few pads I'd probably go for something simpler though, like the pentatonic scale.

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

    I had that thing lying around for years now, never wanted to play with it because I didn't like the need for a level-shifter - but recently found out that you don't need one. I2C is an open-collector bus with pull-up resistors (here to 3.3V on the board), which are fine to connect directly to the Arduino.
    BTW the MPR library uses some initialization values for the MPR121 that I find somewhat implausible (and not recommended in the manuals), so with some tweaking there it's a bit more responsive (reliable at detecting touches).

    • @James-uz9se
      @James-uz9se 4 ปีที่แล้ว

      Hi there, I’d like to replicate this build to replace the buttons on my playstation controller for touch buttons. How did you manage to use the board without the level-shifter? Or do I just have to pick a 3.3V main chip?

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

      @@James-uz9se 3.3V supply from Arduino's 3.3V pin, SCL and SDA directly to Arduino's I2C pins (e.g. 5 and 4 for Nano/Uno).
      The "Pro Micro" 5V/16MHz does not have a 3.3V pin, so if you want to use a pro micro, get a 3.3V/8MHz version. (One is on it's way to me, too.)

  • @DarianCabot
    @DarianCabot 9 ปีที่แล้ว +3

    Good video! Those coins are Japanese ¥50 by the way ;-)

  • @steveeb00
    @steveeb00 9 ปีที่แล้ว

    BTW, adding a library via the zip file was available in the IDE 1.5.8 possibly earlier versions too. If you launch an earlier version and go Import Library->Add Library, you will notice that the "File Type" selector says "Zip files or folder". It is easily overlooked.

  • @deathshaker0026
    @deathshaker0026 7 ปีที่แล้ว

    Julian great video. I just had yo go and get this module. I wonder what kinds of things I will make with it?

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

    Nice info, thanks for sharing it :)

  • @sheep1ewe
    @sheep1ewe 8 ปีที่แล้ว

    3.3V is an older comman standard parralell with the 5V (fox. for som old computer related IC ) so my guess is that it was easy to develop for that standard or it just happened to be compatible wit some other equpiment the developers had in mind.

  • @Max27653
    @Max27653 8 ปีที่แล้ว

    Hey, do your pennies also work behind a sheet of paper or do they need a direct contact to the skin?

  • @MichelvdD1973
    @MichelvdD1973 9 ปีที่แล้ว

    It looks to me that the chip is not properly alligned with traces on the pcb. The pins 6 en 7 don't seem to be soldered on the traces but just next to them.

  • @wardope
    @wardope 8 ปีที่แล้ว +3

    why not just use the 3.3 volt output on the arduino ?

    • @ThatGuy-nv2wo
      @ThatGuy-nv2wo 8 ปีที่แล้ว +3

      No data

    • @TheRandolph23
      @TheRandolph23 6 ปีที่แล้ว

      @@ThatGuy-nv2wo I don't understand. I'm pretty sure you can just 3.3 volt output on the arduino. Can you explain the no data part? Because I'm looking at the layout of the arduino and can't see any difference between each pin.

    • @mksmurff
      @mksmurff 6 ปีที่แล้ว

      @@TheRandolph23 Could it be that even though the vcc would be 3.3, the data/clock etc would still be at 5v?

    • @AbcDino843
      @AbcDino843 5 ปีที่แล้ว

      You can just use 3.3v: th-cam.com/video/tTMsbL0eH_M/w-d-xo.html

  • @AmirPourkashef
    @AmirPourkashef 5 ปีที่แล้ว

    Is the library sensitive to pressure?

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

    What can we do when need to read lots of capacitive switches? (For example, Creating a PC keyboard needs at least 102 switches)

  • @KX36
    @KX36 9 ปีที่แล้ว

    You've made a better continuity buzzer than almost any multimeter has (well, except that it's continuity to you..)
    This is what's meant by a latched buzzer, too many people reviewing meters on their electronics themed youtube channels think that it's when a continuity buzzer is implemented as a software add on to the resistance measurement and therefore only buzzes after it autoranges resitstance and then complain "it's latched but it's really slow".

  • @AndreasKircher
    @AndreasKircher 9 ปีที่แล้ว

    Hello Iulian,
    you should take a look at the TI MSP430 controller ; this controller has built in touch sensor inputs and other nice features (e.g. low power!).
    Also its almost Arduino compatible if you use the Energia IDE.
    Regards Andreas

  • @thenichtrider
    @thenichtrider 9 ปีที่แล้ว

    Why didnt you use npn transistor for the touches. It does the same and is a lot cheaper

  • @superdau
    @superdau 9 ปีที่แล้ว

    If the I2C pins are not 5V tolerant, the IRQ pin most likely isn't either. I2C pins are essentially open collector outputs so I am sure they use the same output stage on the IRQ pin as well.
    On the other hand on many digital 3.3V devices the pins are 5V "tolerant" as long as you prevent a large current from flowing. It is an abuse of the internal ESD protection diodes, which will short everything higher than Vdd+diodedrop to Vdd.
    Don't do that on opamps though. A voltage outside the supply rails can lead to latchup and you opamp will go up in flames immediately (don't ask how I know that).

  • @syedumarjunaid5499
    @syedumarjunaid5499 7 หลายเดือนก่อน

    How to use it touchless sensor capability.....i.e how to use proximity?

  • @clirimmurati6183
    @clirimmurati6183 6 ปีที่แล้ว

    How can we do that with an easy8051a motherboard, any video on that?

  • @ab_ab_c
    @ab_ab_c 9 ปีที่แล้ว

    Nice project!
    You did an excellent job wiring & soldering. What power magnifier are you using as a visual aid?
    Thanks for sharing!

    • @JulianIlett
      @JulianIlett  9 ปีที่แล้ว

      A B Just 3.5D reading glasses from the pound shop.

    • @ab_ab_c
      @ab_ab_c 9 ปีที่แล้ว

      Julian Ilett Hmm.. It appeared to be higher power. Nevertheless... great job!
      Thanks for sharing!

  • @ElmerFuddGun
    @ElmerFuddGun 9 ปีที่แล้ว

    May I suggest 2 things?
    1) try using a fine tip on your soldering iron and just run it over the "bad" IC pads. If that doesn't work it could be the circuit board its self. Wouldn't surprise me that they don't test the boards before mounting the components and they obviously don't test the boards after they are assembled.
    2) Not a big deal for testing but next time use the pin number plus 1 for the tones. ;-)

  • @juwerocky427
    @juwerocky427 6 ปีที่แล้ว

    does it possible to be use for water level sensor?

  • @rameshrathod5373
    @rameshrathod5373 6 ปีที่แล้ว

    thank u for sharing your valuable knowledge!
    can i use touch pad to this??
    how can i interface this touch pad with arm7 ??
    your help is appreciated!

  • @muh1h1
    @muh1h1 9 ปีที่แล้ว

    how have you added your libs before? i have always just chosen a zip file...

    • @JulianIlett
      @JulianIlett  9 ปีที่แล้ว

      I've always selected the uncompressed library file, and had to change the name by removing 'master'.

    • @muh1h1
      @muh1h1 9 ปีที่แล้ว

      Oh. OK, worked before like this already though :)

    • @jacktheaviator4938
      @jacktheaviator4938 5 ปีที่แล้ว

      I use the Arduino library manager to source most libraries, you don't have to hunt all over for them, and it automatically updates your library lists.

  • @ligeirow
    @ligeirow 5 ปีที่แล้ว

    you can regule the frequency now need work with a 1/4 hp motor need make sawstop but with capacitor and ardiono with arduinocapacitor.h this not work the frequency always change do you have any test about?

  • @ahmedfayez4596
    @ahmedfayez4596 5 ปีที่แล้ว

    Hello
    I wish you can reply to me,
    My question is:
    Can I get an analog values from this sensor? My project is an artificial hand and i want a feedback sensor so that once the holds something, the motor stops, please help

  • @PuchMaxi
    @PuchMaxi 9 ปีที่แล้ว

    You didn't have to travel all the way to Japan in order to find coins with holes you know. The Danish krone 1, 2 and 5 coins also have holes in the them, the Norwegian krone has holes too! :)

    • @maicod
      @maicod 8 ปีที่แล้ว +1

      they probably hate their monarchs cause they're punching through their heads :D

    • @PuchMaxi
      @PuchMaxi 8 ปีที่แล้ว

      Haha, no monarchs on them! The ones that do, don't have the hole ;-)

    • @maicod
      @maicod 8 ปีที่แล้ว

      PuchMaxi1988 my (Dutch) coins are Euro coins with the King on one side of them (or the former Queen) and have no holes :)

  • @BogusNotions
    @BogusNotions 9 ปีที่แล้ว

    See the absolute ratings section for IRQ
    VSS - 0.3 to VDD + 0.3
    Hence the pull-up to only 3.3v.
    Easy thing to miss, most open collector/drain outputs don't usually have much head room. An easy trap for you young players as Dave would say.

  • @mikgus
    @mikgus 9 ปีที่แล้ว +5

    Im sure that if you use adafruits libary you have to use fruit as the sensors.

  • @셀맨-g4o
    @셀맨-g4o 6 ปีที่แล้ว

    is it moultitouchable?

  • @nin0bb
    @nin0bb 9 ปีที่แล้ว

    Great video as always =)
    The coins are 50Yen Japanese coins though ;D

    • @JulianIlett
      @JulianIlett  9 ปีที่แล้ว +1

      nin0bb Oops! Sensible Japanese people ツツ

  • @jusb1066
    @jusb1066 9 ปีที่แล้ว

    not sure its the best time to re-release the stylophone! those tones remind me of very old games where they were just simple beeps with a simple base 10 offset, not real musical notes of the later games

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

    you could make a phone dialer

  • @BoomBrush
    @BoomBrush 8 ปีที่แล้ว

    so much for one day :D

  • @ilyasoo
    @ilyasoo 8 ปีที่แล้ว

    Hi everyone, I'm making a 12 capacitive sensors and I've got the Uno with Adafruit MPR121 (12 capacitive touch sensors). I want to make each sensors act like the computer keyboard. ("awsedftgyhuj" keys) in order to instruments on Ableton Live for example. However I don't know about programming at all. Would someone help me?

  • @deathshaker0026
    @deathshaker0026 7 ปีที่แล้ว

    Lolz! I never realized that I needed 3.3v on the low side and 5v on the high side on the level converter.

  • @louigi6001
    @louigi6001 9 ปีที่แล้ว

    en.wikipedia.org/wiki/Musical_note#Note_frequency_.28hertz.29
    There you have the relation of the frequencies and the notes

  • @TamNguyen-jj6zq
    @TamNguyen-jj6zq 7 ปีที่แล้ว

    Can you give me this MPR121 library, please?

  • @Ripaltico
    @Ripaltico 6 ปีที่แล้ว

    Vaya, pensé que eran monedas de 5 duros :(

  • @donpalmera
    @donpalmera 9 ปีที่แล้ว +3

    Somewhere online right now a Japanese super far right group is planning what they should do for this great insult against their currency. ;)

    • @JulianIlett
      @JulianIlett  9 ปีที่แล้ว +1

      donpalmera Dammit, I should have used the Norwegian Krone instead!

    • @wagd
      @wagd 9 ปีที่แล้ว +1

      Julian Ilett As a Norwegian, I approve ;)

    • @maicod
      @maicod 8 ปีที่แล้ว

      maybe Norway has such a far right group as well :D

  • @atmark666
    @atmark666 9 ปีที่แล้ว +2

    its japanese 50 yen coin.....

  • @hermanhermitz9101
    @hermanhermitz9101 7 ปีที่แล้ว

    Fake project that's why the final result is not shown.