Local LLM on ESP32-S3 - Control a Servo and RGB LED A Visuino tutorial demonstrates running Needle 2, a 45M-parameter tool-calling model from Cactus Compute, directly on an ESP32-S3 board with 16 MB flash and 8 MB Octal/OPI PSRAM, where the model interprets commands such as "move servo to 90 degrees" and returns structured tool calls that C++ firmware validates before driving a servo or the onboard WS2812 RGB LED on GPIO48. The reference port memory-maps the model from flash and uses PSRAM for working memory, and the project reports roughly 47 seconds for a reasoning-on request on its target board, with actual time varying by prompt and output length. The tutorial requires Arduino-ESP32 core 3.3.10, Visuino Professional with the Custom Code component, Chrome or Edge for the local model flasher, and a custom partitions.csv reserving flash from 0x210000 for the model. Can an ESP32-S3 run a real language model locally? Yes. In this tutorial we run Needle 2 , a compact 45M-parameter tool-calling model, directly on an ESP32-S3 with 16 MB flash and 8 MB Octal/OPI PSRAM . You will type commands such as: move servo to 90 degrees blink blue 5 times move servo to 90 degrees then blink blue 3 times The sentence goes directly to Needle 2 . The Arduino code does not search the sentence for words such as “servo”, “blue”, or “90”. Needle interprets the request and returns structured tool calls. The supplied C++ then validates those structured calls and either sends a normalized value to a Visuino Servo component or controls the onboard RGB LED. Needle 2 is an open 45M-parameter model from Cactus Compute designed for tool calling, device use, and structured extraction . The official model is distributed as a compact.cact binary. The ESP32-S3 port used by this tutorial memory-maps the model from flash and uses PSRAM for working memory. This makes Needle especially suitable for embedded control. It is not being used here as a general chatbot. Its job is to convert a human request into a small, structured action that firmware can validate and execute. The reference ESP32-S3 port targets: - ESP32-S3, dual core, 240 MHz. - 16 MB flash . - 8 MB Octal PSRAM . - An N16R8-class memory configuration. - WS2812-compatible onboard RGB LED on GPIO48 on the reference/tested board. The reference project reports roughly ~47 seconds for a reasoning-on request on its target board; actual time varies with prompt/output length. Long or complex requests can take substantially longer. - ESP32-S3 board with 16 MB flash + 8 MB Octal/OPI PSRAM . - USB data cable. - Small hobby servo. - Suitable servo power source, commonly 5 V for small hobby servos. - Jumper wires and optional breadboard. - Visuino Professional https://www.visuino.com/downloads/ / a Visuino edition with the Custom Code component. - Arduino-ESP32 core. This project was tested with 3.3.10 . - Desktop web browser Google Chrome or Microsoft Edge for the attached local model flasher. - The supplied Needle2 ESP32S3 Visuino Files.zip https://www.visuino.com/Projects/Needle2 ESP32S3 Visuino Files.zip package. Visuino demo project Needle2.visuino file is also available below Step 3: Install the Needle2 Arduino Library Extract the complete ZIP Needle2 ESP32S3 Visuino Files.zip. Copy this folder: Libraries\Needle2 into: C:\Users\