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.
Dependencies: mbed
flow.h
00001 #include "mbed.h" 00002 00003 AnalogIn flowadc(D10); 00004 00005 float flowVal1; 00006 float flowVal2; 00007 float Pressure; 00008 float finalflow; 00009 00010 float flow() 00011 { 00012 while(1) { 00013 00014 flowVal1=3.3*flowadc; //Logic level 3.3 00015 flowVal2 = 1.5*flowVal1; //5v 00016 Pressure =(125*flowVal2)-62.5; 00017 finalflow=(0.1989*sqrt(Pressure))+0.0284; //flow in litter per min 00018 return Pressure; 00019 } 00020 }
Generated on Wed Jul 20 2022 23:36:07 by
1.7.2