ESP8266 ESP12E based 4 analog 4 digital input board

Here is an example of a module that takes 4 analog inputs and 4 digital inputs, encodes the data in JSON and streams it to a server via TCP  with REST compatibility.

In this specific example the module is taking data from 3 MQ type gas sensors, MQ2, MQ8 and MQ135 and temperature and humidity values from a DHT22 sensor.

The input from the analog gas sensors can be calibrated via independent trimmers.

SSID, Password of the wifi network, Server and Port and Heartbeat can be configured via a web command, with no need of using the serial port.

An LED indicates when the board obtained an IP address.


WIFI 4 analog 4 digital inputs module

WIFI 4 analog 4 digital inputs module

About hbouzas

Born in Buenos Aires, Argentina. Studied Physics at the University of Buenos Aires. Joined Schlumberger in February 1985 in Houston, Texas, and worked in several technical and managerial positions until 2000. From 2000 until 2008 held several management positions in Abingdon, UK; Calgary, Alberta and London, UK. Worked in the areas of Geophysical Exploration, Geological Modeling, Structural Modeling, Reservoir Modeling and Petroleum Economics and holds several patents. He is currently the Norway Technology Center Manager for Schlumberger Information Solutions and is based in Oslo and Stavanger. Main interest are software, technology, innovation, 3D visualization, design, human computer interaction, energy, environment.
This entry was posted in Uncategorized. Bookmark the permalink.

7 Responses to ESP8266 ESP12E based 4 analog 4 digital input board

  1. Ricardo Jose Callejo says:

    Hola hbouzas! Soy Ricardo Callejo de Comodoro Rivadavia, Chubut Argentina. Buen trabajo el que has hecho. Estoy empezando a trabajar con este dispositivo ESP8266-XX pero mi pregunta va mas relacionada con los sensores de gases. Siempre que los evaluo encuentro muchas dudas sobre su calibración. Como resolviste el tema?
    Respecto del ESP si tienes algun enlace que muestre una intoducción a lo que has hecho. No te pediré tu código porque no es ético.

    • hbouzas says:

      Hola Ricardo, no conozco Comodoro, pero en algún momento iremos ya que queremos conocer mejor la patagonia.
      Los sensores de gases son un poco delicados pero es posible tomar mediciones precisas, checa las especificaciones y mira las tablas de conversion de resistencia (o voltaje) a PPM de gas.
      En mis postings de fin del 2014 y principios del 2015 explico como configurar y programar el ESP8266.

  2. andy says:

    Hi, could you please tell how did you connect 4 analogic sensors on onli 1 Analogi input of ESP?

  3. Luy Ahir says:

    Hola Horacio, una pregunta. Los sensores se pueden activar todos a la vez? Por ejemplo, si tengo un sensor MQ-2 y un sensor MQ-7, pueden ellos trabajar en conjunto para detectar gas y monóxido de carbono o se tienen que activar y desactivar para que el otro funcione?


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s