How count works in Arduino plugin?

Plugin to facilitate the communication (read/write/set PIN config) between INDIGO and an ARDUINO through WiFi/ETHERNET. Included is an example “SKETCH” for an ARDUINO that should work without modifications.
haimoo112
Posts: 15
Joined: Sat Feb 16, 2019 10:04 am
Location: Haimoo, FINLAND

How count works in Arduino plugin?

Post 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
User avatar
kw123
Posts: 8408
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: How count works in Arduino plugin?

Post 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
haimoo112
Posts: 15
Joined: Sat Feb 16, 2019 10:04 am
Location: Haimoo, FINLAND

Re: How count works in Arduino plugin?

Post 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
Post Reply

Return to “ARDUINO Plugin”