I made some musical sphere controllers. They use the Adafruit Feather Sense BLE nRF5284 board. Axis in six dimensions can be mapped to MIDI outputs via a Max patch. Details including code, patch and 3D files can be found in the github repo here: https://github.com/little-scale/Music-Sphere-Controller
Tuesday, May 09, 2023
Wednesday, April 19, 2023
Simple Cinemag CM-DBX Transformer DI
I wired up a simple DI for my synths as I wanted to balance the output as well as push the signal through a transformer. I used a Cinemag CM-DBX transformer.
I connected the primary coil (yellow for positive and orange for negative) to the 6.5mm mono socket, as well as the chassis of the primary coil and shield of the transformer to 6.5mm ground. I connected the secondary coil (red for positive - XLR pin 2 and brown for negative - XLR pin 3) to the XLR jack, as well as the chassis of the secondary coil to XLR pin 1 (ground)ses Cinemag CM-DBX for the transformer,
I used Jaycar part PP1023 for the XLR jack and Jaycar part PS0162 for the 6.5mm mono socket. Even though the box is plastic I have not had any noise issues yet but this will depend on environmental conditions.
No issues with modular levels going through the transformer so far! So it can handle pretty hot signals.
Download the STL files here: https://www.thingiverse.com/thing:5979053
Teensy 4.1 with QMC6310 Magnetometer to USB MIDI
Overview
The QMC6310 magnetometer sensor outputs 16 bit for each axis X, Y and Z. The code uses the Wire library to communicate via the I2C protocol. This example prints the raw axis values to the serial monitor and also sends as a USB MIDI control change message (scaled to 0 - 127). The datasheet for this sensor can be found here.
Hardware
- Teensy 4.1 3V to QMC6310 VCC - orange in the above photo
- Teensy 4.1 ground to QMC6310 GND - blue in the above photo
- Teensy 4.1 pin 19 / A5 / SCL / PWM to QMC6310 SCL - green in the above photo
- Teensy 4.1 pin 18 / A4 / SDA / PWM to QMC6310 SDA - yellow in the above photo
Software
Wednesday, April 12, 2023
Geophone as Infrasonic Microphone with Case and Magnet
The pin on the geophone with the notch is the positive terminal. This should be wired to XLR pin 2. The other pin of the geophone is the negative terminal. This should be wired to XLR pin 1 and 3. Additionally, a 10k resistor should be wired between pins 1 and 2 of the XLR.
Note that phantom power (48V) should be turned off prior to connecting the XLR to an input and should never be turned on while connected.
Saturday, April 01, 2023
Connecting an Encoder to Teensy 4.2
Overview
An encoder is a digital input device that looks similar to a pot but can be rotated indefinitely and delta rotation in steps is measured by making or breaking contact between two pins and ground. The Teensy has an excellent and easy to use library for encoders. More than one encoder can be easily used.
Hardware
The encoder portion of an encoder usually has three pins, these may be labelled A, B and C. B is a common ground and should be connected to ground. A and C should each be connected to an individual digital pin on the Teensy. As the encoder is turned, the connection between A and B, and A and C is made and broken. This is, in turn, read as a series of high and low signals by the digital input pins.
This particular encoder also has a push switch. When pressed down, the encoder will make the connection between sw1 and sw2. sw1 can be connected to a third digital input pin on the Teensy and sw2 can be connected to ground.
Software
The code uses the encoder library to create an encoder object on pins 0 and 1 as well as a button on pin 2. There is a boundary of 0 and 1023 for the encoder. Values of the button and encoder are printed to the serial monitor.