Page 1 of 1

Has anyone used the 1047 board with a 3532 rotary encoder?

Posted: Mon Jun 26, 2017 7:07 am
by highlyinteractive
I'm trying to get the 1047 board working with a rotary encoder and the Phidgets demonstration software.

The board connects fine, and the digital inputs trigger as expected, but when I try to enable a connected rotary encoder, it fails and seems to disconnect then reconnect the board. The log file reads:

Code: Select all

06/23/17 16:51:11,2832,".\windows\cusbwindows.c(798)",INFO,"GetOverlappedResult failed with error: ERROR_DEVICE_NOT_CONNECTED"
06/23/17 16:51:11,2832,".\cthread.c(327)",INFO,"ReadThread exiting normally (Phidget detach detected in CPhidget_read)"
06/23/17 16:51:11,1264,".\cthread.c(457)",INFO,"WriteThread exiting normally (Phidget detach detected in CPhidget_write)"
06/23/17 16:51:11,2816,".\windows\cusbwindows.c(391)",INFO,"New Phidget found in CUSBBuildList: \\?\hid#vid_06c2&pid_004f#6&1ae60202&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}"
06/23/17 16:51:11,2816,".\windows\cusbwindows.c(521)",INFO,"Phidget successfully opened in CUSBOpenHandle"
06/23/17 16:51:11,1152,".\cthread.c(393)",INFO,"WriteThread running"
06/23/17 16:51:11,1156,".\cthread.c(273)",INFO,"ReadThread running"
I am using a Phidgets approved encoder & have wired it according to the product page:
http://www.phidgets.com/products.php?ca ... _id=3532_0

Here's a shot of my wiring:
http://i.imgur.com/LdQDCHS

Has anyone else had this problem? Any advice for solutions I could try?

Thanks

Re: Has anyone used the 1047 board with a 3532 rotary encoder?

Posted: Tue Jun 27, 2017 4:56 am
by highlyinteractive
Quick update for future folk who have the same problem.

After speaking with Brian at Phidgets, we discovered that the rotary encoder is drawing too much power when it first connects, which causes the board to reset.

The solution is connecting the 5V cable on the encoder to the permanent 5V supply on the digital inputs.

It's not a perfect solution, as it prevents you from disabling/enabling the encoders in software, but it does at least get them working.

Hope that's helpful for anyone else encountering the same issue.