TinyGo: Getting the upper hen - Donia Chaiehloudj

Learn how to harness the power of TinyGo, a Go language compiler for microcontrollers, with real-world examples, from monitoring hen houses to sending sensor data to Prometheus and Grafana.

Key takeaways
  • TinyGo is a compiler for Go language, compatible with microcontrollers, with the goal of creating small binaries.
  • The presenter used TinyGo to monitor their hen house, reading temperature and humidity values from a DHT22 sensor and sending them to Prometheus and Grafana.
  • TinyGo provides a debugging tool, with an example of using it.
  • The presenter used their Arduino Nano 33 IoT board, which had to be flashed with TinyGo before use.
  • The presenter explained the benefits of using TinyGo over Go, citing the smaller binary size (29KB vs 1.8MB).
  • Concurrency is fully compatible with TinyGo, but the presenter noted that the memory size is limited on small chips.
  • The presenter mentioned that TinyGo is still experimental and is constantly evolving.
  • The presenter provided miscellaneous tips and experiences, such as setting up Prometheus and Grafana, using printing for debugging, and setting up the DHT22 sensor.
  • The presenter mentioned that TinyGo has a command called flash for compiling and flashing code.
  • The presenter highlighted the importance of contributing to open-source projects, such as TinyGo.
  • The presenter asked the audience to check their GitHub for more information.