Mads Kjeldgaard

osc

Esp32 Simple Osc Receiver

Lately I have started experimenting with the very cheap and powerful ESP32 microcontrollers. Today I made a simple example of a firmware which receives OSC from a computer and then blinks the on-board LED according to the incoming message and I packaged it all as an easy to clone/copy/use platformio project (mostly for myself). The firmware uses CNMAT’s OSC library: #include "Arduino.h" #include "WiFi.h" #include <OSCMessage.h> WiFiUDP Udp; // A UDP instance to let us send and receive packets over UDP int LED_BUILTIN = 2; // Options int update_rate = 16; // Network settings char ssid[] = "wifiname"; // your network SSID (name) char pass[] = "wifipassword"; // your network password unsigned int localPort = 8888; // local port to listen for OSC packets void setup() { pinMode(LED_BUILTIN, OUTPUT); /* setup wifi */ WiFi.

Raspberry Pi 4: Simple Button to OSC example in Rust

Today I did a small experiment with my Raspberry Pi 4: I wanted to poll the GPIO data pins and use data from them in SuperCollider. This is best done by polling the pins in a separate program and then sending that data to SuperCollider via OSC. I have done this in Python before but I much prefer doing this kind of thing in Rust since the latter is fast and safe (and just generally: I love Rust!