PiZZa: Arduino on the Raspberry Pi Zero 2 W
Article excerpt
jetpax on GitHub has dropped PiZZa, running Arduino on the Raspberry Pi Zero 2 W. Write sketches in the Arduino IDE and run them on a Raspberry Pi Zero 2 W or the original Raspberry Pi Zero W. A small firmware on the SD card (a Zephyr “loader”) loads your compiled sketch as a runtime […]
jetpax on GitHub has dropped PiZZa, running Arduino on the Raspberry Pi Zero 2 W.
Write sketches in the Arduino IDE and run them on a Raspberry Pi Zero 2 W or the original Raspberry Pi Zero W. A small firmware on the SD card (a Zephyr “loader”) loads your compiled sketch as a runtime module, so after a one-time setup, uploading is one button. No SD swap, no manual re-flash.
What you’ll need:
A Raspberry Pi Zero 2 W or an original Raspberry Pi Zero W.
A microSD card (≥ 2 GB) and a way to write it (Raspberry Pi Imager).
A micro-USB data cable (not a charge-only cable).
Arduino IDE 2.x on Apple-Silicon macOS, Linux, or Windows.
What works:
Pi Zero 2 W: GPIO, SPI, Wire (I²C), Serial (USB-CDC; mini-UART as Serial1), and WiFi (the WiFi library / brcmfmac).
Pi Zero W (original): GPIO, Serial (USB-CDC; mini-UART as Serial1). SPI / Wire / WiFi are pending, the BCM283x driver family is already ported for the 2 W and re-basing to BCM2835 is mostly mechanical, but each takes a bring-up cycle.
Not available on either yet: PWM / analogWrite.
Not supported due to hardware limitation: analogRead() (no on-chip ADC, but external SPI/I²C ADCs like ADS1115 or MCP3008 work).
Check it out on GitHub.