This all goes back to my 3Watt star strobe project.
http://doityourselfchristmas.com/for...pest-deterrent
The strobe itself contains it's own PIC12f629 that controls the strobe function.
My configuration is set to fire two 30ms bursts spaced 175ms apart every 1 second as long as the PIC has power.
This is tighter than anything Vixen can do and is why it has its own PIC.
The second reason is with its own PIC, it can not go into a constant on state, which would burn out the transistor and star in only a few seconds.
For the pest deterrent, The PIC16F688 switches the strobes on and off, by providing power to the PIC12f629 on the strobe which then runs its own strobe pattern.
My poor code on the PIC16f688,
turned on a port, did nothing to that port until all the timing loops had counted down to zero,
toggled the port, reset the loops, and counted down again.
What I need is a version of REN16(PIC16f722 preferred) code that will do the same
When the value from Vixen changes, the port can change, else if the port is on, it has to stay on the entire time.
Right now, when I attach LEDs to the pins, they will light, so I know I am getting output.
While my power supply measures 5.1v, the output pins measure only 4.96v
While the eye or the voltmeter may not see it,
my guess is the pin is being toggled at least 20 times per second, and the pic is constantly loosing power.
I am obviously using DC and not using dimming.
I have also not populated any of the diagnostic LEDs if that helps any.
Any help most appreciated.
Kind of in panic mode at this point.
There is a plan B, but it is not very good.
Joel



Reply With Quote

Bookmarks