When something doesn't go according to plan when you are programming, it's called a bug.
When that same things turns out to be useful, it's called a feature.
It's a handy distinction, and is used a lot in the software industry for marketing an faulty product.
When my fish hit their feed lever, the program is supposed to feed them one dose of feed, then restrict them from having any more for a set period. The thing is, my software allows them an extra feed if they haven't fed for a while. I cant figure out why, but I suspect it has something to do with the fact that there are two programs running simultaneously. Or at least pretending to. The chip actually just takes it in turns running one line from each program.
Actually there are three programs running...
1. checking everything over and over for changes in things like permission to feed.
2. checking over and over for lever presses.
3. reporting over and over how many feeds so far have been given for the day.
Now I think what is happening, is that the bit that checks for lever presses, diverts the program after a fish hits the lever to change a few things. For one thing it changes the permission for the fish to get a feed to "no".
But I think the part of the program that is checking to see if the fish are allowed to feed, sets the light on and activates the lever to allow a feed, before the bit that did the feeding can turn it off. The result is, there is a delay between giving the feed, and having the device decide it has actually done that.
If the fish were allowed to feed, say 5 times so far today, but haven't, they are allowed two feeds in a row.
That's a feature.
I invented that.
120 things in 20 years - In electronics, like aquaponics, sometimes bugs are features.
It's my intention to gain a new ability every 2 months for the next 20 years. I'd enjoy some company, some help, and some constructive criticism.
Things so far...
Animation
(5)
Aquaponics
(340)
Bread
(15)
Cheese
(16)
cooking
(49)
electronics
(57)
Epic adventurer
(20)
Escargot
(2)
Fire
(6)
Fraudster
(1)
Handmade fishing lures
(31)
Home made preserves
(11)
Making smoked foods
(11)
Mold making
(7)
Movie watcher and critic
(2)
Photography
(17)
PVC
(36)
Snail farming
(6)
Solar hot water
(26)
Solar photovoltaic panels
(7)
Stirling Engines
(11)
Thinking
(52)
Vermiculture
(1)
Wind energy
(26)
Subscribe to:
Post Comments (Atom)
Popular Posts
-
You see CHIFT PIST a lot in the aquaponics forums and it means "constant height in fish tank, pump in sump tank". And its a very g...
-
The bell siphon was a clever thing for someone to design, and as such you feel a bit of that "clever" rub off onto you when you m...
-
A "bell siphon" is a device that automates the flooding and draining of an aquaponics grow bed, even though the pump is adding wa...
-
Apparently, marron come in two varieties. Hairy and not so hairy. Cherax cainii (smooth) and Cherax tenuimanus, or Margret River marron (hai...
-
A while ago I tried to make a fish fed fish feeder design that would allow the fish to feed themselves. I think It's made. I say &q...
-
Painting lures is easier if you don't know how. I don't, so I'm already well on my way. I started by owning a printer. That ...
-
The good thing about growing things like potatoes in aquaponics is they grow like crazy. The problem with growing things like potatoes in ...
-
Wire is one of the greats. It's power lies in its ability to be made shorter and apply great tension, with the application of many small...
-
With a little practice its possible to make a screw. If you bend your wire into an eyelet, its possible to make a screw in eyelet. The use...
-
If you pump air down into a submerged tube, when the bubbles rise to the surface, by virtue of the fact that they take up some space, they c...
No comments:
Post a Comment