You are reading a single comment by @Vladimir and its replies.
Click here to read the full conversation.
-
You could just try using something like this instead
Thanks, It's quite simple and more clear for me.
I implemented the code, but after some time I again recieve "New interpreter error: FIFO_FULL"
It's important to mention that no sensors are connected to the pins (I do testing at home without any sensors) A0 and A1
I would maybe avoid calling
flowSensor[0].on('pulse', function () {}
at all, even if the function has no code.It looks like Amperka's library isn't expecting the number of pulses per second that you are getting from your sensors. In fact looking at it the whole thing is really inefficient if you have even 100 pulses/second.
You could just try using something like this instead:
Although you'd have to apply some scale factors to volume and speed.