Arduino using GROVE B as I2C
-
Can anyone give me help using Grove B (BLACK) as I2c to read a compass module. I cannot use Port A (RED) as there is no space in my waterproof case.
-
Hello @alpaka
unfortunately GPIO36 (one of the GPIOs used for Port B) is an input only GPIO. See here - section M5GO Base Pins and here - GPI: GPIO34-39 can only be set as input mode and do not have software-enabled pullup or pulldown functions.
I2C however requires one GPIO as output (SCL) and one GPIO which can be an out- or input (SDA). Therefore Port B cannot be used for I2C.
Thanks
Felix -
Hi Felix
thanks for your fast answer. Meanwhile I have also been looking at the GPIOs used on M5Stack and found out that GPIO36 can only be used as an input. I got my soldering gun and removed the black GROVE connector and wired a new one in White. directly to the PoGo Pins at the bottom of the M5GO. Works perfect. Would have fine not modify the module but you cannot have everything. -
BTW i forgot to mention that I also removed those nasty magnets as they disturb the used magnetometer. The metal screws where also replaced with plastic made.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login