August 27

Sensor Network: The Client Code

After testing the single modules for a sensor I finished the combination. Now the ESP8266 reads the temperature and humidity and sends them to the MQTT broker together with the actual voltage and the number of attempts to make a connection to the broker. The later is useful, because the ESP cannot reliably connect to the broker. I don’t the reason, some investigation is necessary.

A photo and the circuit are in the earlier post.

As usual the code is on github.

Category: ESP8266 | LEAVE A COMMENT
December 13

Cheerlights red

Now I have a small house connected to the world. Normally its a house to be illuminated by a tee light. Now it is equipped with an 8mm WS2812 LED. The LED is controlled by an Arduino (sketch), which is connected with a USB cable to a Raspberry Pi. On the Raspberry runs a little Python program, which gets in regular intervals the actual colour from cheerlights. The world can change the colour via a tweet, e.g. “#cheerlights green”.