/Heater_Control_Program

This repository contains code for controlling a heater using a microcontroller. The code is written in C language and is intended to be used with a PIC 16F877 microcontroller.

Primary LanguageCMIT LicenseMIT

Heater Control Program

Description

This repository contains code for controlling a heater using a microcontroller. The code is written in C language and is intended to be used with a PIC 16F877 microcontroller.
2017

Setup

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.

Usage

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.

License

This code is released under the MIT license. See the LICENSE file for more information.