Code for an Arduino-based PID temperature controller for high power LEDs.
This code is designed to control the temperature of 4 high power LEDs mounted on thermoelectric coolers via PID loops. LED temperatures are measured with a K-type termocouple and MAX31850 breakouts. It requires the PIDLibrary, OneWire, and DallasTemp.
The TECs are connected to Arduino pins 6, 9, 10, and 11.
A general block diagram of the system is below.