2017 To run this code, you need to have the following components:
- PIC 16F877 microcontroller
- Heater
- Temperature sensor
- Computer with a serial port
The temperature sensor should be connected to the analog pin 2 (AN2) of the microcontroller. The heater should be connected to the pin E2 of the microcontroller.
The code reads the temperature from the sensor and sends it to the computer using the serial port. If the temperature is lower than a predefined threshold (temp), the heater is turned on, and if it is higher, the heater is turned off.To modify the threshold temperature, change the value of the variable "temp" in the code.
This code is released under the MIT license. See the LICENSE file for more information.