Commit Graph

21 Commits

Author SHA1 Message Date
colin 99dc665ab0 readme: convert relative angle-bracket links to named links so they render 2022-07-01 00:13:00 -07:00
colin a53f273d5b readme: change angle-bracket link to named link
trying to get gitea to render these usefully
2022-07-01 00:13:00 -07:00
colin 9f62a1a868 readme: fix angle-bracket relative links 2022-07-01 00:13:00 -07:00
colin eef3c7acb7 linkify URLs 2022-07-01 00:13:00 -07:00
colin eb485bb10d rename README -> README.md
it was already a markdown document
2022-07-01 00:13:00 -07:00
colin d7f8b60713 note which board we're targeting with this 2022-07-01 00:13:00 -07:00
colin 6337c8a2ff add missing scripts to repo 2022-07-01 00:13:00 -07:00
colin 0856c92771 add existing measurements to the repo 2022-07-01 00:12:52 -07:00
colin c23d22b5db add missing README 2022-06-28 03:31:15 -07:00
colin d4b3a6e8c6 add missing Cargo.lock 2022-06-28 03:30:56 -07:00
colin 749ffc0411 median-filter the samples before sending them over itm
we're limited by the itm busrate. but we can at least get a cleaner
signal by sampling at a higher rate and then downsampling before sending
to the PC.
2022-06-28 03:25:01 -07:00
Colin 0695b22d4f Add a waveform streamer 2019-12-31 20:15:29 -08:00
Colin 609ec60238 switch to 16-bit dumps & add a script for dumping cleaned waveforms
I can see very clear signal when I:
- tape only the contacts of the sensor to the table, and
- bend the free end into the air, and release (it snaps down)
2019-12-31 19:29:45 -08:00
Colin 2369db3657 Lots of debugging stuff: works, but sample rate is low enough that it's not super useful 2019-12-28 15:38:13 -08:00
Colin 858618f41c Explicitly set the ADC sample time
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.
2019-12-28 00:07:16 -08:00
Colin 1b2a368ae0 Read values from the ADC and pipe them to the terminal
These values look realistic!
2019-09-28 20:46:13 -07:00
Colin b9ff4e8bb4 Clock the ADC so that its startup sequence doesn't hang :-)
Have yet to attempt to read it though
2019-09-28 14:19:23 -07:00
Colin f3075706d7 Flesh out ADC bringup (hangs!)
Currently hangs waiting for cal to complete, and then again waiting for
adrdy if we skip the cal.

Should check if _any_ of the writes go through.
2019-09-28 14:02:37 -07:00
Colin b73cb2fa1c Switch to safe Peripherals API 2019-09-28 12:42:27 -07:00
Colin 5637649487 WIP analog input 2019-09-28 12:42:19 -07:00
Colin 74de03ea3c Reading from external input and setting the LEDs
Next: analog input
2019-09-15 18:17:33 -07:00