Liquid Flow Meter - help

48 views
Skip to first unread message

kpodenphant

unread,
Jun 6, 2013, 3:57:25 PM6/6/13
to NETLab Toolkit
Hi,

I've just bought a liquid flow meter like the one from adafruit.
http://www.adafruit.com/products/828

They provided a arduino sketch that works very well.
https://github.com/adafruit/Adafruit-Flow-Meter

Working with the arduino is fairly new to me so I'm not sure I have
all the concepts right...

It seems that the sketch is reading the sensor state one time every
millisecond. I am assuming that the hub to flash cannot keep up with
this pace.

So, would it be possible to add/change the code in the StandardFirmata
or adding to the code in the FlowMeter-Sketch to let the pulse count
be handled on the arduino then simply reading this value in flash. The
it would also be necessary tell the Arduino to reset it's current
count.

Any bright ideas out there?

kpodenphant

unread,
Jun 6, 2013, 4:05:17 PM6/6/13
to NETLab Toolkit
If you need more info of any kind, let me know.

On Jun 6, 9:57 pm, kpodenphant <kpodenph...@gmail.com> wrote:
> Hi,
>
> I've just bought a liquid flow meter like the one from adafruit.http://www.adafruit.com/products/828
>
> They provided a arduino sketch that works very well.https://github.com/adafruit/Adafruit-Flow-Meter

Ewan Branda

unread,
Jun 6, 2013, 4:59:28 PM6/6/13
to netlab-...@googlegroups.com
Currently the Flash widgets and Hub need Firmata and we only support the currently defined set of Firmata commands (analog in, analog out, etc). I would leave StandardFirmata out of the picture. The options as I see it are: 

1. Wait for a new Hub plug-in and accompanying widget that we are currently working on that allows you to send and receive raw text strings from any serial device. That way you can modify the adafruit sensor demo sketch so that it sends back the raw data value that you want to read from Flash/HTML5. We are meeting on that early next week and will work out a delivery schedule... probably a couple of weeks at least.

2. Modify the adafruit sensor demo sketch so that it uses the Firmata Library to send values back to the Hub. A simple demo of how to use the Firmata library in an Arduino sketch is here: http://arduino.cc/en/Reference/Firmata. I tested the Hub using the AnalogIn widget and it works fine with that demo sketch. Note that doing this will of course eliminate support for any of the other StandardFirmata commands (digital out, etc). But if your Arduino is dedicated only to monitoring the flow rate from that sensor then you should be ok.

--Ewan Branda (NLTK co-developer)



--
You received this message because you are subscribed to the Google Groups "NETLab Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netlab-toolki...@googlegroups.com.
To post to this group, send email to netlab-...@googlegroups.com.
Visit this group at http://groups.google.com/group/netlab-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.



kpodenphant

unread,
Jun 7, 2013, 1:37:21 AM6/7/13
to NETLab Toolkit
Hi Ewan,

Wow. What a rapid response. I'll check out option 2 and happily wait
for #1.

All the best
Kristian

kpodenphant

unread,
Jun 10, 2013, 2:14:07 AM6/10/13
to NETLab Toolkit
Option 1 worked like a charm. Thank you.
Reply all
Reply to author
Forward
0 new messages