How to connect Arduino to Octoprint running on Windows

Hi there!
Just to make clear, I am running octoprint on a windows computer, not a raspberry, and accessing it from another computer via localhost.

What is the problem?
I want to add rgb lights to my printer and controll them from the octoprint UI remotely, but I can't use any existing plugin for doing that since all of them are for gpio pins on a RPI.

What did you already try to solve it?
I was thinking about adding an Arduino with some mosfets to the setup, connect it with a usb cable and recieve serial commands from the octoprint python script, how can I do that?

Additional information about your setup (OctoPrint version, OctoPi version, printer, firmware, what kind of hardware precisely, ...)
I am using Octoprint 1.8.4 with Python 3.10.4 on Windows 10, I followed the official installation tutorial and it works like a charm.

You could do that by writing yourself a plugin, but why not get yourself an ESP8266 board instead of an Arduino, wire your LEDs up to that and then use the WLED firmware and plugin?

https://kno.wled.ge/

2 Likes