Tutorial • Blog

Pay the light

Vision

Integrating physical devices with IOTA


Tags
  • device
  • pyota
  • relay
  • payment
  • python
  • raspberry pi


Contributors

This beginner’s tutorial is a simple, yet powerful demonstration of using the IOTA protocol for making payments and receiving services from a physical device. The goal of this tutorial is to demonstrate how we can build a simple power circuit that can be switched ON/OFF based on the current balance of a given IOTA address.

We will be using an internet connected Raspberry PI together with the Python programming language to check for balances on the IOTA tangle and perform switching of a connected relay using the PI’s internal GIO pins. The relay will again be connected to a simple battery powered circuit that turns ON/OFF an Light Emitting Diode (LED) representing the physical device in our project.


Contributors