### From Flashlight to MQTT with ESP8266

#### Internet of Things with this Flashlight?

Not really, the idea is the LED light can be powered by any power bank. And the flashlight or small LED is also connected to Internet to turn on/off remotely. The flashlight is not best candiate for this approach, but this may be suitable for USB adapter laying around. You can you plug a small LED to USB port and light up temperary.

But first, yes, I used that buzzword, aka IOTs, but this one could make a good combination of using the circuit in Step 2 with an ESP8266 and then control the light intensity by MQTT method.

Three components for IOT system are:

• A subscriber: in this case the LED light acts as a client
• A publisher: we will work on a dash control later
• and a MQTT server or a broker: A Raspberry Pi is the best use for this. Think the broker as the exchange floor.

We need to add some parts as well:

• Replace 12V boost up by MT3608 boost up board, $1.92/5pcs, this one can boost the voltage of a 18650 battery (about 3.7V) to 28 V, enough to power 8LEDs (instead of 3). • The default or "un-push" position in the switch is connected to the GPIO 1 or 2 in the ESP8266 for PWM signal. • ESP8266 01,$1.68 each. Like this one
• AMS1117 3.3 V, a voltage regulator for ESP8266, some capacitors
• A USB module to flash ESP8266, $0.78/pcs like$1.92/5pcs this one