In the introductory part of the story, we briefly talked about the general development of the system. In this part, a more detailed story about the measuring technique, which I had a chance to get acquainted with during the development of the project, electronics and, of course, about falling into the mud with your face.
Water level
First there was a discrete sensor made of two stainless steel plates.
( , ) . , . â , . ( , , - ) , , . .
: HY-SRF05, HC-SR04, JSN-SR04T, US-025. ( ) ( ) HC-SR04.
, , . , , , , , , . , , . , , , , , . , . , ( ), .
, , . , , , , . , , : , , , . , . . , , ( ) , . . .
. â . . â .
, â , , . , . .
? , â , . , , . â - . , , . - â , , ( , ), , . , , ( TO1), , .
â - . , , . â TO2. , , . , , . , , . .
- , , ? , , , . , , .
, . , , PT100. DHT11/22. DS18B20. . . DHT , (, , ). DHT . DS18B20 , . -, , DS18B20, . , EC , AD5934, EC.
DS18B20 10 .
EC ( TDS, )
:
( , JLCPCB , ) , . , , . , . -, - .
2. TL074, , , . , , .
, . , , . 100%. , . ...
4. AD5934 EVAL-0349, Analog.
( , , ). â (: 25ΞS 2500ΞS, : 0.2mS 200mS) 0.5% 1% ( . , 3%) . , AD5934, , (, ). CN0349 . circuit note, .
, : ADG715, EC . AD5934, EC AD8606. ADuM5000 ADuM1250. , . , , . , , aliexpress, -, . 1.0.
, , , .
, , . . BSP . - ( ). , , -, .
5 . , , , , 0.5 4.5. STM32 3.3, â .
pH, aliexpress.
, -
(LMP91200 Texas Instruments), pH.
, .
.
, , LMP91200 , â ADS1110. STM32 I2C, ADuM1250 () 1 â B0505S-1W ().
, , EVAL-0349 ADuM5000, â ( EMI considerations), .
RTC
, , . , RTC, STM32 . blue-pill (, ), , (PC14, PC15), , . , , blue-pill . â . â . (PC14, PC15), â . . , , , ... â STM32. , , . RTC . , â DS3221.
,
. , . , . , , .
, , .
2
MG811. , , . , . , MG811 , . , , , . MG811 , ( ) . , , , 6. , â 3.3 5 , . , , . , , . , . , , , pH .
, , NDIR. . , , , , . , , MH-Z14A. , . , ( ).
, .
, , .
Watchdog
STM32 IWDG (Independent WatchDoG). , . , ( , ), , . , . , . , . MAX6369. , â WDO RESET , WDI . , WDI, , . WDI , WDO, ( ) . 555 ( ), , .
. , , , ( , , ...). , ( . ) . , , , Raspberry Pi.
, MCP23017, 16 , ( L6205 / , ), . , P- L6205. , STM32 . / , ( ), , , , , . , ( ). , . , , () ( ) . , MOSFET . /, , . (, ), ( P-, , 1) ( , , ).
, . , . , , , , , . . . , . - . , , 74HC595. , , , . , . , , . - . , , - . DI HALT, - , . - . .
, , . , . . , , , - , . .
Raspberry Pi . , . . . : . , Raspberry Pi. , , , . . , , , .
, . . . , , , /. , . . , . , , -, .
. . , . - , , . . , . , , , , .
,
, , , , , .
. , . , , , 10-15. . , . GX16 (, 10, ).
( , , , - ) . , . . .
. . . , , .
Another case is related to acid. There was nitric acid, about 35% concentration, connected to the dispenser. On the KDPV, from the first part, you can see how the standard light cream hoses of the dispensers pass through the black connectors into brown (sometimes black) PVC. This was the case. As it turned out (let the chemists forgive me), this absolutely should not be done. The PVC hardened in a matter of days, the connectors turned into snot-powder, the system leaked (it's good that emergency drainage was available). Now only the hoses recommended by the manufacturer for these acids, with the removal / replacement procedure. And dilute acids in water.