Me Compass doesn't leave calibration mode with Library V3.0


#1

When I compile the demo Code for MeCompass with Makeblock Library V 3.0 the Code will run but the Sensor won’t leave the calibration mode.

The cause is that dRead1(INPUT_PULLUP) will always give the value 0, even if the button is pressed nor not. The voltage at the key pin of the module is changing. So I think there must be a Software error.

Is there a solution for this problem?


#2

I think I may be seeing a similar situation. I’m attempting to use the meCompass shield for the first time, and all the code compiles and uploads properly, but I can’t get the compass to exit Calibration mode. The blue light on the shield just keeps blinking, even after I rotate 360 degrees and click the calibration button, per the User Manuel. Any code after Compass.begin() isn’t executed.

Did you ever find a solution to your problem?


#3

Try to use port 3 or 4. I think it only works with one of these ports.


#4

Thank you–I think that’s it! I had originally been following the meCompass User Manual, which claims that you can “Connect compass module to any I2C port (except motor port) on the control board.” So I had it plugged into Port 7. Logically, though, it makes sense that it would need the dual digital interface of Ports 3 - 6 so that it can feed readings back to the board. I moved to Port 3, and it now appears to be working! Thanks!


#5