Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: flow.h
- Revision:
- 2:bcf033cefa0e
- Parent:
- 1:fd5a598caa32
--- a/flow.h	Thu May 23 14:39:11 2019 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,20 +0,0 @@
-#include "mbed.h"
-
-AnalogIn flowadc(PC_4);
-
-float flowVal1;
-float flowVal2;
-float Pressure;
-float finalflow;
-
-float flow()
-{
-    while(1) {
-
-   flowVal1=3.3*flowadc; //Logic level 3.3
-          flowVal2 = 1.5*flowVal1; //5v
-          Pressure =(125*flowVal2)-62.5;
-          finalflow=(0.1989*sqrt(Pressure))+0.0284; //flow in litter per min
-          return finalflow;
-            }
-}
\ No newline at end of file