I want to connect to a giro/mag MEMS device form Teensy 4.0 but it does not seem to work.
I have two examples of chinese alleged GY6500/9250 9 axis mems giro boards.
My Teensy code does not seem to find them so I ran the standard i2c_scanner sketch from a Uno and it was fine. One device replies to 0x68 the other on 0x69. Both work when fed from either 5V or 3.3V rails.
No I editted the scanner to use the Teensy pinout, first on primary i2c (18,19) then on secondary (17,16). Both sketches reported not finding anything on i2c.
I get that old feeling I'm just being dumb and over looking the obvious.
Can anyone help?
Well looking at your schematic that you did not post I do not see any pull up resistors connected to SCA and SDL. Of course I could be wrong as what I see is very fuzzy.
You are correct I have no experience with this processor but I found this in the data sheet before I answered and I do not see the pinMode in you code.
All digital pins have optional pullup, pulldown, or keeper resistors. These are used to keep the pin at logic HIGH or logic LOW or the same logic level when it is not being actively driven by external circuity. Normally these resistors are used with pushbuttons & switches. The pinMode function with INPUT_PULLUP or INPUT_PULLDOWN must be used to configure these pins to input mode with the built-in resistor.