Hy everybody, nice for share.
i have idea to create a simple tool, but i don't know how to create code for this tool
For specification:
Minimum system with microcontroller Atmel family, like at89s53
4 switch button in port P 1.0 - P 1.3
-button in port 1.0, i said Set
-button in port 1.1, i said increase
-button in port 1.2, i said decrease
-button in port 1.3, i said enter
i have LCD display at port P0.0 - P0.7
Rs ->P3.5
R/W ->P3.6
EN ->P3.7
i have 2 Relay at port P 2.6 and port P 2.7
-Relay in P 2.6 for control bulb
-Relay in P 2.7 for control fan
I have temperature sensor(DS1820) in port P3.0
Now, for logic:
real time temperatur check and display in LCD,
With switch button, I can set temperature.
Push set button, and choose temperatur (from 0°C - 100°c) with increase(temperatur down) or decrease (temperature up).
If temperature set, microcontroller checking temperature with sensor.
if temperature is higher as than set, Bulb is off, if temperature normal, Bulb back on.
Fan on in every 5 minutes, just 1 minutes working and off again
display in LCD
===================================
| Set : 38°c |
| Temp: °C? |
===================================
*Set is Temperature set
*Temp is real time check with sensor
anybody can give some code for this tools?
Sorry for my bad language, and thanks so much