Connecting a sensor to the ESP-12F microcontroller

The following diagram shows a weather predictor I built using the ESP-12F module. Although it is not an edge analytics application per se, it does show how to connect a microcontroller to an LED and the internet. The weather predictor uses barometric pressure values taken for a web service to determine whether there will be good weather coming:

As you can see in the diagram, an RGB LED is connected to the GPIO ports on the ESP-12F. The type of RGB LED used in this circuit has a common anode. Hence, the RGB LED is connected as follows:

  • Red cathode to GPIO12
  • Common anode to VCC
  • Green cathode ...

Get Hands-On Edge Analytics with Azure IoT now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.