FrankVolkel
New Member
Hi. i'm very new to pic programming, and i'm trying to construct a fish light with leds for my tank. the concept is simple: PWM drives 3 rails of LEDs, and it changes color across a period of an hour at predetermined hours of the day, just to simulate light changes. Daylight is white and moonlight is blue + red.
the circuit works great, however the programming aint going as smoothly as i hope it is. i'm using a PIC16F628A with JAL. the reason i used JAL is because i'm new to pic programming. i'm using Toon Beerten's PWM library for controlling the LEDs and is using the internal oscillator.
how do i make sure my program loops nicely every 24 hours, and how do i insert long delays (11 hours to be exact) while keeping the LEDs lit?
my present code is a modified version of Toon Beerten's LED mood light, and so is the circuit. i'll attach my codes with the next post, as i'm away from my desktop right now. help is very much appreciated
the circuit works great, however the programming aint going as smoothly as i hope it is. i'm using a PIC16F628A with JAL. the reason i used JAL is because i'm new to pic programming. i'm using Toon Beerten's PWM library for controlling the LEDs and is using the internal oscillator.
how do i make sure my program loops nicely every 24 hours, and how do i insert long delays (11 hours to be exact) while keeping the LEDs lit?
my present code is a modified version of Toon Beerten's LED mood light, and so is the circuit. i'll attach my codes with the next post, as i'm away from my desktop right now. help is very much appreciated