Skip to content

mlcloudsec/SFR-device

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is this app for?

It's a service meant to be run in a raspberry pi (or elsewhere) and that simulates pressure measurements as if it were connected to real pressure sensors like this one. The implementation is decoupled enough to allow an easy replacement of the simulated values by actual values coming from sensors.

It also takes into consideration the real life need for automatic on-boarding procedures for commercial IoT solutions which are satisfied by the SFR-lambda-data-access-provisioning application

How are those pressure values "simulated"?

Air flow across an HVAC Air Filter follows the Bernoulli's principle:

"...an increase in the speed of a fluid occurs simultaneously with a decrease in pressure or a decrease in the fluid's potential energy..."

The equation that derives from this principle and reasonable assumptions, are the basis for the simulated values. Details about the implementation of the Bernoulli's equation can be found in the Bernoullis class file

The simulated values also take into consideration the progressive, delayed, non linear and asymptotic clogging of an HVAC Air Filter under normal conditions

What do I need to run this?

  • Node.JS

How do I start "collecting" data samples?:

npm install --production

Note: You are going to need now the SFRApiBaseURL variable that was produced during the deployment of the SFR-lambda-data-access-provisioning application. I would look like this:

https://xxxx.execute-api.{your_region}.amazonaws.com/dev

Simulating an HVAC Air Filter clogging progressively (it would reach the critic point in a couple minutes so we can get the alert fast):

SFRApiBaseURL={SFRApiBaseURL} npm run NormalWear 

Simulating an HVAC Air Filter with a drastic and sudden pressure drop:

SFRApiBaseURL={SFRApiBaseURL} npm run DrasticPressureDrop

Simulating a broken or non functional HVAC Air Filter:

SFRApiBaseURL={SFRApiBaseURL} npm run NoAirFilter

About

AWS IoT Challenge 2017 - SFR Device

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published