SM-PWM-01A Sensor

Is there a working library for the SM-PWM-01A Rev.1 sensor (Smart Dust Sensor) that is compatible with the Autonomo? I’ve tried using this library:, which is only compatible with Arduino. When I try compiling it for the Autonomo I get a long list of errors, which I think is due to the way the interruptions is done. Any suggestions?

That library will only work on AVR based boards. It uses the AVR registers directly to setup a timer based interrupt and it sets up pin change interrupts, hardcoded to use digital pins 4 and 5.

The pin change interrupts can be easily ported by using the built in attachInterrupt method.

You can find an example of how to implement a TC based timer here:

Thank you so much. I’ll try that!