New Raspberry Pi and ESP8266 IoT Tutorials

New Raspberry Pi and ESP8266 IoT Tutorials

by Joseph Malin - Senior Technical Writer

At our recent hackathon, we gave demos of the Satori platform using an ESP8266 board and Raspberry Pi computer. We've made the demos available as  tutorials containing instructions, diagrams, and code for doing the demos yourself. These tutorials show you how ultra-small computing/networking devices combined with inexpensive sensors can provide you with useful live data. The ESP8266 and Raspberry Pi are inexpensive, and you can buy them on Amazon or similar online store. The sensors are even less expensive, and just as widely available. Try building one yourself, and if you do, let us know by tweeting @satorilivedata your creations.

By the way, thanks to my fellow co-workers Andrey Vasenin, Alexander Zinoviev, and Phillip Berndt for writing the great tutorials! Without their expert knowledge, the below tutorials would not be available to the Satori community.

ESP8266 weather station

With an ESP8266, a Satori RTM SDK, and a C program, you can build a simple weather station that publishes sensor data to a Satori channel. Other programs can use RTM SDKs to receive the data from this channel, publish their own data to it, or both.

The ESP8266 system-on-a-chip (SOC) has these features:

  • Integrated TCP/IP protocol stack and WiFi

  • Low-power 32-bit CPU

  • GPIO pins

The C program that runs the station reads temperature and humidity data from an attached DHT11 sensor. The program uses the Satori C RTM SDK to publish this data to a Satori channel. It also subscribes to this Satori channel, and when it receives notifications, toggles an attached notification LED.

View the tutorial.

Raspberry Pi weather station

With a Raspberry Pi (RPi) computer, the Satori Python RTM SDK, and a Python program, you can build a simple simple weather station that publishes sensor data to a Satori channel. Other programs can use RTM SDKs to receive the data from this channel, publish their own data to it, or both.

The Raspberry Pi is a powerful Internet of Things (IoT) device, because it combines normal computer features such as WiFi, USB, and Linux OS with low-level hardware inputs such as GPIO, UART, and I2C. The Satori platform accessed via the Python RTM SDK makes live data quickly and widely available. In combination, they help you collect IoT live data and publish it to the world.

This tutorial describes how to build a simple weather station that uses Satori's Python RTM SDK. The station program publishes weather messages to a channel that other clients can subscribe to. The program also gets messages from a subscribed channel that tell it when to toggle the state of an LED light.

View the tutorial.

Raspberry Pi multiple sensor station

This tutorial shows you how to build and program a Raspberry Pi-based station with multiple sensors. The Raspberry Pi (RPi) runs a program that reads from the sensors and publishes the data to a Satori channel. The program also subscribes to Satori's Twitter open data channel and displays random tweets on an attached LCD screen.

The station has these sensors:

  • DHT11 temperature and humidity sensor

  • BMP180 barometric pressure sensor

  • Touch sensor

  • Joystick input sensor

It also has a dual-LED module that toggles colors when the station receives messages from the Satori channel.

View the tutorial.