Week Sixteen

This weeks assignments

    Application and Interface

  • Use and input/output device and make an interface for it.
  • Program the input/output device.
  • Program the interface.

Programming the input device.

I decided to use the temperature sensor that I've used a bit before. I also wanted to use python to make the interface. I had already gotten the temperature sensor to work in numerous ways before I started this assignment, but I needed to either make something from scratch or modify an existing application.

Temperature sensor!

The code basically sends the humidity as an integer, a comma, and then the temperature as an integer.

The code was made in the arduino environment.

Temperature sensor arduino code

Python code.

The code I made was modified from Niels Hello.temp.45.py. Since my C code sends two values, both the temperature and the humidity, as a single array, the python code separates them and stores them within two different integers. I managed to get as far as to take the temperature input and display it on the interface.

Python code