Control and automate Peltier modules for thermal fatigue testing from a Raspberry Pi
- 1x Raspberry Pi device
- 6x Peltier Module
- This project was built using the TEC1-12715
For this you will need a Raspberry Pi with a working Raspbian installation. To set the Raspberry Pi up, follow the instructions here. When choosing the operating system (OS) in the Raspberry Pi imager it is highly recommended that you press on Raspberry Pi OS (Other) and select Raspberry Pi OS Lite (32-bit) or Raspberry Pi OS Lite (64-bit)
- After first boot, plug the Raspberry Pi into an HDMI-compatible monitor and connect a keyboard.
- Log in using the default username
pi
and passwordraspberry
. - Run the following commands on your Raspberry Pi to use the easy setup script:
pi@raspberrypi:~$ sudo apt update && sudo apt install -y python3 python3-pip
pi@raspberrypi:~$ curl -fsSLO https://bit.ly/tecberry-py && sudo python3 tecberry-py
- Follow the setup instructions to configure your Raspberry Pi
- You may run the containers using the following command:
pi@RaspberryPiLeader:~$ sudo docker-compose pull && sudo docker-compose up -d
- Create basic dockerfile
- Create easy setup script
- Create remote administration logic
- Create configurable GPIO logic
If you would like to contribute to the project or simply modify the code to your liking you may do so by:
- Opening this repo on Github.com and pressing Fork
- On your PC you may
git clone your/repo
and work on it, thengit push origin
. You may also edit it in the browser - Once you are satisfied with the modified code, on Github.com:
- press Settings → Secrets → Actions and create a secret titled
DOCKERHUB_TOKEN
andDOCKERHUB_USERNAME
and populate these with the values you get from hub.docker.com - press Actions → CI → Run Workflow (Enable the workflow if it isn't already enabled)
- once the workflow has finished running (usually takes ~20 mins) your Docker containers will be available on Dockerhub, you may follow the setup instructions above to set them up
- press Settings → Secrets → Actions and create a secret titled
- If you would like to contribute back to this project feel free to open a Pull Request with your modifications, we will get to it in a timely manner