Home Weather Display

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 RGB LCD 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.  

You 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.

Weather Station in the Classroom

Mrs. Frances Hickey, a teacher at Citrus Park Elementary School in Tampa, Florida used the GrovePi Weather station to teach her 5th graders about weather and technology together!

Learn more about GrovePi

What you'll need for this project:

  1. Raspberry Pi
  2. GrovePi
  3. Grove DHT sensor
  4. Grove RGB LCD display
  5. Grove Connection wires
  6. SD card and WiFi module

Connecting the Raspberry Pi temperature sensor

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

Running the Program

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

cd ~/Desktop/GrovePi/Projects/Home_Weather_Display

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

sudo python Home_Weather_Display.py

The RGB LCD display will start showing the live temperature data and humidity data from the DHT sensor

How to get the code for this project:

The easiest way to get the code is to update your Dexter Industries software through the “DI Software Update”. When you do this, all of the code files for new projects like this will show up!

Downloadable File:

If you are not using the Dexter Industries custom software, Raspbian for Robots, and you still want to download this file, you can download it here.

Github file: link

Need help?

Have a question or a problem?  Post it on the forums and we’ll help you out.