• Looking at the datasheet, you are just fine... The frequency is in the range of 30..350 Hz The datasheet also provides you with what you need for your math for non-linearity.

    As @DrAzzy mentions, the code in the callback handling a pulse should be as short as possible.

    Since with every event you also get the time stamp of the event, you can just grab the information and stick it into a buffer (array), and on a differently paced event schedule - on an interval - you trigger the calculation. If your processing takes longer, Espruino is queuing the interrupts and you get them when done...

    Side question: do you a) drive the flow?... and - b) Is the flow always within the limits of the meter's specs?


    1 Attachment

    • FT330_FlowMeterSpec.png
About

Avatar for allObjects @allObjects started