- Hardware Requirements
- Arduino Libraries
- Libraries Installation Steps
- Connections
- Procedure
- Convert Image to Adafruit GFX Bitmap Code
- Images
1) NodeMCU ESP8266
2) Soil Moisture Sensor
3) 0.96 OLED Display
4) Buzzer
5) BreadBoard
6) Jumper Wires
7) USB Cable
1) SSD1306 by Adafruit version 1.2.9
2) GFX by Adafruit version 1.4.13
3) ESPAsyncWebServer
4) ESPAsyncTCP
5) Dallasremperature by Miles Burton version 3.8.0
6) OneWire by Paul Stoffregen version 2.3.5
7) Blynk by Volodymyr Shymanskyy version 0.6.1
You can install it from library.zip by:
1) Unzip the `libraries.zip`
2) Copy the folder to default location "C:\Users\<username>\Documents\Arduino\"
3) Paste there
4) If you have used a custom folder for your project then copy the library folder there
3V -> VCC
A0 -> AOUT
G -> GND
G -> GND
3V -> VCC
D1 -> SCL
D2 -> VDA
D5 -> +ve
G -> -ve
- Connect all the IoT devices according to the pin connection mentioned above.
- then install all the Arduino libraries from the
library.zip
folder as mentioned above. - Copy the code to Arduino IDE.
- Connect the NodeMCU ESP8266 with the laptop.
- Then click on
Tools
from the Arduino IDE navbar and make sure the NodeMCU board is selected. - And also make sure that Port is selected ( It will be auto-selected on device connection ).
- Code Steps:
1) In network credential, enter your wifi name and password.
2) If you want to change the OLED Display image, then follow the `Convert Image to Adafruit GFX Bitmap Code` steps.
- After making the changes, click on
Verify
and then click onUpload
- When the code gets uploaded successfully it will show this message
Hard resetting via RTS pin
. - Then click on
Serial Monitor
to get the website IP. - Copy the IP and paste it into your browser.
- Hence, your IoT application is ready to monitor the soil moisture.
- Go to this link.
- Select the image from your pc.
- Go to the Image Settings:
a) Canvas size: Keep resolution below 128 * 64.
- Go to Output:
a) Code output format: Select Adafruit GFXbitmapFont.
- Click on generate code.
- Copy the generated code, paste it in the Arduino Code.