Hello everyone,
I'd start by saying that I'm very amazed with community here, very helpful indeed. I am only sharing ideas here, and getting contributions to make my project more efficient.
The incubator I'll be building will host 19,200 eggs. This might sound like a lot, but my family already owns a business and has the machines going. The only problem is that they rely on boards made in 1980. which are now rusty and very high maintenance, not to mention they are not debug-able and are very annoying to fix (i.e testing about 20 shift registers, or something like that.)
enough with that long story...bottom line, machines available, I'm only replacing the logic inside them to something more powerful and easier to maintain, also cheaper(i.e 1980 models discontinued or very very expensive spare parts).
parameters for hatching eggs :
Temprature*C, 39/week1&2, 37/weeks3&4 correction : two heasting units and one cooler
Humidity, 60RH w1&2, 70RH w3&4 correction : one humidifier and one condenser
Turning, every 2 hours solution : special tray turning motors
Ventilation, our machines allow air exchange at preset intervals, new machines use co2 sensors to control that.
Important events:
Initial start --> there is a special starting routine (like oven preheat), that's different from the main program.
Door Open/close --> lights are turned on , LED indicator, pulsator fan is stopped(not to hurt the workers appraoching).
I am still in the flow chart phase, The reverse engineering phase is incomplete. so here's how i plan to make this work:
- Going to use an RTC and a function to import the parameters from a table, that's for automatically fixing parameters.
- might have to make some work arounds in the correcting function to prevent over-correction.
- still have to find the acceptable deviations and when to start correcting them. (in temp. its 0.3*F)
- going to use 6 interrupts: Temprature, Humidity, Co2, Open door, turner (time since last turn)
questions:
-can 2 interrupts work at the same time? like if 2 values deviate at the same time, is it possible to correct them at the same time?
-to use interrupts, do i have to use analog sensors?
-any brilliant ideas?
I am still learning to code BTW, I hope i provided people seeking to do the same thing with useful information. feel free to ask anything, I'm more than willing to help.