官术网_书友最值得收藏!

Hardware and software requirements

For this project, you will need the following hardware:

  • Of course you need an ESP8266 chip. You can, for example, use an Olimex ESP8266 module.
  • You will also need a temperature sensor. I used a DHT11 sensor, which is very easy to use and will allow us to measure the ambient temperature and humidity.
  • You will also need a 3.3V FTDI USB module to program the ESP8266 chip. Finally, you will also need some jumper wires and a breadboard.

This is a list of all the components that will be used in this chapter, along with the sources where you can purchase them:

On the software side, you will need:

Now let's follow this procedure to add the ESP8266 board to the Arduino IDE:

  1. Start the Arduino IDE and open the Preferences window.
  2. Enter the following URL into the Additional Board Manager URLs field:

    http://arduino.esp8266.com/package_esp8266com_index.json

  3. Open Boards Manager by navigating to the Tools | Board menu, and install the esp8266 platform.
  4. You will also need the DHT library, which you can get from:

    https://github.com/adafruit/DHT-sensor-library

To install an Arduino library:

  1. First, download the library from the GitHub repository.
  2. Then, go into the Arduino IDE, and navigate to Sketch | Include Library | Add .ZIP Library.
  3. Finally, select the file that you just downloaded.
主站蜘蛛池模板: 德清县| 深水埗区| 论坛| 同心县| 孟连| 泾阳县| 聂荣县| 平凉市| 惠水县| 梁山县| 建湖县| 永靖县| 蒲江县| 临沭县| 徐水县| 巴塘县| 巩义市| 盐池县| 拜泉县| 临沧市| 玉树县| 儋州市| 运城市| 枣阳市| 乌鲁木齐市| 罗城| 临泉县| 宜州市| 上林县| 罗江县| 梧州市| 宾阳县| 长垣县| 上饶县| 西林县| 阳城县| 东山县| 大冶市| 潮安县| 光山县| 巴彦淖尔市|