Doh !!!
I obviously had spent too long looking at this screen...... that's obvious now you've pointed that out... All working now
Thanks Richard
Doh !!!
I obviously had spent too long looking at this screen...... that's obvious now you've pointed that out... All working now
Thanks Richard
I hope your screen isn't green like your prev post , I nearly went blind trying to read your red and green sections
cheers richard
It appears even fish have something to be thankful for on Thanksgiving!
As a younger man I kept tropical varieties and had the greatest joy from watching their antics. Reading through your code I imagine a very cool arrangement for lighting that simulates a cycle much more natural than my own habit of turning off the lights at bed time! I can hardly wait for version "2" of your software that incorporates the calendar for seasonal adjustments of daylight hours. Perhaps you think this will not happen, but I think it will - sometime. I recall that keeping fish compelled me always to "futz" with this and improve on that to make their environment more natural and realistic; I think your project shows you are the same? In fact, have you not also thought of the sensors that measure Ph and the devices (Peltier?) that might control heat and cool? Then there is dissolved oxygen, clarity, water level, feeding...
Congratulations on both the completed project and mastering the skills... I find nothing more satisfying than creation by my own hand; perhaps you are the same in this too?
Another option, depending on real natural light available, is to have the pic learn the
real daylight cycle so you never have to set the clock.
This is what some solar controllers with auto night light output do to figure out when
to turn night lights on and off.
They are designed to use on remote toilet blocks and such, and would not be subject
to getting thrown off too much by the home lights being turned on and off.
I wrote a program for 18F4620 that reads time and date from DS1370 and then calculates sun position for users latitude, see Get_Path:
Code = http://www.harbornet.com/sunflower/PCB.pbp
Schematic = http://www.harbornet.com/sunflower/PCB.jpg
Time = number of minutes since midnight.
Bookmarks