← Back to all projects

Arduino I²C Temperature Sensor

C · Hardware · Open Source

Written in C, this project connects to a temperature sensor over I²C, communicates from the Arduino to my PC over UART, and stores the readings in a database.

The data is then displayed live on a website with different graphs. The code works directly with hardware addresses and registers.

Hardware setup

Source · 6 files

README.md
# Dependencies
- Python (https://www.python.org/)
- Pandas (https://pypi.org/project/pandas/)
    - For interacting with the database
- SQLAlchemy (https://pypi.org/project/SQLAlchemy/)
    - Creating and hosting the database
- pyserial (https://pypi.org/project/pyserial/)
    - Connecting to the arduino port
- Flask (https://pypi.org/project/Flask/)
    - Web framework
- chart-studio (https://pypi.org/project/chart-studio/)
    - Creation of the charts

To get the libraries:
```
pip install pandas sqlalchemy pyserial flask chart-studio
```
← Back to all projects