On Sun, May 22, 2005 at 11:16:11AM -0600, James wrote: > Ok I hope I posted this right? > > My question is this. I just started programming pics. I got the blinking > Led going and setting ports to output and input. But now I am wondering > if it would be possible using an lcd and some input to make an alarm > clock to make a light timer of sorts. Of course. > Turn Leds on at 8AM, off at 8PM for example. I have a sunrise/sunset outdoor light controller that does this. The code can be found here: http://www.finitesite.com/d3jsys/clock.asm I don't have a schematic unfortunately. > I would like to be able to change the on and off times via > the pic chip itself. Mine sets the time using what I call a pot/switch interface. A potentiometer is used to send a variable voltage to the PIC's ADC. A switch is then used to select the value. I used a cheap light dimmer something like this: http://www.rpelectronics.com/English/Content/Items/SDR500.asp I ripped out everything but the integrated pot/switch. My debounce delay isn't long enough, as it bounces sometimes. > Utilizing leds or LCD. Mine is LED display based. I used it because I had one handy. An LCD is easily doable. Part number LCD1029 at bgmicro.com will easily handle the job with a 24x2 display and cost only $4 each. Backlit too (inverter sold separately). > Something like that. If > someone could help or point me to some code to go thru that would be > great. Have at it. Google, the piclist, and the piclist archives are your friend. BAJ -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist