Return to indexI designed an awning control for a friend of my. The processor used in this project is the Atmel AT89S8252 with 8kb of flash memory. I used this processor because it has a serial ISP interface which makes it easier to program without an expensive programmer. But any other MPU based on 80x32 with flash memory will work.
The program that controls the awning remembers how far the awning is in its out position, checks if the sun is still "on" and sences how "dry" the air is. With "no sun" or "rain" detected the awning moves to its "in" position and the MPU doesn't leave motor on any longer then nessecery.
Check out the source in uC51 Ansi-C
The source has a build in debounce filter for the up and down buttons. Check out pic debouncing for some interesting articles on vertical counters and other stuff.
I have no board design for this project. I made the circuit on a piece of experimental board.
Return to index
| |||||
| |||||