Mads Kjeldgaard

Esp32

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.