logo elektroda
logo elektroda
X
logo elektroda

YF-B10 water flow sensor - simple rectangular waveform detector

ramzesq 3138 31
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 20240080
    ramzesq
    Level 9  
    Hi All:) .
    I have purchased a flow sensor for hot water detection in the shower (YF-B10), to trigger the air extractor when bathing. Unfortunately, I can't find any sensible finished PCB for detecting the TTL rectangular waveform from the Hola sensor. There are circuits on Arduino, but here it's a simple "is" or "isn't" signal and activation of a relay. Suggestions welcome.


    YF-B10 water flow sensor - simple rectangular waveform detector .
    Do you have a problem with Arduino? Ask question. Visit our forum Arduino.
  • ADVERTISEMENT
  • Helpful post
    #2 20240121
    kaz69
    Level 36  
    How about something like "PWM converter 0-100% to voltage 0-10V"?
  • Helpful post
    #3 20240124
    hindoos
    Level 35  
    I had a similar flowmeter and it was able to stay in the high state after disconnection so conversion with PWM will not work here in my opinion.
    With one element I don't know but maybe some relay with a timer hold and load it with pulses via mosfet on the input?
  • #4 20240171
    ramzesq
    Level 9  
    I think mate Hindoos' option is cool, but I need to find a finished board, and I already have the timer :) . The option of playing around with a prototype is out.... Maybe colleagues can suggest something... some specific circuit that can be adopted.... I looked on AliExpress but small my schools.
  • #5 20240176
    hindoos
    Level 35  
    Even so, I think this will work more stably on the microcontroller ;) we plug the input straight into the microcontroller interrupts and make a simple count down timer that will turn off the fan if no pulses from external interrupts are coming into it. After all, we want to detect edges and not a high or low state - because this one can set itself at will when the water is turned off.
  • #6 20240185
    ramzesq
    Level 9  
    hindoos wrote:
    Although I think this will work more stably on the microcontroller ;) we plug the input straight into the microcontroller interrupts and make a simple countdown timer that will turn off the fan if no pulses from external interrupts are coming into it. After all, we want to detect edges and not a high or low state - because this one can set itself at will after turning off the water.

    And the specific solution is Arduino?
    E.g. this :

    YF-B10 water flow sensor - simple rectangular waveform detector .

    Just a question of where to connect the relay that will react to the edge and its absence.
  • Helpful post
    #7 20240190
    hindoos
    Level 35  
    An Arduino Nano will do. The external interrupt on the Nano is handled on pins 2 and 3. And you drive the relay from any selected pin via a transistor - which one? This is something you will have to choose depending on the relay.
    Here is the documentation: https://www.arduino.cc/reference/en/language/functions/external-interrupts/attachinterrupt/
    Take a look at the example code.
  • #8 20240215
    ramzesq
    Level 9  
    Thanks, but I don't think I'll be able to grasp it all....
    Buying the components, then how to enter it all into Arduino.... and still selecting a transistor.... I think I've shot myself in the knee with this idea.... Because as more of an electrician I am...
    I tried to find a ready-made board for these sensors but found nothing....
    Thanks for your help:) )
  • ADVERTISEMENT
  • Helpful post
    #9 20240357
    sisko
    Level 33  
    Search the electrode forum, "pulse detection circuit".
    One example topic Link .
  • ADVERTISEMENT
  • #12 20242711
    ramzesq
    Level 9  
    Sprinter62 wrote:
    And isn't it simpler to buy a ready-made board such as this one:
    https://cosmogate.pl/pl/strona-glowna/234-czu...-cieczy-modul-przekaznik-przeplywomierza.html
    .

    The simplest solution, that's the sort of thing I'm after, but.... price for a small relay, 2 capacitors, 2 diodes and two terminals - 83 PLN knocks down.... :cry:

    YF-B10 water flow sensor - simple rectangular waveform detector


    Does anyone have any idea what the circuit diagram for this board looks like?
  • ADVERTISEMENT
  • #13 20242715
    hindoos
    Level 35  
    This knowledge just costs £60 :P .
  • #14 20242724
    ramzesq
    Level 9  
    hindoos wrote:
    This knowledge just costs £60 :P
    .
    A non-advanced electronics technician can probably figure it out in five seconds :D
  • #16 20242876
    ramzesq
    Level 9  
    hindoos wrote:
    Well, let's battle :)
    .
    Which I hereby do by uploading this post :)
  • #17 20243240
    Alpha
    Level 26  
    A long time ago I made such simple detectors for a flashing Led (four separate channels). With some minor adjustments you can use. YF-B10 water flow sensor - simple rectangular waveform detector .
    PS:I hope I have understood the problem correctly. If not, apologies ;) .
  • #18 20246330
    ramzesq
    Level 9  
    YF-B10 water flow sensor - simple rectangular waveform detector .

    Does anyone know and can draw and paste into a post what the schematic for this circuit board looks like? That would solve the problem :) .
  • #19 20246343
    inot
    Level 37  
    ramzesq wrote:
    Does anyone know and can draw and paste into a post what the schematic for this circuit board looks like
    .
    And isn't it easier to buy a ready made module.
  • #20 20246476
    ramzesq
    Level 9  
    inot wrote:
    ramzesq wrote:
    Does anyone know and can draw and paste into a post what the schematic for this circuit board looks like
    .
    And isn't it easier to buy a ready-made module.


    The module costs 83 PLN... And that's why it's probably easier to ask for a schematic from someone who knows...such modules on Allegro are 15-20 PLN each....
  • #21 20246494
    inot
    Level 37  
    How to draw the diagram as the other side is not visible in the photo.
  • #22 20246828
    ramzesq
    Level 9  
    inot wrote:
    How to draw the schematic, as the other side is not visible on the picture.

    And here is the buried dog :) But I think it's no problem for an electronics engineer, because it's only 3 diodes, a relay and 2 capacitors.
  • #23 20246842
    inot
    Level 37  
    ramzesq wrote:
    But I think it's no problem for an electronics engineer, as it's only 3 diodes, a relay and 2 capacitors
    .
    But there are certainly other components on the other side (as otherwise this module was not that expensive).
  • #24 20248433
    ramzesq
    Level 9  
    But there are certainly other components on the other side (because otherwise this module was not that expensive).[/quote].
    There are certainly no other components on the other side, because with such a small board it is a misunderstanding to design the circuit and assemble the components by two different methods, i.e. traditional and SMD.
  • #25 20248443
    Krzysztof Kamienski
    Level 43  
    @ramzesq And why didn't this Fellow buy a flow sensor of the rotameter type with a NO/NC reed switch, but a sensor for flow measurement , and now you are complaining about the price of the relay board ?
    ramzesq wrote:
    But there are certainly other components on the other side
    Not necessarily, as a constant RC (integral) circuit or a diode with a capacitor would suffice.
    YF-B10 water flow sensor - simple rectangular waveform detector
  • #26 20248628
    ramzesq
    Level 9  
    Krzysztof Kamienski wrote:
    @Ramzes_Q And why didn't you buy a flow sensor of the rotameter type with a NO/NC type reed switch, but a sensor for flow measurement , and now you are complaining about the price of a relay board ?
    ramzesq wrote:
    But there are certainly other components on the other side
    Not necessarily, as a constant RC (integral) circuit or a diode with a capacitor would suffice.
    YF-B10 water flow sensor - simple rectangular waveform detector

    When you type the phrase water flow sensor into Google, "rotameter" didn't pop up. I used the most logical phrase.
    The one I bought and installed is a cheap and popular solution, so I thought there were a multitude of solutions for this type of sensor.... But it is a pity big foam sensor mounted. I will move the question to the electronics section. I consider the topic closed. Thank you all for the hints :) .

    https://www.google.pl/search?q="czujnik pepływu water"&source=lmns&bih=711&biw=1536&hl=en&sa=X&ved=2ahUKEwjl2oKA-_X6AhULhxoKHb0YAf4Q_AUoAHoECAEQAA
  • #27 20248729
    Alpha
    Level 26  
    Since you wanted to copy the board shown in the offer, I guess you have some idea about soldering and electronic components. Why don't you want to use my simple circuit from post #17? I can help you modify it.
  • #28 20248828
    ramzesq
    Level 9  
    Alpha wrote:
    Since you wanted to copy the board shown in the offer, I guess you have some idea about soldering and electronic components. Why don't you want to use my simple circuit from post #17? I can help you modify it.
    .
    Thanks for the idea Alpha, but I'll honestly say, I've outgrown the modification of your layout. On the other hand, it would be nice if all those who buy or already have this or a similar flow meter could find a simple and cheap solution to the problem here :) .
    If you feel like helping then great! Thank you in advance :) .
    If I may make a suggestion about modifications, it would probably be great if the circuit would work with different supply voltages, if possible. I work on 24V DC but there are probably plenty of systems on 12V DC.
  • Helpful post
    #29 20249207
    Janusz_kk
    Level 39  
    I think the simplest would be something like this
    YF-B10 water flow sensor - simple rectangular waveform detector .
    it has a processor, it has a relay, only you have to connect a flow sensor instead of a temp sensor (thermistor) so
    YF-B10 water flow sensor - simple rectangular waveform detector .
    You need to look for 5V on the board and connect the resistor and the sensor there as I have drawn, the capacitor needs to be chosen, but first you need to try it out, the sensor will average out the voltage on the input and the thermostat will show some temperature, if it is too high, you need to give a bigger capacitor, then you need to set the temperature threshold a little lower or higher depending on what you want it to do.
  • #30 20249513
    ramzesq
    Level 9  
    Janusz_kk wrote:
    I think the simplest would be something like this
    YF-B10 water flow sensor - simple rectangular waveform detector I think the simplest would be something like this.
    it has a processor, it has a relay, only you have to connect a flow sensor instead of a temp sensor (thermistor) so
    YF-B10 water flow sensor - simple rectangular waveform detector .
    You have to look for 5V on the board and there connect the resistor and the sensor as I have drawn, the capacitor has to be chosen, but first try it out, the sensor will average the voltage on the input and the thermostat will show some temp, if it is too high then a bigger capacitor has to be given, then you have to set the temperature threshold a little lower or higher depending on what you want it to do.

    I super:) Plate 17 PLN and minor modifications. Thanks:) .

Topic summary

The discussion revolves around the YF-B10 water flow sensor, specifically its application for detecting hot water in showers to activate an air extractor. The user seeks a finished PCB solution to detect the TTL rectangular waveform from the sensor, expressing difficulty in finding suitable circuits beyond basic Arduino implementations. Various suggestions are made, including using PWM converters, microcontroller interrupts, and ready-made relay boards. Some participants recommend Arduino Nano for handling interrupts and relay control, while others suggest searching for existing pulse detection circuits. The conversation also touches on the cost of ready-made solutions versus DIY approaches, with some users sharing circuit diagrams and code examples for Arduino and ESP32. Ultimately, the user expresses a desire for a simple, cost-effective solution that could work with different supply voltages.
Summary generated by the language model.
ADVERTISEMENT