Getting started with Agriculture IoT (ThingSpeak + Matlab)

The following project measures soil moisture, humidity, and temperature. It then sends the data to ThingSpeak via. ESP8266.

Jul 10, 2021

17537 views

11 respects

Components and supplies

1

DHT11 Temperature & Humidity Sensor (3 pins)

1

Gravity: Analog Soil Moisture Sensor For Arduino

1

Arduino UNO

1

ESP8266 ESP-01

Apps and platforms

1

ThingSpeak API

1

Arduino IDE

Project description

Code

ESP8266 Program

arduino

ThingSpeak-hum vs moist

matlab

Arduino CODE

arduino

Arduino CODE

arduino

ESP8266 Program

arduino

ThingSpeak-hum vs moist

matlab

ThingSpeak-temp vs moist

matlab

Downloadable files

project_bb_CkKjcAO14a.png

project_bb_CkKjcAO14a.png

project_bb_CkKjcAO14a.png

project_bb_CkKjcAO14a.png

Comments

Only logged in users can leave comments

Anonymous user

2 years ago

Excellent project. I want to develop a project about IoT in the field of Analytical Chemistry. To do this, I plan to connect raspberry pi 3 model B with 28BYJ-48 stepper motor, raspberry pi camera and RGB sensor (TCS34725). To do this, I ask for help to configure and automate the movement of the stepper motor, as well as the capture of images by the camera. This is my e-mail alegrenascimento@gmail.com I would appreciate your attention!

briamsg15

2 years ago

Hello, trying to configure the esp8266 I get this error a lot I already made all the possible revisions esptool.py v2.8 Serial port COM12 Connecting........_____....._____....._____....._____....._____....._____.....____Traceback (most recent call last): File "C:\\Users\\57318\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.7.4/tools/upload.py", line 65, in <module> esptool.main(cmdline) File "C:/Users/57318/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/esptool\\esptool.py", line 2890, in main esp.connect(args.before) File "C:/Users/57318/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/esptool\\esptool.py", line 483, in connect raise FatalError('Failed to connect to %s: %s' % (self.CHIP_NAME, last_error)) esptool.FatalError: Failed to connect to ESP8266: Invalid head of packet (0x8C) esptool.FatalError: Failed to connect to ESP8266: Invalid head of packet (0x8C)

briamsg15

2 years ago

Hello, trying to configure the esp8266 I get this error a lot I already made all the possible revisions esptool.py v2.8 Serial port COM12 Connecting........_____....._____....._____....._____....._____....._____.....____Traceback (most recent call last): File "C:\\Users\\57318\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.7.4/tools/upload.py", line 65, in <module> esptool.main(cmdline) File "C:/Users/57318/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/esptool\\esptool.py", line 2890, in main esp.connect(args.before) File "C:/Users/57318/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/esptool\\esptool.py", line 483, in connect raise FatalError('Failed to connect to %s: %s' % (self.CHIP_NAME, last_error)) esptool.FatalError: Failed to connect to ESP8266: Invalid head of packet (0x8C) esptool.FatalError: Failed to connect to ESP8266: Invalid head of packet (0x8C)

ianmalki

3 years ago

Amazing project, I'm doing it for a project and I got everything correct expect The thingspeak vales, mine are stuck at zero no matter what I do, in the arduino code do I need to write 2 digit values under "Sending Data to ESP8266" or are they suppose to be the same as the code you posted?

Ninety99

2 years ago

hey! sorry for the late reply...the 2 digit values will be written on the serial bus via the respective functions "DHT.temperature" and "DHT.humidity". Check to see if all the connections are proper. Make sure you have uploaded the "ESP8266 program" code to ESP8266 correctly. To check if the values are uploading to ThingSpeak, run the "Arduino CODE" and manually type in the values on the serial monitor, for example type "*112233#" in the serial monitor and wait for 15 seconds. Then check whether you see the values: Temperature = 11, Humidity = 22, and Moisture = 33 on ThingSpeak. If you do then it means your ESP is working fine. Again remeber that there is delay in sending each value i.e. 15 seconds, so in total it will take 45 seconds for all values to show up!

Anonymous user

3 years ago

Excellent project. I want to develop a project about IoT in the field of Analytical Chemistry. To do this, I plan to connect raspberry pi 3 model B with 28BYJ-48 stepper motor, raspberry pi camera and RGB sensor (TCS34725). To do this, I ask for help to configure and automate the movement of the stepper motor, as well as the capture of images by the camera. This is my e-mail alegrenascimento@gmail.com I would appreciate your attention!