Capacitive sensing maybe? #399
Replies: 6 comments
-
Posted at 2014-02-28 by Loop Oh.. it's got just two pins, apparently without a + sign anywhere |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-03-03 by @gfwilliams Hi, It probably is capacitive. It may be possible to set up the STM32 chip to handle it, but I'm not sure how at the moment - it'd be quite a lot of work to do though. The best bet might be to buy a capacitive touch IC and just interface that to Espruino. Again, I don't know of any at the moment either - touch isn't something I've had time to look into. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-03-04 by Loop Actually after having posted it came to my mind that I could google for "capacitance arduino" and actually found this: http://arduino.cc/en/Tutorial/CapacitanceMeter#.UxWz6vRdX2c |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-03-04 by @gfwilliams Yes - however often the capacitance of a human is very small, so the time taken to charge/discharge is pretty tiny. I guess you could have some luck using Espruino's setWatch to measure the amount of time that the signal takes to charge up. The solutions I've seen set up the hardware timers to do everything automatically though - but at the moment that would require use of peek and poke :) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-03-04 by Loop Oh while you mentioned it... poke sounds great fun in general (also gets my mind back to my speccy days) but.. how do I get something address in js/espruino? I positively want to poke but I don't know where to do it! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-03-05 by @gfwilliams Yes, it's quite fun - especially when you're able to properly change state with it :) Best bet is the reference manual: http://www.st.com/web/en/resource/technical/document/reference_manual/CD00171190.pdf Look up Table 3. Register boundary addresses and then look at the Register map entry for the peripheral you're interested in - then just add the offset to the base address. There's also this header file that you can work backwards from (but the reference doc is easier :) It would probably make sense to create a module where a lot of the common addresses were defined I guess... |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-02-28 by Loop
Hello,
I wanted to hack an Otamatone, removed it's strip and tried to read voltage/resistance. It doesn't work!
I guess it acts as a variable capacitor.
Any clues on how to read it? maybe there's a basic circuit to build, or a silly software thing to write, but I have no idea!
thanks!
Beta Was this translation helpful? Give feedback.
All reactions