Lesson 3 Thingspeak - levizzzle/CS490 GitHub Wiki

Lesson 3: involves using problem solving skills to determine setup of devices based on previously displayed diagrams and code examples. Through this process I was able to add components to the Arduino one by one and then to add the necessary code to avoid issues. I started by adding the DHT11 and MQ145 sensors. After data was being read and printed to the serial monitor, the QAPASS LCD screen was added to display Temperature and Humidity. Next the Thingspeak channel was created and configured to facilitate all 8 readings. The ESP-01 Wifi Module was then added followed by the code required to speak to Thingspeak. This included the API key for the channel as well as credentials for a local wifi network. Upon success the data is transmitted into Thingspeak creating graphs to display change over time. To further test, hot air was blown on the sensors and a lighter was used to increase temperature and lower gas concentraions.

Components used:

  • Arduino Uno R3
  • Breadboard
  • DHT11 Temperature Sensor
  • MQ135 Gas Sensor
  • QAPASS 16x2 LCD Screen
  • ESP-01 Wifi Module
  • Thingspeak webserver

Screenshot of Code

Screenshot 1 of Thingspeak Graph

Screenshot 2 of Thingspeak Graph

Link to Youtube Video

Things Learned

Lesson 3 required a good amount of problem solving in order to combine previously learned information related to sensors and combining them together. I was fortunate to find good material involving the ESP-01 and was able to utilize Thingspeak. This helped me learn how to send data to a web server using an API key. I was able to appropriately duplicate the send message functions to display all 8 readings on Thingspeak, creating a nice display of change over time.