I always wanted to put together a project with Arduino.

What it does

It measures the ambient temperature (analog read), prints the calculated temperature in degrees Celsius to an LCD screen and to the serial port. A Python script reads the serial port output and writes each value with a date and time into a text file.

How I built it

I used an Arduino 101, Grove Base Shield, Grove Temperature Sensor, and Grove LCD RGB Backlight Screen. I used Python to read the serial port output.

Some of the code was borrowed from the sample code provided in the sites below:
LCD RGB Backlight Page
LCD RGB Backlight Github Repo
Temperature Sensor Page
Arduino Forum Post
Arduino Data Logging

Challenges I ran into

I initially got incorrect temperature calculations since the sensor was connected to 5V instead of 3.3V. I adjusted the calculation for the 5V input since the LCD screen needed 5V. I also had trouble reading the serial port with the Python script since the COM port can only be used by one thing at a time. I later figured out that I didn't need to have the Arduino IDE's serial monitor open while running the script.

Accomplishments that I'm proud of

This is my first hardware hack at a hackathon, as well as my first Arduino project.

What I learned

I learned the basics of programming an Arduino and got a little more exposure to Python!

What's next for Arduino Temperature Recorder

This could be extended to applications where you want to monitor the temperature, such as in a house. If you are measuring temperature where it can vary, and you have a sizable amount of data, you can use some sort of data analytics application to visualize the changes over time.

Built With

Share this project: