How count works in Arduino plugin?

Posted on
Mon Oct 19, 2020 5:21 am
haimoo112 offline
Posts: 15
Joined: Feb 16, 2019
Location: Haimoo, FINLAND

How count works in Arduino plugin?

Thanks for another great plugin.
I got everything else working on several different boards, but
just can't figure out how to get a pin to count hi-low or low-hi transactions and get total value read.
Or put in a variable. My intent is to count blinks in electricity meter (has a led to blink every thousand of a kilowatt).
For not getting too much traffic into z-vawe network i will count (locally) pulses up to say 100 and then send one pulse to Arduino's count pin.
Then, adding those up to 10 counts I will get one kilowatt .

If someone can help me, I would be most thankful.

// Jari

Posted on
Tue Oct 20, 2020 10:40 pm
kw123 offline
User avatar
Posts: 8360
Joined: May 12, 2013
Location: Dallas, TX

Re: How count works in Arduino plugin?

I believe, I have never really implemented the count function, just the defs in device setup. -- still looking at the code (trying to understand .. have not used that one for > 2 years)..

I am now using only RPIs. Much easier to use, more memory, can run real python programs and the RPI0W is $10

There you have all kinds of i/o including input counts .. and many sensors

Karl

Posted on
Wed Oct 21, 2020 10:10 am
haimoo112 offline
Posts: 15
Joined: Feb 16, 2019
Location: Haimoo, FINLAND

Re: How count works in Arduino plugin?

Thank You, Karl, for prompt reply.
I only used 2 days for trying to get t work ;) Stupid me. When now looking the code itself,
I noticed that too.: There is no actual implementation par in the sketch.
I agree, that RPI is much more, but those "micro" ESP's would have been so small.
I do have 5 RPI's for my room audio receivers ( + quality dac's ), so I'll take one,
and play a little whit it.
Thanks again,

// Jari

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest