Sunday, May 31, 2015

Detours

This evening I put together an app using an Adafruit PIR (motion) sensor on Win10 for IoT on Raspberry Pi 2. It almost worked the first time, but edge detection in the ValueChanged event on GpioPin gets its value inverted at times. Turns out it's a known issue. My workaround: in the event handler use sender.Read() to get the pin value.

I'll be glad to see this fixed.

Oh, also--the motion sensor prefers 5V over 3.3V. Just sayin'.

No comments: