Buy from US | Buy from UK | Buy from DE | Buy from IT | Buy from FR | Buy from ES | ここでご購入を! |
Water level data detection is very commonly used in agriculture and the manufacturing industry. In this lesson, we’ll learn how to read the water sensor and transmit the data to a web browser.
First, please insert the ESP8266 Wi-Fi Shield into your mainboard
OSOYOO Basic Board | water sensor module |
A0 | S |
GND | – |
5V | + |
Software Installation:
Step D) Download the sketch file from https://osoyoo.com/driver/wifi-iot/lesson7/wifi-lesson7.zip.
char ssid[] = "******"; // your network SSID (name) char pass[] = "******"; // your network password
Please replace the ****** with your correct Wi-Fi SSID and password. Otherwise, your project cannot connect to the Internet.
Step E) After changing the above lines, load the sketch into the IDE.
Open your Serial Monitor, and you can see your router will assign an IP address to your IDE as follows:
Step F) Open your OSOYOO IOT UDP Robot APP. If you haven’t installed this APP, please read the APP installation section in Lesson 2.
Step G) Make sure your cellphone is on the same local network as the Arduino. Open the APP, click Settings, enter your Arduino IP address from Step E and port 8888 in settings.
Now press any key on your APP, and your screen will display something like the following picture.
DownLoad Url osoyoo.com