Skip to content

Latest commit

 

History

History

MCP2221

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

MCP2221/MCP2221A

The IC MCP2221/MCP2221A is an interface converter that performs protocol conversion from USB to I2C.

This IC can send I2C commands via the USB HID interface, so you can operate I2C devices from generic PCs. There is no need to bring any special devices such as Arduino or Raspberry Pi, and also no need to install any drivers.

The package Smdn.Devices.MCP2221.GpioAdapter can control this IC and can be used with Smdn.Devices.US2066.

This example shows operating the OLED display module SO1602A using MCP2221A. You can run this example with following instruction.

Prerequisites

Required devices and parts are as follows:

  • PC with USB ports
  • USB breakout board or breakout cable
  • MCP2221/MCP2221A and
    • 0.22μF capacitor × 1
    • 0.1μF capacitor × 1
    • 10kΩ resistor × 1
  • 3.3V voltage regulator and
    • external capacitors which required by the regulator
  • SO1602A OLED display module and
    • 0.1μF capacitor × 1
    • 4.7kΩ resistor × 2
    • 3P slide switch × 1 (Optional. This switch is used to switching I2C address of SO1602A.)

秋月電子通商で購入する場合は、以下で必要なパーツを揃えることができます。 Required parts can be purchased from the following links (Japanese supplier).

パーツリスト

Wiring up

Wire up the devices and parts as shown in the wiring diagram below. MCP2221A + SO1602A I2C wiring

This diagram shows the case where TA48033S is used as a 3.3V regulator. If you will attempt to use other regulators, replace capacitors with compliant ones.

Build and run project

Run command dotnet build to build project, or dotnet run to run project.

If the project run properly, SO1602A shows the text Hello, world! like this:

expected behavior