PDA

View Full Version : PIC-Powered Timer Project



T.Jackson
- 10th May 2007, 15:03
<img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=1618&stc=1&d=1178805669" align="right">

Timers make great electronic projects. Especially this one. Now before you say that I can go down to my local hardware store and pick one up that has an LCD and every possible conceivable feature for less than the price of my daily bus ticket - simply put, you just can't go and buy anything quite like this. It's entirely unique in all regards. The timer uses an 8 WAY dip switch bank to accept user-defined intervals in seconds, minutes & hours. This is all done in BCD. Binary Coded Decimal. So you'll need to brush up on your binary counting to be able to drive it. At a glance, directly above the dip switch bank is a bar graph LED display. This display is driven by the two push buttons adjacent to the dip switches. The menu is quite self-explanatory, so I'll just go as far as to say that, toggling the menu button navigates you through the menu while pressing enter will load the current menu item with the data that's set on the dip switches. So to begin with, when you first power it up, the event number LED on the display will be lit. Here you're required to select an event from 1 to 8 on the dip switches, after doing so it's now just a matter of pressing enter. Now, pressing the menu button after this will navigate you through the display to show the seconds LED on. Same as before with the event number you're required to select a value on the switches, this time between 0 to 255 followed by hitting enter. It's a snack, so I'll leave it at that, except to say that there would be literally countless practical applications for a timer such as this. Just to name a few; irrigation, security lighting, general purpose automotive, the list is huge! Especially when you consider that it has the ability to operate cyclically with up to 8 events. One last thing before we move on to the schematic - the events are executed sequentially, starting from the duration of the relay being switched on to the amount of time that it's switched off. And yes, you guessed it, it could be configure it to oscillate. Would make a great lamp flasher too. But a word of caution, don't attempt to switch mains voltages unless you're entirely competent with working with them.

<table width="500px" align="center" border="10" cellpadding="0">
<tr>
<td>
<img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=1617&stc=1&d=1178805669">
</td>
</tr>
</table>

Trent Jackson
<hr/>

mubashir
- 10th May 2007, 19:17
HI sir
It is nice achievement.I am a biggner in pic programming.I need a 60 hz oscillator on pic.can you help me.

Darrel Taylor
- 10th May 2007, 19:29
Trent,

Your zip file has a .HEX file in it. But no source code.
<br>

T.Jackson
- 11th May 2007, 04:23
Your zip file has a .HEX file in it. But no source code.


Yeah - the source code is missing in action at the moment, I have it archived on a CD somewhere. I did this project way back, it was published in the Silicon Chip magazine in November of 2003. I retained copyright to it. Stay tuned - I might actually write some much better software for it shortly.

charudatt
- 17th May 2007, 19:18
hello Trent,

any luck finding the hero missing in action. Would love to evaluate it.

Looking forward to it.

regards.

T.Jackson
- 18th May 2007, 04:15
The hex file's in the download, so there's nothing stopping anyone from building it. This was actually my first real PIC-based project. Everything I did prior to this with PIC's was just rough experimenting on bread board.

charudatt
- 18th May 2007, 04:45
Thank you for providing the hex file in the download, surely it will not stop anyone from building it, but the source would help some one understand it.

regards