When I run it, the “done” is never printed and the motor is constantly running. I have experimented with the Encoder code and it seems, it cannot read the pins/does not get interrupts so that encoder.stateand encoder.position remain zero.
Any ideas what I could be missing/doing wrong are very much appreciated.
Hi Tim, thanks for the message. Sounds like you’re pretty far along in your investigation, and it sounds like you’re trying all the right things. One thing you might try is to try using the other motor port.
If you could post your entire sketch, I’ll give it a try tomorrow on our reference hardware platform and get back to you.
Init
Current position: 0 Current state: 0
Current position: 0 Current state: 0
Current position: 0 Current state: 0
Current position: 0 Current state: 0
.
.
.
For whatever reason Vcc was not properly connected to the NXT Motor socket pins. With no power, comes no encoder signal… I soldered an extra wire and it works now!
Thanks for your help and also your kind offer to replace the board.
Oh great! Was this on a Bricktronics Shield, Megashield, or Motor Driver board? Was the soldering defect on the socket itself or on the chip that drives the motor?