Page 1 of 1

How count works in Arduino plugin?

PostPosted: Mon Oct 19, 2020 5:21 am
by haimoo112
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

Re: How count works in Arduino plugin?

PostPosted: Tue Oct 20, 2020 10:40 pm
by kw123
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

Re: How count works in Arduino plugin?

PostPosted: Wed Oct 21, 2020 10:10 am
by haimoo112
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