Pi Temperature & Humidity Thermometer

Image of the thermometer I created for my Pi's Temperature & Humidity Sensor

What We Did

  This project marked one of the initial assignments in my IoT course at BW and served as an excellent introduction to working with a Raspberry Pi. In this project, my responsibility was to develop a web dashboard that would present real-time temperature and humidity data that would be read from a temperature and humidity sensor connected to a Raspberry Pi. Additionally, I incorporated a servo mechanism to create a physical thermometer that visually displayed the current temperature. To enhance the user experience, I integrated a buzzer that emitted a sound every 10 seconds to signal the retrieval of a new reading. Throughout the project, I drew inspiration from various examples and concepts covered in class, and had used my personal 3D printer to create the thermometer component.

Creating the Temp & Humidity Sensor

  One of the main points of this project was for us to demonstrate our ability to work with program the sensors on our Raspberry Pi to provide current information on the temperature and humidity of the room the Pi was in. As with all other projects done in this class, this was assigned to us as a way of building up to our final project, which would need to encompass everything we did throughout the course. This project would then be used in a future project where we were tasked with creating a web dashboard which could control servos and lights as well as display information read from the sensors. Inspiration from my web dashboard can be seen in many of the other web pages I have created, such as this online portfolio. For this project in particular, I took a temperature and humidity sensor and connected it to my Raspberry Pi. On my pi, I wrote a program in Python which would loop forever and read the temperature of the room every ten seconds. Whenever it got a reading, it would rotate the connect servo the appropriate distance so that it would point to the current temperature and would send a signal to the buzzer to play a tone for about a second. All-in-all, this was a simple and easy project, but served as a great starting point for what was to come and also gave me a good excuse to use my 3D printer.

Conclusion

While this may have been one of the smaller projects I had, it still proved to be a very useful experience as it would later help me when working on future projects such as the Smart Mailbox I created with a classmate for our final project. I believe that this served as a great introduction to working with a Raspberry Pi and creating small devices capable of giving a user information. I certainly think I will have more projects like this in the future to further explore what I can create using a Raspberry Pi.