Join Arduino and Edge Impulse on October 30th as we Revolutionize Industrial Control in the IIoT.

Monitoring Analog Tank Sensors at the Edge with TinyML

Old school, analog gauge
"No more inconsistent manual readings, climbing tanks, or inventory run-outs."

Continuous monitoring of liquid and gas storage tanks is critical for many industries and individuals, but the current default solution includes manual in-person tank checks that are hazardous, inefficient, and error-prone. With remote tank monitoring using cellular IoT, you can implement a modern monitoring and reporting system that is accurate, efficient, and convenient. Retrofitting legacy machines and equipment with TinyML and the IoT allows you to add intelligence to any older device that has an analog display without modifying the existing system.

Learn how to build a TinyML and cellular IoT analog tank sensor monitoring prototype for less than $300, using only 5 hardware components.

Download PDF
 
View Hackster Project
 
Get Source Code
 

Remote Tank Monitoring

IoT remote tank monitor hardware device
Brandon Satrom

Wireless IoT tank monitoring securely routes sensor data to your cloud, allowing you to check fluid levels in multiple tanks, across multiple sites in urban or rural settings. Get real-time data insights from anywhere in your custom dashboard. Identify trends and losses that help you reduce costs, improve efficiency, and expand your business. With cellular IoT, organizations can take advantage of liquid and gas tank monitoring solutions that are secure, reliable, cloud-enabled, and generate meaningful insights without taking on the troubles of connecting and staying connected to Wi-Fi. Tank monitoring with IoT devices help businesses with:

  • Regulatory Compliance - Create cloud-based reports with tank levels and environmental data to ensure that you are in compliance with local, state and federal regulations.
  • Active Monitoring - Real-time data on the status of tanks and materials in storage and transit ensures you’re operating at peak efficiency.
  • Remote Updates - Control pumps, sensors, and hosts remotely and change configurations with cloud-based Over-the-air updates and management.
  • Supply Chain Cost Reduction - Generate custom reports to track inventory, storage and usage metrics and identify trends to make your business more efficient.
  • Environmental Sustainability - Monitor leaks and spills with automated alerts, and reduce your carbon footprint with optimized delivery schedules.

The challenge for many organizations is that they have decades-old analog dials and meters monitoring their systems. They’re functional, but have relied on manual readings, until now. By using TinyML on an edge device, you can turn your analog system into a smart system. Machine learning and cellular IoT can detect the various states of the needle on a manual gauge and send that information to a custom cloud-based dashboard. Using TinyML for this application helps your business:

  • Avoid an expensive system overhaul
  • Reduce the amount of data sent to the cloud
  • Accelerate the time to send an alert
  • Consume less energy

Behind the Remote Tank Monitor

Follow this project if you’re looking to create a wireless IoT device that can pump analog sensor data to the cloud and provides reporting and alerting. The Notecard is the quickest and easiest way to add cellular connectivity to this device, and it comes with 500 MB of data usable over 10 years. You can find the complete project assembly instructions on Hackster and the full source code on GitHub.

Hackster: https://www.hackster.io/brandonsatrom/monitor-the-analog-world-with-tinyml-fd59c4

GitHub: https://github.com/bsatrom/ml-pool-tank

Cost: $276.66

Project Time: 8 hours

Lines of Code: 17

Languages: Python

IoT remote tank monitor hardware device
Brandon Satrom
Diagram showing how an IoT note on the edge gets to the Blues Notehub cloud securely and then to Twilio for alerting

The main parts of this project are:

  1. Set up an edge vision device.
  2. Build, tune, and deploy an image classification model that detects the various states of the needle on a manual gauge.
  3. Send results to the cloud.
  4. Create a route to receive text message alerts when readings fall out of normal range.

Using Cellular at the Edge to Send Inferencing Results

EdgeML classification dashboard screenshot We recommend working with Edge Impulse to streamline the ML portion of your build. Their tools help you go from training data to an optimized model in just a few hours. Using Blues Wireless, you can send your inferencing model results to a cloud app without streaming across bandwidth-hogging, privacy-skirting image data. Blues Wireless provides full-stack IoT infrastructure, with hardware, firmware, and cloud communication components, and can be built into any device:

  • Notecard: A tiny 30mm x 35mm System on a Module (SoM) with an m.2 connector, the Notecard is a cellular and GPS-enabled device-to-cloud secure data-pump that comes with 500 MB of data and 10 years of cellular for $49.
  • Notecarrier: To make integration in an existing project easier, Blues Wireless provides host boards called Notecarriers. For this project, use the Notecarrier Pi HAT and put it between the PiJuice Hat and Raspberry Pi.
  • Notehub.io: On the cloud side, the Notecard ships preconfigured to communicate with Notehub, which enables secure data flow from device-to-cloud. Notecards are assigned to a project in Notehub. Notehub can then route data from these projects to your cloud of choice or integrate with third-party services like Twilio.

Blues provides a Python SDK and it can be installed with a single pip command. Then, to add the Notecard to an existing Python app running an Edge Impulse model, you’ll do the following:

  • Initialize the Notecard and configure it for communication with the Notehub.io cloud service.
  • Send an event (called a “Note”) with the result of each inference run from the model.
  • And finally, if the result indicates that the readings are out of range, send a second alert event that will be picked up by Notehub and forwarded to Twilio.

The final steps will be getting tank level data securely pumped to your cloud with Notehub and custom text message alerts routed through Notehub and Twilio.

Applications of This Project

From companies storing or transporting liquids and chemicals for treating wastewater, to facilities with liquids or gases in short- and long-term storage, IoT tank monitors can have a positive impact across many areas of a business. There are many use cases for this type of device, including:

  • Gas stations and underground petroleum stores
  • Fuel delivery and inventory
  • Lubricants delivery and inventory
  • Oil field support
  • Specialty chemical transportations
  • Used oil and waste liquid collection
  • Back-up generators monitoring
  • Agricultural crop monitoring
  • Commercial building utilities monitoring

Ready to Discuss Your Project With Us?

Blues Wireless makes it easy to make connected devices. In the article above, you’ve seen how little effort it takes to build an initial proof-of-concept device that reports sensor data over the cellular network. In some cases, it’s best to start with one of our proof-of-concept applications, then swap out sensors or cloud apps until you get what you want. In others, it would be best to take a different tact entirely.

We can help. Our team of experts will discuss your project idea with you and help you find the shortest path to a proof-of-concept device so you can get your product or device connected to your cloud.

Frequently Asked Questions

We’re making IoT quick and easy.

Start your IoT journey with us!

Subscribe to our newsletter

Expert tips, exciting projects, and IoT insights delivered every month