airpump/esp32_air_pump/esp32_air_pump.ino

57 lines
2.2 KiB
Arduino
Raw Normal View History

2022-01-09 08:25:28 +00:00
/* CS1237充气气泵控制板控制程序
* DSH700CS1237
* 1=9.8066135802 P=ρghρ=1000kg/m^3g=9.8m/s^2=9.8N/kg
* 1(bar)=100(kPa)=1000(hPa)=1000(mbar)=100000
* 1psi=6.895kPa=0.0689476bar =0.006895MPa
1(atm)=14.696/2(psi)
1bar=100kPa
1/2 dyn/cm2=0.1Pa
1Torr=133.322Pa
1mmHg=133.322Pa
1mmH2O=9.80665Pa
1=98.0665kPa
1kPa=0.145/2psi=0.0102/2kgf/cm2=0.0098atm
1/2psi=6.895kPa=0.0703/2kgf/cm2 =0.0689bar=0.068atm
1atm=101.325kPa=14.696/2psi=1.0133bar=760mmHg
*
* 4led4
*
* 927384 0.3
* 1026141 0.4
* 1305485 0.6
* 2080369 1.2
* 2224276 1.29
* 2539945 1.5
* 3113765 1.9
* 3188414 2
* 3234954 2.04
* 3375692 2.15
* 3762277 2.43
* 3839579 2.5
* 3902948 2.53
* 4273014 2.8
* 4419500 2.95
* 4480105 2.97
* 4580560 3.05
* 4966855 3.3
* 5237358 3.5
* 5691781 3.9
* 5797899 4.0
* 5890198 4.03
* 6124920 4.22
* 7168366 5.1
* 7701561 5.4
* 8276554 5.85
* ESP32 16; 17;
* ESP8266 D1 = GPIO5; D2 = GPIO4;
*
* arduino https://zhiyou.smzdm.com/member/4580489080/
* 6bar
* 1psi=6.895kPa=0.0689476bar,
*
* CS1237[] - EDA https://oshwhub.com/muyan2020/cs1237-chong-qi-qi-beng
*
*/
#include "esp32_air_pump.h"