Post by duddex on Jan 8, 2022 16:50:57 GMT
I came across a YouTube video (https://www.youtube.com/watch?v=GKnuqrTxj9k) where Jan Fiess uses a NodeMCU wireless IoT controller to switch an LED on and off via TouchOSC. My code mainly is based on his source code.
I realized that the ESP32 has two DAC channels
and so I extended the example code to send control voltage on pin 25 and 26 controlled by OSC messages. I restricted the values of the TouchOSC controls to send data between 0 and 255 because this is the range of the value for the dacWrite()
method which controls the output voltage of the ESP32 DAC.
The ESP32 also has built-in WiFi. So there were no additional components required. Just the ESP32...
This video shows how I send some OSC information (pitch and triggers) to the ESP32. The ESP32 output pins are connected to the input connectors of GRAINS, 2OSC/d and 2ENV.
(Musically quite boring - sorry)
You can find the source code on Github (github.com/duddex/ESP32-OSC2CV
). I also uploaded the TouchOSC layout file which I created using the TouchOSC Editor (hexler.net/touchosc-mk1/#resources
). I still use the old "MK1" version of TouchOSC. The editor is free. The Android and iOS-App costs $4.99.