The windsensor project is very critical on interrupt timing to capture the pulse length. Looking at the Arduino.Serial code, it does (of course) use interrupts and even disables the global interrupts during a write. In this application a simple polled serial port will do the job without globally disabling interrupts and without serial write interrupt getting in the way of the envelope detect or zero crossing interrupts, so the Arduino code was modified to use the custom polledSerial class.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.