Hugo also brought a couple of his projects, both musical instruments using lasers, light detectors and a small affordable microcontroller board based on the ESP32. (He’s doing his programming in the Arduino world, which would suit various microcontrollers. This one has lots of analogue inputs and also Bluetooth, and the processing power he needs to synthesise audio.) Here’s a detail of the laser harp (it’s battery powered, uses a green laser pointer, has 9 pairs of light sensors and 9 clear plastic beam-splitters.)
Of course we played a bit with the laser harp! We also had a wide-ranging conversation covering time travel, science fiction, the latest AI chat bots, various perils and opportunities of modern technology, and more besides.
The 3D print finished exactly on the closing bell at 6pm, due to a carefully calibrated 116% print speed.
Oh, and Hugo also shared some samples of blue-green and green algae for us to conduct breeding or solar power experiments. See this other topic: Algae batteries
Thanks for the writeup of the laser harp and other items.
I have wound the coils on the 3D printed coil former. The intention is to use it to detect the proximity and position of a metal object. i,e. how far away it is and its horizontal position, To then calculate X and Z position.
One transmit coil and 3 receive coils.
Using the pulse induction technique: the TX coil is pulsed, which induces an eddy current into the metal object, which thus produces an alternating magnetic field, picked up by the receive coils.
I have added capacitors across the coils, the LC circuits resonate at 13 kHz,
I need to sample the signal at preferably 10 times this, and for 4 channels. (3 RX channels, and also the TX signal) 130 KSPS x 4 = 520 KSPS. Not sure that the ESP32 is up to the task though…
I found some example code for the ESP32 for ADC using DMA. And loaded it into the ESP32. A comment in the code indicates it working at 277 KSPS. Not sure I believe it though, as there seem to be successive samples with identical values. I reduced the rate to 200 KSPS, and the problem improved. But this sample rate is far from what is needed. So I have ordered an inexpensive board based on the STM32F401: 🇬🇧 STM32F401 84MHZ 256K Black Pill STM32 ARM Board better than Blue STM32F103 | eBay
The STM32 has a sequencer that selects in turn the ADC channels, and stores them into an array. The ADC operates up to 2.4 MSPS.
As an aside, I have tried an ESP32-S2 board. Really compact and inexpensive. However, it is a real pain to use with the Arduino IDE. It loses communication via USB after programming, so that it is then not possible to read data into the IDE terminal, or plot graphs. Reset attempts then randomly change the com port number! Which then requires more faff to re-establish communication. I don’t have this problem with the ESP32 used for the laser harp. That is a WEMOS LOLIN32 ESP32 Lite