pivic
Newbie
- Joined
- Oct 15, 2014
- Messages
- 4
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 52
Hello,
I am trying to detect the presence of water at two different places. To do so I designed a circuit interfacing a microncontroller to the water. Two PWMs at different frequencies are generated and immersed in water. Two PWM inputs are "hanging" waiting for the level of water to rise. Note that water in both tanks can be in contact.
See image:
Using a STM32f051 I can detect PWM1 on PWM input 1 OR PWM2 on PWM input 2 but I can't detect anything useful if both PWM1 and PWM2 are in the same water at the same time.
I am looking for a good combination of frequency, duty cycle and phase to be able to read the 3 different possible states (PWM1 alone, PWM2 alone, PWM1 & 2 at the same time).
The schematic:
Fill_decctor_ctl and Leak_detector_ctl are both PWM1 and PWM2.
Fill_decctor and Leak_detectol are both PWM input 1 and PWM input 2.
Can anyone please help me to make it work?
Thanks,
Pivic
I am trying to detect the presence of water at two different places. To do so I designed a circuit interfacing a microncontroller to the water. Two PWMs at different frequencies are generated and immersed in water. Two PWM inputs are "hanging" waiting for the level of water to rise. Note that water in both tanks can be in contact.
See image:
Using a STM32f051 I can detect PWM1 on PWM input 1 OR PWM2 on PWM input 2 but I can't detect anything useful if both PWM1 and PWM2 are in the same water at the same time.
I am looking for a good combination of frequency, duty cycle and phase to be able to read the 3 different possible states (PWM1 alone, PWM2 alone, PWM1 & 2 at the same time).
The schematic:
Fill_decctor_ctl and Leak_detector_ctl are both PWM1 and PWM2.
Fill_decctor and Leak_detectol are both PWM input 1 and PWM input 2.
Can anyone please help me to make it work?
Thanks,
Pivic