Extending the Rainbow HAT for the Raspberry Pi with More Peripherals

The Rainbow HAT for the Raspberry Pi is a board for learning physical computing and IoT programming recommended for Google’s Android Things. The HAT comes with a “buffet” (in the manufacturer’s own words) of sensors and actuators that are fun to mess with. But if you are tired of eating the same buffet every day, you can always connect your own peripherals to its breakout GPIO pins — PWM0, UART0, I2C1, and SPI0.1 — to create more interesting projects. These open pins can be found on the left side of the board. In this article, I show how…