Good morning!Hello,
I've dealt with long term running projects using microconstrollers. The key is to use one that allows nano power operation and only sense the environment once every so often, not every millisecond or even every second. The longer you can go without a new reading the longer the battery lasts. One i did was a refrigerator monitor that had AA batteries that would last for 2 years. That's a long time for batteries to last in an electronic device. One of the main points is that a new reading was only needed about once every 10 minutes (or something like that). That meant that the MCU would only have to wake up for maybe 1ms every 10 minutes to take a reading, and the rest of the time it could stay in sleep mode where the power consumption was in the nano watts. Since power is proportional to duty cycle, if you make a measurement that takes 1 millisecond every other millisecond you only use 50 percent power, so if you measure for 1 millisecond every second you only use 1/1000 of the power, and of course 1 millisecond every 100 seconds you only use 1/100000 of the power, etc., etc. There is a limit to that of course but that's the basic idea.
Still i question if 2 years would be enough because this would be best for expensive wines that are relatively old such as 10 to 25 years or more. That means the device has to be ultra reliable as well as have some sort of constant input power or periodic charging to replenish the battery.
This kind of project also falls under the category of security and that's probably the toughest category
One of the really important points i think is that the way a wine shows a problem is through the chemical changes that it went through over the years not necessarily what happened to the bottle. I would think a bottle could be sitting on a wine rack for 20 years and then the wine dumped out and replaced with new wine. To ensure that the measurement traveled with that particular liquid for the entire time would probably be impossible to guarantee as there are still too many ways to get around the system. Also, since the best test is to taste the wine i would think that a chemical measurement of some kind would be the ultimate test that would tell all about the past treatment of the wine itself. If you could do that it would be really great, provided that somebody hasnt done that already.
As a point of purely electrical design i guess it would be an interesting project, but if you could make it a practical one as well, you win the bigger prize
I appreciate the time that you took to respond. I have a question regarding the power consumption that you spoke of and how one can calculate it through the use of the datasheets. This temperature + humidity sensor uses 600 μA while measuring @3.3V input. If we assume that it uses 600 μA while measuring for a full second. If the device takes 0.5ms to power up and takes 4.5ms to complete a single measurement. Can we then calculate the expected current draw as follows: 600μA*(5ms/1000ms) = 3μA?
With regards to I2C, when selecting components is I2C communication speed of importance? Is there any other factors that I should be concerned over?