Buy from US | Buy from UK | Buy from DE | Buy from IT | Buy from FR | Buy from ES | ここでご購入を! |
In Lesson 4, we learned how to read remote the DHT11 temperature/humidity sensor through browser.
In this lesson, we will use another powerful sensor called BMP180 which read pressure, temperature, sea level pressure and altitude data. We will use OSOYOO ESP8266 Wi-Fi Shield to send the data to remote browser.
OSOYOO Basic board x 1
OSOYOO ESP8266 Wi-Fi Shield x 1
BMP180 sensor Module x 1
USB cable x 1
Bread board x 1
Jumper wires several
First, please insert the ESP8266 Wi-Fi Shield into your mainboard,
OSOYOO Basic Board | BMP180 sensor module |
A4 | SDA |
A5 | SCL |
GND | – |
3.3V | + |
Step A)Install library: (if you have installed Adafruit BMP085 library, please skit this step)
Download the library from https://osoyoo.com/wp-content/uploads/2018/05/Adafruit_BMP085_Library.zip.
Then in your IDE ->Sketch->Include Library->Add .ZIP Library and select the adafruit_bmp085_library.zip file you just downloaded, and upload it to IDE.
Step B) Connect the OSOYOO Basic board to computer via USB cable,
Step C) Open the IDE and choose corresponding board type and port type for your project.
Step D) Download sample code from https://osoyoo.com/driver/wifi-iot/lesson5/wifi-lesson5.zip, unzip the file and double-click the wifi-lesson5.ino file,
Step F) IDE: Click file -> click Open -> choose code “wifi-lesson5”, load up the sketch onto your IDE.
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 can not connect to Internet. After change above lines, load the sketch into IDE.
Step A)Open your Serial Monitor, you can see your router will assign an IP address to your IDE as following:
Step B) Open your OSOYOO IOT UDP Robot APP , If you haven’t installed this APP, please read APP installation section in Lesson 2
Step C)Make sure your Cell phone is in the same Local Network of Arduino. Open the APP, click Settings, enter your Arduino IP address from Step F and Port to 8888 in settings:
Now press any Key of your APP, your screen will display Temperature, Altitude and Pressure like following picture:
DownLoad Url osoyoo.com