A simple bang-bang controller on a PIC32 microcontroller.
One of the labs for my Microprocessor Based System Design class involved making a simple bang-bang controller. Our embedded system was set up to mimic the typical heater system found within a home.
The system was able to increase the heat by running current through a 1⁄4 watt resister. When the heater got above the desired range, the current to the resister would be shut off. The temperature was monitored using a thermistor connected to the resister with silly putty. The putty helped to hold heat in and keep the two components closer together. An LED was added to help monitor when the system was heating.