From Flashlight to MQTT with ESP8266


In this post, I will present items below:

  • LEDs need a limiting current circuit
  • how to make a flashlight
  • make a light powered by the portable battery, and dimming the LEDs by ESP8266 via MQTT

The third point is more complex than its sound. To prepare a subscriber that listen to a topic inside the pool called MQTT. The topic and data of that topic is published by other client, called publisher. We will walk through each topic later in this tutorial.

The video is the recap and a short explanation of how this works:

The second tutorial on this topic will cover the motion (PIR) sensor, but the tutorial gets rather long so that the PIR sensor will be presented in the second part of this topic.

So let begins.