ECE497 Project - Grainbin Monitor

Team members: Thad J. Hughes

Grading Template
I'm using the following template to grade. Each slot is 10 points. 0 = Missing, 5=OK, 10=Wow!

 00 Executive Summary 00 Installation Instructions 00 User Instructions 00 Highlights 00 Theory of Operation 00 Work Breakdown 00 Future Work 00 Conclusions 00 Demo 00 Late Comments:

Score: /100

(Inline Comment)

Executive Summary
This will monitor the level on grain bins so a farmer can see how much more room there is remotely, and will also alert them (via text, phone call, or push notification to a smartphone) if overflow is imminent. It should be cost-effective (sub-$100) and portable as opposed to other solutions which are permanent installation and quite costly.

Packaging
This should end up being a unit which is POE connected (since grain bins are effectively faraday cages, Wi-Fi onboard will likely not work), dust-proof, and magnetically attached with a steel tether for retrieval.

Theory of Operation
This will use an ultrasonic or laser distance sensor (or a few of them) to measure distance from the unit to grain. From this and a known (user-specified) bin diameter, the bushels left can be approximated (with angle of repose being roughly the same as the bin's roof). Notifications could be accomplished with SMS systems, and monitoring with Blynk; other implementations also exist.

A MB7092 XL-MaxSonar-WRMA1 sensor is used, with serial (RS-232) communication. This sensor is cheap, available, weather-resistant, and measures up to 25 feet (not the full height of a grain bin- but it measures the range that is of interest).

`The baud rate is 9600, 8 bits, no parity, with one stop bit.`

This means it must be setup as: `stty -F /dev/ttyO1 cs8 -parenb -cstopb`

However this is RS232 "from 0 to Vcc", not TTL. So this isn't quite so plug-and-play, but can be easily made to work with an inverter- and it does!

The sensor is a little "wonky" but it does detect large surfaces rather well.

Work Breakdown
- Get distance sensor working - Get monitoring working - Send push notifications - Tie software together - Design casing - Put casing together

Future Work
This could also be extended to control large relays for starter motors (i.e. when the grain level gets to a certain height, shut off the auger feeding it), and grain dryers. Moisture and temperature sensing of the grain could also be done with probes or IR sensors.