ThingSpeakFinal

docx

School

Lorain County Community College *

*We aren’t endorsed by this school

Course

110

Subject

Electrical Engineering

Date

Jan 9, 2024

Type

docx

Pages

10

Uploaded by SargentGullMaster1007

Report
Developed By: Alec M. 2018 ThingSpeak Temperature, Humidity, and Light Level Monitoring CYBR 222 Lorain County Community College Alec Martinak 2018
Developed By: Alec M. 2018 ThingSpeak Temperate & Humidity An aspect of the growing Iot market is in the way for remotely monitoring different sensors. One example of this would be to monitor and log data from a Temperature & Humidity sensor, in this case a DHT-11. ThingSpeak is a website that can facilitate the remote monitoring of sensors, which in turn can be used to create graphs as a way of interpreting the data. Objective: Introduce the concept of remote monitoring in the context of Iot devices. Connecting Sensors to the Pi as a means of gathering data. Using Free services available to gather data from remote sensors via API calls, and then using the services for analyzing and interpreting the data. Operation: A DHT-11 (Digital Humidity & Temperature sensor) and Photoresistor will be connected to the Raspberry Pi. These sensors will record the Temperature, Humidity, and Light Level every x amount of time. This data will be called into the ThingSpeak service via API calls, where the collected data will be used for creating graphs to monitor Temperature, Humidity and Light level. Alec Martinak 2018
Developed By: Alec M. 2018 Part I: Setting up Pi 1) Install Raspbian OS and set-up Raspberry Pi (i.e. changing default passwords, changing time zone/locale settings, etc.) 2) Update and Install the updates for your Pi with the following commands: sudo apt-get update sudo apt-get upgrade -y Part II: Setting up ThingSpeak Account 1) Open up a browser and navigate to https://thingspeak.com Alec Martinak 2018
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Developed By: Alec M. 2018 2) Create an account 3) Create a new Channel Alec Martinak 2018
Developed By: Alec M. 2018 4) Select the tab that says “API” and Copy down your API key. Only copy down the “Write API Key” Part III: Setting up DHT-11 Sensor and Photoresistor 1) Find the DHT-11 sensor and the photosensor included in the kits provided to you DHT-11 Photoresistor Alec Martinak 2018
Developed By: Alec M. 2018 2) Connect the sensors to the Pi as shown below, but replacing the 1uF Capacitor with a 10K Ohm resistor Alec Martinak 2018
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Developed By: Alec M. 2018 3) Copy the following code Alec Martinak 2018
Developed By: Alec M. 2018 4) Edit the code by adding in your own API code you copied down earlier 5) Save the file as “ThingSpeakCode.py” Alec Martinak 2018
Developed By: Alec M. 2018 Part IV: Testing the Set-up 1) Run the code we just edited, by running the following command: python ThingSpeakCode.py 2) In a browser Window go back to your Thing Speak Account, navigate to the channel created earlier and select the “Private view” tab. 3) These charts should be updated every time an API call is made from the Pi Alec Martinak 2018
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Developed By: Alec M. 2018 References https://www.instructables.com/id/Build-Your-First-IOT-with-a-Raspberry-Pi-DHT11-sen/ https://thingspeak.com/ https://www.hackster.io/adamgarbo/raspberry-pi-2-iot-thingspeak-dht22-sensor-b208f4 Alec Martinak 2018