USB laser switch

usb-power-switch

Turns a small 5 V line laser on and off from a Waveshare RP2040-Zero running CircuitPython. You control it by sending commands over the board’s USB serial port.

Usage

just deploy    # copy code/ to /Volumes/CIRCUITPY (the board restarts by itself)
just monitor   # open the serial console
just render    # preview images of the board and case
just stl       # printable case STLs
just viewer    # rebuild the 3D viewer pages (commit viewer/ to update the site)
just slice     # slice the STLs for a Bambu A1

Needs a recent OpenSCAD development snapshot (for the manifold backend), uv for the Python scripts, and Bambu Studio for slicing.

In the console, type on, off, toggle, status or help and press Enter.