Measuring IoT pulse widths with new GPIO APIs

This post has been republished via RSS; it originally appeared at: Channel 9.

The Windows 10 Creators Update comes with new GPIO APIs which enable accurate and efficient measurement of pulse widths. Some devices that benefit are the DHT11/DHT22 temperature and humidity sensors, and certain sonar/distance sensors. We added the Windows.Devices.Gpio.GpioChangeReader class which lets you capture timestamps when a GPIO pin changes state, which you can then use to determine the time between change events.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.