MCP3008 with ESP8266 for Analog Moisture Sensors – SPI

No. 3

In this tutorial. we will read 2 analog sensor data from ESP8266. Remember that there is only 1 ADC in the ESP Modules, so only one analog sensor can be connected to the hardware. Thanks to MCP3008, we can now read eight different analog sensor data from ESP Modules.

The volumetric content of water in the soil is measured using the hygrometer module. Both the analog and digital signals are output by the module. But, we will use only the analog pin from this module.

ESP8266

We will use D5, D5, D6 and D7 digital pins from the ESP8266, connect the digital pins to the MCP3008 as below: – D5 –> CLK – D6 –> D_OUT – D7 –> D_IN – D8 –> CS / CHIP SELECT

Circuit Wiring