EMIT Firmware Development Guide (MicroPython) - ControlBits/EMIT GitHub Wiki
Welcome to the EMIT Firmware Development Guide
The aim of this guide is to provide a tutorial style, step-by-step guide to developing firmware for EMIT.
The plan is to get you up and running quickly. Once you've completed sections 1 to 6, you'll have a fully functional Environmental Monitoring IoT sensor that transmits Temperature and Humidity data using the MQTT protocol.
Parts 7 to 10 are written as individual 'bolt-on' sections to help you add additional functionality such as logging data to the micro SD card, or using EMITs on-board relay to switch ON/OFF a local heater, fan or perhaps trigger an audible alarm.
EMIT supports both MicroPython and Arduino/C++. This version of the guide covers a MicroPython implementation using the Thonny IDE.
All of the code examples are available here on our GitHub repository.
Table of contents:
- Getting EMIT ready for firmware development
- Writing and uploading firmware to EMIT
- Measuring Temperature & Humidity with the AM2302
- Connecting EMIT to the Internet
- Adding an accurate Timestamp using NTP
- Transmitting data over MQTT
- Using the relay for control
- Logging data to the microSD card
- Adding a web server to EMIT
- Exploring EMIT's expansion connector
This guide is currently under active development ... to receive notification of additions and updates to this guide please subscribe for updates.