TVZ Mechatronics Team

Zagreb University of Applied Sciences, Professional Study in Mechatronics

Room temperature control

Write a program for mbed application board which emulates the system for temperature control in the room.

Let the potentiometer Pot1 act as a temperature sensor, Pot2 as a thermostat (sets a desired temperature) and LED1 indicates the heater state (ON or OFF). Display the data on the LCD screen, according to the following example:

Desired temperature: 22.5
Current temperature: 24.0
Heater state: OFF

Write your own solution, beggining with creation of basic objects, enabling the functionality of writing to LCD screen, and finally establishing a logic for turning the heater ON or OFF. Implement this logic in the interrupt context. Add the possibility of changing the temperature range (sensor and control), as well as the hysteresis width (the range around desired temperature).


You have completed all the exercises in the Room temperature control topic.

Return to TVZ Mechatronics Team Homepage.

All wikipages