Figure 1 - Programmable Relay Timer project (click to enlarge)
Following AVR version, we present your with PIC version of Programmable relay timers project. We have created a demonstrational software for all of our PIC compilers and prepared a special project kit which you can use to build your own programmable relay timers under a minute. Just connect PIC-Ready1, Keypad 4x4 board with EasyPull, RTC, Relay 4 and LCD 2x16 character display with adapter and load demonstration project code and your device is ready to rock! It can control 4 separate relays.
- Using “D” key on keypad 4x4 board you can scroll through settings for each relay. You can change the ON and OFF times by positioning the cursor to the desired location and changing time values as you desire. Navigation, or moving the cursor is done using asterisk (*) for backward and sharp (#) key for forward.
- Press “C” key to display current time.
- Press “B” key to enter the mode for adjusting the current time value. Position the cursor over the desired location and change HH:MM:SS values to synchronize it with your local time. After you are done, press “B” again to save the newly set value.
Applications
Project has numerous applications. We only suggest several:
- Controlling garden sprinklers
- Turning ON/OFF home appliances (Coffee makers, toasters, TV sets, airconditioning, old washing mashines, etc.)
- Programming city or home fountains to turn on and off in the same time of the day
- Controling street lamps and home lights
We are sure that you will find much more possible applications. Don’t hesitate to send us photos of what you have built using this project kit.
Figure 2 - Programmable Relay Timers schematics (click to enlarge)
Source code of this project is provided for free, so you can modify it to suit your needs. Since PIC16F887 comes preprogrammed with free UART Bootloader, you won’t have to spend a dollar more on external programmers. You can modify the project as much as you like, and expand this basic functionality with your own implementation ideas.












