Skip to content

How to use I2C on the P3-ROC

Related Config File Sections:

The P3-ROC contains an I2C port (J17) which is accessible to MPF. You can use this port to control any I2C-based device.

image

You need to connect SDA, SCL and ground. You may not need the 3.3V from the P3-ROC as your controller might be a different voltage (which you can then get directly from your power supply), but again that depends on the board.

I2C Servo Controller

For instance you can connect a servo controller via I2c. You can't plug the servo directly into the P3-ROC, rather, you can buy an I2C-based servo controller and plug it into the P3-ROC. However, a better option would be to use a servo on a PD-LED.

See I2C Platforms in MPF for other I2C hardware in MPF.

What if it did not work?

Have a look at our troubleshooting guide for the P/P3-Roc.


Something missing or wrong? You can fix it!

This website is edited by people like you! Is something wrong or missing? Is something out of date, or can you explain it better?

Please help us! You can fix it yourself and be an official "open source" contributor!

It's easy! See our Beginner's guide to editing the docs.

Page navigation via the keyboard: < >

You can navigate this site via the keyboard. There are two modes:

General navigation, when search is not focused:

  • F , S , / : open search dialog
  • P , , : go to previous page
  • N , . : go to next page

While using the search function:

  • Down , Up : select next / previous result
  • Esc , Tab : close search
  • Enter : go to highlighted page in the results