Using the hardware for pulse-echo experiments
The following examples are made on a test-bench, ie a piezo with a simple reflector immerged in water, a few centimeters away from the piezo. There are other experiments with probes, such as with a bard probe.
Example of setup, with an un0rick board and a bench reflector.
Examples from lit3rick
Examples from un0rick
The setup is a classical one, header of the board connected to the Raspberry pi through a ribbon, the transducer being connected to the board.
The pyUn0 lib was used to acquire a single line, which yielded:
One will find the bandwidth of the transducer itself from the FFT of the signal:
A demo in video was done.
Along with a servo
That worked on an early prototype (2x20 header reversed, single connector) - but still valid. Experiment data are here.
A microcontroller is moving a piezo in front of a wire target.
SPI lines (transmitting the servo position) are connected to the TopTurn entries of the un0rick board.
Here’s the signal I’m sending on the two bits acquired from the TopTurn bits. Here, the piezo is at angle 22, that’s a reference of the offset (60) + the position, so I should read 82 in binary. And that’s what I’m getting, yeay!