Close
0%
0%

ESP8266 WiFi weather web app using Arduino IDE

the new ESP8266 has arduino boot-loader so it makes possible to program arduino code directly into ESP8266.

Similar projects worth following
with this new wifi module you dont need any arduino board you can do everything directly with it. this module doesnt have any usb port on it so there are two ways to solve this. either you can buy a usb to serial cable or you can make your own adapter with a USB to serial converter and you can plug this ESP8266 directly into it. ESP8266 programmer smiler to mine can be found over here.
https://www.controleverything.com/products

you will need following hardware 1. ESP8266 2. Temp Humidity sensor HIH6130 3. ESP8266 USB programmer 4. Connecting cable in this project i am using plug and play hardware so all you will is to plug the I2C cable into the sensor and the ESP8266 adapter. for I2C i am using pin 2,14. using the USB programmer is really easy to program ESP8266. to connect the sensor all you need is to plug the sensor into the I2C adapter. i prefer to use these adapters because they make so easy to connect hardware, without these plug and play adapter there is a lot of risk of making wrong connection. A bad wiring can kill your wifi as well as your sensor. HIH6130 is a relative humidity and temp sensor from honeywell. Accuracy ±4.0% Relative Humidity Temperature Compensated Honeywell HumidIcon Digital Humidity/Temperature Sensors are digital output-type relative humidity and temperature sensors combined in the same package. These sensors provide an accuracy level of ±4% RH. With industry-leading long-term stability, true temperature-compensated digital I2C, Industry-leading reliability, Energy efficiency and Ultra-small package size and options. Other accuracies which are available: ±1.7% RH (HIH9000 Series), ±2.0% RH (HIH8000 Series), ±3.0% RH (HIH7000 Series), and ±4.0% RH (HIH6100 Series). this ESP8266 can be programmed using the arduino ide. make sure you install ESP8266 libraries. to install libraries please follow these instructions. once you install the libraries select the ESP8266 board and select the port and upload the code. I dont have much exp with html. so i just wrote a simple example app that how you can display your sensor data from ESP8266 to a webpage. this code will read the temp & humidity using the sensor HIH6130 and will display the data on a local webpage. reading sensor data is really easy. please check this code for reading temp and humidity.

HIH6130.ino

ESP8266 webapp arduino code

ino - 3.05 kB - 06/01/2016 at 16:59

Download

ESP8826_HIH6130_2 - Copy.jpg

JPEG Image - 61.74 kB - 06/01/2016 at 16:58

Preview

ESP8826_HIH6130 - Copy.jpg

JPEG Image - 58.02 kB - 06/01/2016 at 16:58

Preview

ESP8826_HIH6130_I2C_WEBAPP.jpg

JPEG Image - 12.42 kB - 06/01/2016 at 16:58

Preview

ESP8826_HIH6130_I2C - Copy.jpg

JPEG Image - 46.45 kB - 06/01/2016 at 16:58

Preview

View all 11 files

  • 1
    Step 1

    using the USB programmer is really easy to program ESP8266.
    to connect the sensor all you need is to plug the sensor into the I2C adapter. i prefer to use these adapters because they make so easy to connect hardware, without these plug and play adapter there is a lot of risk of making wrong connection. A bad wiring can kill your wifi as well as your sensor.

  • 2
    Step 2

    to show the sensor o/p on a webpage i wrote a very basic script which will read the sensor data and will display in a browser.

  • 3
    Step 3

    I dont have much exp with html. so i just wrote a simple example app that how you can display your sensor data from ESP8266 to a webpage.

    this code will read the temp & humidity using the sensor HIH6130 and will display the data on a local webpage.

    reading sensor data is really easy. please check this code for reading temp and humidity.

View all 4 instructions

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates