Shelly Pill Examples - nygma2004/km GitHub Wiki
01: Basics
This page contains the links and examples shown in my Shelly Pill videos. The introduction video explains the common topics that apply to the subsequent videos to get you started and get the Pill set-up for the serial communication.
Link and useful resources in general:
- Pill + SDS011: connecting the Pill to an environment sensor.
- XLoader: flash HEX firmware files to Arduino boards.
Example demo code:
- Basic UART receiver script: uart_basic_receive.js
- Basic Arduino Nano sketch: nano_counter.ino
- Basic Arduino Nano HEX firmware file: nano_counter.ino.hex
Wiring:

02: I2C Sensors
This project connects two I2C sensors the Nano, and sends the readings over to the Pill to update the virtual sensors
Example files:
- Shelly script: uart_i2c_receive.js
- Arduino Nano sketch: nano_SHT21_BH1750.ino
- Arduino Nano HEX firmware file: nano_SHT21_BH1750.ino.hex
Wiring:

03: FM Radio
This project uses a TEA5767 digital FM radio module that can be controlled from Shelly: turning the radio on/off and tuning into preset stations.
Example files:
- Shelly script: uart_radio.js
- Arduino Nano sketch: nano_fm.ino
- Arduino Nano HEX firmware file: nano_fm.ino.hex
Wiring:



