Home Weather Display

In this project, we use a Grove DHT (Digital Humidity and Temperature) sensor as a Raspberry Pi temperature sensor.  This project uses a Grove OLED display, connected to the Raspberry Pi, to show the temperature and humidity.  You can use this project as designed: a simple weather station for your home.

Home Weather DisplayYou can also use this example project as a basis for your own project.  The project shows how to use a thermometer sensor with the Raspberry Pi, and how to display the data without a monitor.  You could adapt it or add more sensors for your own data-logging project with the Raspberry Pi.

This is a simple example to demonstrate how to use multiple Grove Sensors with GrovePi in your Projects. All the parts used in this project are available in the GrovePi Starter Kit.

Hardware Required

  1. Raspberry Pi
  2. GrovePi
  3. Grove DHT sensor
  4. Grove 96×96 OLED
  5. Grove Connection wires

Connecting the Raspberry Pi temperature sensor

Connect the DHT sensor to Port 7 and the OLED display to any of the I2C ports. Now power on the Raspberry Pi.

Home Weather Display Running the Program

In the Raspberry Pi terminal, change directory to GrovePi/Projects/home_temp_humi_display:

cd /GrovePi/Projects/home_temp_humi_display

In the directory, Run the home_temp_hum_display.py in example python program in root (sudo):

sudo python home_temp_hum_display.py

The OLED display will start showing the live temperature data and humidity data from the DHT sensor.

 

For more detail: Home Weather Display


About The Author

Ibrar Ayyub

I am an experienced technical writer with a Master's degree in computer science from BZU Multan University. I have written for various industries, mainly home automation and engineering. My writing style is clear and simple, and I am skilled in using infographics and diagrams. I am a great researcher and am able to present information in a well-organized and logical manner.

Follow Us:
LinkedinTwitter
Scroll to Top