858618f41c14da02668022ae980fb79a983beeb0
I think I need an op-amp for the piezo element. It seems like just running 6" wires to it causes too much noise in the wires to be able to detect the piezo element. Need an amplifier right next to the piezo before sending it over any wire. With 0b000 sample time, reading values of 0xd0 +/- 20 With 0b111 sample time, sometimes I read all the way between 0x000 and 0xfff. But it's not random noise -- it's oscillating like a sine wave at maybe 1 hz. The noise is there when I connect long wires to the ADC pins, but regardless of what's on the other end of the wire (piezo or no piezo). Could also be worth trying differential mode.
Description
prototype Dance Dance Revolution controller where the sensing happens with piezoelectric sensors attached to an arbitrary flat surface
Languages
Rust
69.4%
Python
27.2%
Shell
2%
GDB
1.4%