Page 1 of 1

bit/pulse pattern recognition

Posted: 03 Feb 2019, 13:13
by pitrio
dear all,

I have one wind direction sensor (meteo station) tha take out a 8 pulses burst with digital signal. In particolar first 4 pulses are a sort of syncronize pattern, after, there are other 4 bit that characterize the real signal... 4 bit -> 16 position... that corrispond to 16 wind directions.
The pulses are 0.5 msec or 1 msec duration...high or low... like picture belove.
wind direction code.jpg
wind direction code.jpg (83.72 KiB) Viewed 2980 times
Can someone tell me if there are some possibility to use espeasy to build a sort of "pattern recognition"?

thank you in advance.

ricc

Re: bit/pulse pattern recognition

Posted: 03 Feb 2019, 16:51
by grovkillen
You could build a plugin.

Re: bit/pulse pattern recognition

Posted: 03 Feb 2019, 17:48
by pitrio
Can I use pulseIn() and interrupt ISR function or there are incompatibility with ESPeasy?
Some hint?

thank yuo!

ricc

Re: bit/pulse pattern recognition

Posted: 03 Feb 2019, 18:41
by grovkillen
All communication use square signals so yes you could interpret them using ESP Easy (in a plugin).