Adding I2C Connection #29
-
|
I'm trying to add a device using an I2C connection. Following along with the examples on the Notion page, it seems I should just be able to use the connection initialized by pycubed.py ("i2c = cubesat.i2c1"), but this requires me to connect to the SDA/SCL pins. How would I do this? I also see in other examples that PA08 and PA09 are the defaults for these, but I can't find them on the board. I also understand I can maybe use GPIO pins for this and do an I2C scan to find the address of the external device, but I can't get that to work either. If I could get just a brief explanation of how to wire an I2C connection and how to initialize the interface, I'd really appreciate it. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
|
Hey @ecburns33 I didn't make external wiring to I2C bus #1 very easy on mainboardv05 and this is something I have in my notes for potential future revisions. That being said, you have many options since you can configure many different pins to be additional I2C buses. I'll answer your specific questions below:
Hope this helps! Let me know if you need more details. |
Beta Was this translation helpful? Give feedback.



Hey @ecburns33
I didn't make external wiring to I2C bus #1 very easy on mainboardv05 and this is something I have in my notes for potential future revisions. That being said, you have many options since you can configure many different pins to be additional I2C buses. I'll answer your specific questions below:
i2c1) but it would require soldering wires to some resistors and whatnot on the board. A better solution is to use one of the options below, but if you reeeallllyyy wanted to doi2c1you would start by looking at the kicad schematic+layout to determine which pads to access.