This repository includes Python code that can be run on a Raspberry PI to dispaly images from a SparkFun IR Array (MLX90640) on to a PiTFT screen.
Note: We've currently only tested this on a Pi 3 B+. We plan to test this project on a Pi Zero W in the near future.
- Raspberry Pi 3 B+ $40
- SparkFun IR Array (MLX90640) $60
- 2.2" PiTFT $25
- 3D Printed Enclosure
Our project uses the mlx90640-library. Download the above library on your Raspberry PI and run it with the following commands:
make clean
make I2C_MODE=RPI
By default, the c++ examples in this library only output to /dev/fb0
which is the HDMI frame buffer. To output to the PiTFT, you'll need to modify the /examples/lib/fb.c
, switch to /dev/fb1
and re-make the project.
Download the /python/thermal-daemon.py
file from this project on to your Raspberry PI. Optionally, download the helper .sh
files in the python folder. **IMPORTANT: Make sure to run the thermal-daemon.py
with sudo
or you will get a segmentation fault.
Fork and clone this repository then start it with the following commands:
npm install
npm run server
npm run client
NOTE: You'll need to update the thermal-daemon.py
to point to your computers IP address or to the location you're hosting the web server.
- Set up component
- Add the component on app.js
- GET axios request to display images on DOM
- Append the images 3 per row with timestamps under the pics
- Searchable by date/time
- Add to the app.js with props for GET axios request