Iot Fermentation Monitor Part 3: Putting it all together
To learn more about Internet of Things, we are building a fermentation monitor to monitor the progress of homebrew beers. In this final blog I put everything from our last blogs together and start brewing!
Did you miss the first blogs in this series? Click here to read this first blog.
Putting it all together
For the final setup we used the following components and soldered it to a PCB so it could be placed on the Raspberry Pi as a shield:
- Raspberry Pi running Windows 10 IoT
- 2x DS18B20 (regular and waterproof version)
- DS2482-100 (to bridge the one-wire temperature sensors to I2C)
- SW410 NC Vibration Sensor
- 4.7K Ohm resistor
- PCB, female pin headers, connectors and some wiring.
The source could be found on my GitHub page.
After successfully letting the setup run for a couple of days in the office and let colleagues wiggle the sensor so now-and-then we were ready to start brewing. So a couple of weeks later we started brewing, filled up the fermentation container and connected the monitor and… nothing…
It turned out that during the test period there was an automated OS update installed on the Raspberry and made the app incompatible and made it impossible to start or even redeploy.
We think it has to do with the combination of a project template made in Visual Studio 2015 and the Raspberry auto update. After a lot of hours trying to fix it, we have recreated the project (in Visual Studio 2017) and copied all source files and everything started working again!
However, by then the fermentation was already over, so we don’t get a chance to test the monitor yet.
We don’t have any explanation why the app stops working since nothing changed (no new deployments were done). The only thing changed was an automatically installed update. By default, auto-update is enabled, so I advise to turn it off for ‘production’ devices.
The good news is that the beer looks good and could be tasted in a couple of weeks. Since we still must test the fermentation monitor, we have a good excuse to brew a new beer soon!