GrovePi icon indicating copy to clipboard operation
GrovePi copied to clipboard

Grove Digital Accelerometer not working on Win 10 IoT Raspberry PI 2

Open amitchaudhary-zz opened this issue 10 years ago • 3 comments

Environment - Raspberry PI 2 OS - Windows 10 I0T Core Sensor - Grove - 3-Axis Digital Accelerometer(±1.5g)

On below line... DeviceFactory.Build.AccelerometerSensor(Pin.DigitalPin3).Read() The excpetion is thrown as... The thread 0xbb8 has exited with code 0 (0x0). Exception thrown: 'System.IO.FileNotFoundException' in GrovePi.dll WinRT information: Slave address was not acknowledged. The program '[2652] XXX.exe' has exited with code -1 (0xffffffff).

Any known issue/help?

amitchaudhary-zz avatar Jul 29 '15 09:07 amitchaudhary-zz

a work-around: put the statement in a try-catch. Your application can continue ok. next reads will still work.

jan-bogaerts avatar Aug 04 '15 12:08 jan-bogaerts

Try catch is already there, so exception handling is not an issue. Point is I need to read the Accelerometer values? And FYI the same sensor is working with Python/Raspberry environment.

amitchaudhary-zz avatar Aug 05 '15 11:08 amitchaudhary-zz

Let me know when you figure it out. I'll merge in the fix.

robsonj avatar Aug 05 '15 11:08 robsonj