https://www.instagram.com/p/DKZQHQBi4Eq/
Monday, June 02, 2025
xNT Hand Implant to Webhook to Home Assistant Event Trigger
Sunday, June 01, 2025
Teensy Basics: Distance Sensing with VL53L0X Laser Sensor
Overview
The VL53L0X is a ranging sensor that uses time-of-flight of a laser to determine the distance to the next surface correct to the mm with a maximum of 2m. The sensor uses an i2c interface with a default address of 0x29. The xshut pin allows for address control and start up / shut down during setup.
Hardware Setup
Here are the pinouts for the Teensy 4.1 and the VL53L0X:
Make the following connections between the Teensy 4.1 and the sensor:
- Teensy GND to VL53L0X GND
- Teensy 3v3 to VL53L0X VIN
- Teensy pin 0 to VL53L0X XSHUT
- VL53L0X unconnected
- Teensy pin 18 to VL53L0X SDA
- Teensy pin 19 to VL53L0X SCL
No other passive components are required.
Software setup
This sensor example requires the Pololu vl53l0x library, which is available from the Arduino library manager.
Example: Reading distance and printing to the serial monitor
Saturday, April 26, 2025
Max Gen Filter Cookbook

256 tap manual finite response filter
https://github.com/little-scale/littlescale-max-patches/blob/master/manual_fir_filter.maxpat
Morphing-type biquad filter
https://github.com/little-scale/littlescale-max-patches/blob/master/biquad_testing.maxpat
https://github.com/little-scale/littlescale-max-patches/blob/master/biquad-full-basic.gendsp

12 stage biquad lowpass with outputs at 12, 48, 96 and 144 db per octave
https://github.com/little-scale/littlescale-max-patches/blob/master/duodecim-biquad.maxpat
https://github.com/little-scale/littlescale-max-patches/blob/master/duodecim-biquad.gendsp
50 stage single pole lowpass
https://github.com/little-scale/littlescale-max-patches/blob/master/singlepole-cascading.maxpat
https://github.com/little-scale/littlescale-max-patches/blob/master/singlepole.gendsp
https://github.com/little-scale/littlescale-max-patches/blob/master/singlepole.maxpat
Basic biquad implementation of lpf, hpf, bpf, notch, all, shelves in one gen~ patch
https://github.com/little-scale/littlescale-max-patches/blob/master/biquad-full-basic.maxpat
https://github.com/little-scale/littlescale-max-patches/blob/master/biquad-full-basic.gendsp
Moog-style ladder filter with resonance and saturation
https://github.com/little-scale/littlescale-max-patches/blob/master/ladder-filter.maxpat
https://github.com/little-scale/littlescale-max-patches/blob/master/ladder-filter.gendsp
Harmonic resonant bandpass bank with 16 partials and controls for central partial and gain spread.
https://github.com/little-scale/littlescale-max-patches/blob/master/reson-bpf-harmonic-bank.maxpat
https://github.com/little-scale/littlescale-max-patches/blob/master/reson-bpf-harmonic-bank.gendsp
Resonant bandpass filter
https://github.com/little-scale/littlescale-max-patches/blob/master/reson-bpf.maxpat
https://github.com/little-scale/littlescale-max-patches/blob/master/reson-bpf.gendsp
Third order (3ff / 3fb) filter with LFO modulation across all co-efficients
https://github.com/little-scale/littlescale-max-patches/blob/master/filter-3ff-3fb.maxpat
Friday, October 04, 2024
Building Supercollider for Raspberry Pi Zero 2
Sunday, March 10, 2024
Pyramid Controller
My pyramid controller is almost identical to my sphere controller. The difference in shape means that each side feels a little like a preset, and its easier to have an intuition about rotation and orientation compared to a sphere. The code is slightly different as it doesn't adjust brightness; this looks better in my opinion. The code and model files can be found here: https://github.com/little-scale/Music-Sphere-Controller alongside a Max patch that makes it easy to get the data from the pyramid. The board will transmit x y and z data streams for acceleration, gyroscope and magnetometer. The acceleration values determine the colour of the onboard LED. Printing in white or clear PLA makes the colour shine through nicely.