jerabaul29 / OpenMetBuoy-v2021a

An easy to build, affordable, customizable, open source instrument for oceanographic measurements - with global Iridium coverage
MIT License
37 stars 7 forks source link

STEVAL-MKI207V1 instructions for connections #25

Closed CatherineTaelman closed 2 years ago

CatherineTaelman commented 2 years ago

A question about the intructions found here: https://github.com/jerabaul29/OpenMetBuoy-v2021a/blob/main/instrument_hardware/ST_eval_instructions.md .

Is it correct that we should be connecting the red qwiic cable (3.3V) to pin 4 for SCX and pin 5 for SDX?

Reason for confusion is the following: From the diagram found online (https://www.st.com/en/evaluation-tools/steval-mki207v1.html), it seems like SCX is connected to two pins (P4 and P24), but the connection to P24 had a resistor that says DNM, which we assume means 'do not mount'. So we concluded that the red cable should go to P4 for SCX. Same holds for SDX (with P5 and P17 as connected pins), where P17 had a DNM resistor, so the red cable for SDX should go to P5.

Might be nice for future users to add the schematic diagram of STEVAL-MKI207V1 as a link on 'ST_eval_instructions.md' page :)

jerabaul29 commented 2 years ago

Great to see you go in such details to check :) . Many thanks for raising this issue here :) .

TLDR: yes, I think you are right, and thanks for pointing this out :) .

cc:ing @gauteh here :) (Gaute should get credits for finding that the chip was available in this way, and helping me find out how to correctly wire it :) ).

A side note: @gauteh had looked in details at the datasheet for the ISM330DHCX itself for knowing which pins to connect or not, see the datasheet available at: https://www.st.com/en/mems-and-sensors/ism330dhcx.html section 3.1:)

Regarding your question: I think (I do not have the chip under the hand to double check; if you and / or @gauteh can confirm it would be perfect :) ) that you are right and that the pins to use are the pins connected to R3 and R5, ie pins P4 and P5, ie the SCx and SDx on the side of VDD and VDDIO rather than on the other side. I agree that it looks like the pins SCx and SDx on the other side of the breakout, i.e. pins P17 and P24, are only "connected" through a non-mounted resistor, ie not connected and not active. This is indeed very confusing (a bit tricky that ST built this STEval with 2 breakout pins marked SCx and 2 breakout pins marked SDx, where 1 is connected and one not for each "category"), and I will have to update the instructions as you say, to make it clear that the pins on the side of VDD and VDDIO should be used, and NOT the pins on the other side, when connecting SCx and SDx.

I was actually not really aware of this, I went a bit fast and was a bit sloppy myself, and I just connected to some "randomly chosen" SCx and SDx on my breakouts... It turns out that, since I am "luckily lazy", I connected the SCx and SDx corresponding to pins P4 and P5 to +3.3V, since these are the 2 close to VDD and VDDIO where I already have 3.3V, so I could cut a shorter jumper ^^ . This is actually (barely) visible on the picture https://github.com/jerabaul29/OpenMetBuoy-v2021a/blob/main/instrument_hardware/jpg/STEval_PCB.jpg . If you zoom there you can see that I did let the SCx and SDx on the SDA/SCL side unconnected, and I connected instead the SCx and SDx on the VDD and VDDIO side. Pure luck, but need some now and then ^^ :) .

As a side note:

Having an extra pair of eyes on this would be great :) . So if you can read this being quite critical / not "trusting", and double check and confirm, would be great :) .

Let us confirm, keep the issue open, and I will update the readme :) .

gauteh commented 2 years ago

The SDx and SCx pins are for connecting auxiliary devices to the chip, not accessible to us, but to the IMU. My guess is that both pins may be used, and the resistor is probably there to prevent a short in case one is pulled high and the other pulled low. As far as I can see it doesn't matter which one you connect to 3V3.

jerabaul29 commented 2 years ago

@gauteh I thought so, that it does not matter which SCx and which SDx was connected as long as one of each was connected to 3.3V, but looks like as @CatherineTaelman points out from the STeval datasheet and how the PCB looks like that the SCx and SDx on the side of the SCL / SDA pins are just not connected to the chip in the center at all - while the SCx and SDx on the side of VDD and VDDIO do are connected to the chip in the center.

jerabaul29 commented 2 years ago

Would need a breakout under my hand (all mines are mounted in the boxes that are now sealed and glued) and a multimeter to check, though :) .

CatherineTaelman commented 2 years ago

Thanks for double-checking and confirming! We also noticed indeed that the SCx and SDx on the side of the SCL / SDA pins are not connected at all to the chip. So we are going for the connections to P4 and P5 :)

jerabaul29 commented 2 years ago

Perfect, then this is confirmed, and I will update the md instructions file and let you know :) .

gauteh commented 2 years ago

Great, that is a very important bit of information. Good catch!

jerabaul29 commented 2 years ago

Many thanks again, updated the readme here: https://github.com/jerabaul29/OpenMetBuoy-v2021a/commit/c627122b078af8c59dee82092ee670f9348295b6 .

Btw @gauteh , is it ok if I add your schematic (see under) to the md file (with credits of course :) ):

ISM330DHCX_wireup

gauteh commented 2 years ago

Of course 😊

ons. 9. mar. 2022, 15:59 skrev JR @.***>:

Many thanks again, updated the readme here: c627122 https://github.com/jerabaul29/OpenMetBuoy-v2021a/commit/c627122b078af8c59dee82092ee670f9348295b6 .

Btw @gauteh https://github.com/gauteh , is it ok if I add your schematic (see under) to the md file (with credits of course :) ):

[image: ISM330DHCX_wireup] https://user-images.githubusercontent.com/8382834/157467679-2f0ed74d-e853-4507-a3b1-9c29757c4cea.png

— Reply to this email directly, view it on GitHub https://github.com/jerabaul29/OpenMetBuoy-v2021a/issues/25#issuecomment-1063009157, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAN365MJ7OH7S7TVOZCPBTU7C4FJANCNFSM5QJQGNNA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

jerabaul29 commented 2 years ago

Thanks :) .

Then closing this, if the readme is not clear enough, feel free to re-open and discuss further here :) .

CatherineTaelman commented 2 years ago

Many thanks again, updated the readme here: c627122 .

Btw @gauteh , is it ok if I add your schematic (see under) to the md file (with credits of course :) ):

ISM330DHCX_wireup

That schematic is really nice for the readme! :)

jerabaul29 commented 2 years ago

(note: to cut on assembly time we drop the resistor R1 ^^ ).