Packages
nerves_system_rpi0
0.16.0
2.1.0
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
2.0.0-rc.3
2.0.0-rc.2
2.0.0-rc.1
retired
2.0.0-rc.0
retired
1.33.1
1.33.0
1.32.0
1.31.4
1.31.3
1.31.2
1.31.1
1.31.0
1.30.1
1.30.0
1.29.1
1.29.0
1.28.1
1.28.0
1.27.1
1.27.0
1.26.0
1.25.1
1.25.0
1.24.1
1.24.0
1.23.2
1.23.1
1.23.0
1.22.2
1.22.1
1.22.0
1.21.2
1.21.1
1.21.0
1.20.2
1.20.1
1.20.0
1.19.0
1.18.4
1.18.3
1.18.2
1.18.1
1.18.0
1.17.3
1.17.2
1.17.1
1.17.0
1.16.2
1.16.1
1.16.0
1.15.1
1.15.0
1.14.1
1.14.0
1.13.3
1.13.2
1.13.1
retired
1.13.0
1.12.2
1.12.1
1.12.0
1.11.2
1.11.1
1.11.0
1.10.2
1.10.1
1.10.0
1.9.2
1.9.1
1.9.0
1.8.2
1.8.1
1.8.0
1.7.2
1.7.1
1.7.0
1.6.3
1.6.2
1.6.1
1.6.0
1.5.1
1.5.0
1.4.0
1.3.0
1.2.1
1.2.0
1.1.1
1.1.0
1.0.0
1.0.0-rc.1
1.0.0-rc.0
0.21.0
0.19.2
0.19.1
0.19.0
retired
0.18.2
0.18.1
0.18.0
0.17.1
0.17.0
0.16.0
0.15.0
0.14.0
0.13.0
0.12.0
Nerves System - Raspberry Pi Zero and Zero W
Current section
Files
Jump to
Current section
Files
nerves_system_rpi0
README.md
README.md
# Raspberry Pi Model Zero
This is the base Nerves System configuration for the Raspberry Pi Zero and
Raspberry Pi Zero W.

<br><sup>[Image credit](#fritzing)</sup>
| Feature | Description |
| -------------------- | ------------------------------- |
| CPU | 1 GHz ARM1176JZF-S |
| Memory | 512 MB |
| Storage | MicroSD |
| Linux kernel | 4.4 w/ Raspberry Pi patches |
| IEx terminal | OTG USB serial port (`ttyGS0`). Can be changed to HDMI or UART. |
| GPIO, I2C, SPI | Yes - Elixir ALE |
| ADC | No |
| PWM | Yes, but no Elixir support |
| UART | 1 available - `ttyAMA0` |
| Camera | Yes - via rpi-userland |
| Ethernet | Yes - via OTG USB port |
| WiFi | Pi Zero W or IoT pHAT |
| Bluetooth | Not supported yet |
## Supported OTG USB modes
The base image activates the `dwc2` overlay, which allows the Pi Zero to appear as a
device (aka gadget mode). When plugged into a host computer via the OTG port, the Pi
Zero will appear as a composite ethernet and serial device.
When a peripheral is plugged into the OTG port, the Pi Zero will act as USB host, with
somewhat reduced performance due to the `dwc_otg` driver used in other base systems like
the official `nerves_system_rpi`.
## Supported WiFi devices
The base image includes drivers for the Red Bear IoT pHAT and the onboard
Raspberry Pi Zero W wifi module (`brcmfmac` driver).
If you are using another WiFi module (for example, a USB module), you will
need to create a custom system image. Before doing this, check if the
[nerves_system_rpi](https://github.com/nerves-project/nerves_system_rpi) works
better for you. That image configures the USB port in host mode by default and
is probably more appropriate for your setup.
## Installation
Add `nerves_system_rpi0` to your list of dependencies in mix.exs:
```
def deps do
[{:nerves_system_rpi0, "~> 0.12.0"}]
end
```
[Image credit](#fritzing): This image is from the [Fritzing](http://fritzing.org/home/) parts library.