Authorized Online Retailers:
Buy from US | Buy from UK | Buy from DE | Buy from IT | Buy from FR | Buy from ES | Buy from JP |
Authorized Online Retailers:
In Lesson 3, we learned how to read remote Photoresistor sensor data to your browser. As farmer or agriculture scientist, in addition to get the brightness data of your greenhouse, you also need to know the temperature/humidity of your plant field.
In this lesson, we will use a DHT 11 sensor to read remote environment temperature and humidity data through browser.
Parts | Quantity |
OSOYOO Basic board | 1 |
Ethernet shield W5100 | 1 |
USB cable | 1 |
DHT11 | 1 |
200 ohm Resistor | 1 |
Jumper wires | several |
Bread board | 1 |
W5100 | DHT11 |
5V | VCC |
GND | GND |
D2 | DATA via 200 ohm resistor |
Step A) If you have DHT11 library, please skip this step. If you have not installed DHT11 library, please download the zip file from https://osoyoo.com/driver/DHT.zip , then in your IDE ->Sketch->Include Library->Add .ZIP Library and select the DHT.zip file you just downloaded, and upload it to IDE.
Step B) Download sample code from https://osoyoo.com/driver/ethernet_iot/lesson4/w5100-lesson4.zip, unzip the file and double click the w5100-lesson4.ino file, load the sketch into IDE.
Open your Serial Monitor, you can see your router will assign an IP address to your mainboard as following:
In above example, 10.0.0.45 is the IP address of my mainboard .
Now use another computer or your cell phone’s browser to visit url : http://10.0.0.45
Your browser will show following result:
DownLoad Url osoyoo.com
You must be logged in to post a comment.
I’ve got the error: “‘dht’ does not name a type”, when compyling the code for lesson 4. The sketch stops in the begining, at line…. dht DHT;
Any hint? the library DHT zip is included
(luis)
I believe the DHL library is wrong. Please go to your Arduino folder, then go to Library sub folder and then remove DHT folder.
Then download a new DHT.zip library file from https://osoyoo.com/driver/smarthome/DHT.zip , then install DHT.zip library into your Arduino again. It will fix your problem.
Hi.
I am having a problem. Please advise.
I get the message:
[[WiFiEsp] Initializing ESP module
[WiFiEsp] Initilization successful – 1.5.4
Attempting to connect to WPA SSID: NETGEAR00
[WiFiEsp] Failed connecting to NETGEAR00