본문 바로가기
Arduino

USB to I2C/UART Protocol Converter with GPIO

by 소나무기운 2020. 9. 22.
반응형

MCP2221

하드웨어를 개발하다 보면 통신을 필수 지요.

 

간단히 USB에 연결하여 I2C와 UART GPIO등을 제어할 수 있는 칩이 있어 소개하고자 합니다.

마이크로 칩에서 제조한 MCP2221에요.

https://www.microchip.com/wwwproducts/en/MCP2221

 

MCP2221 - USB Bridge

Development Environment Demo & Evaluation Boards MCP2221 Breakout Module ( ADM00559 ) The MCP2221A Breakout Module is a development and evaluation platform comprised of a single DIP form factor board. The provided supporting software demonstrates the capab

www.microchip.com

자세한 자료는 링크에서 확인하시면 됩니다.

 

여기서는 간단 설명만 드릴께요.

USB 2.0 Full-Speed(12 Mb/s) 를 지원해요.

USB Driver와 윈도우용 DLL도 있고, 안드로이드 앱도 있어요.

 

MCP2221의 핀맵

USB와 연결되어 I2C , UART, GPIO가 있어요. GPIO는 ADC나 DAC로 사용하여나 입력 출력을 바꿀수 있어요.

똑똑한 칩이네요.

 

안드로이드 어플을 살펴 볼께요.

 

플레이스토어에서 "MCP2221 Terminal"로 검색하시면 됩니다.

 

플래이스토어 검색화면

앱에서 할 수 있는 일은 여러가지가 있어요.

 

1. I2C보내고 받을 수 있어요. Address와 Data 바꿀수 있어요.

2. 핀 설정이에요. 입출력 ADC, DAC등 기능을 바꿀수 있어요.

3. 핀에 설정된 기능으로 출력(DAC, DO)을 내보내거 입력(ADC, DI) 받을 수 있어요.

4. 시리얼 터니널 UART통신을 할 수 있어요.

 

 

여러가지를 개발하는 입장에서는 많이 써먹을 듯 해요.

2천원 3천원 정도 한다네요.

 

USB커넥터를 포함한 모듈로 판매하는 제품이 몇개 있어요.

https://www.artekit.eu/doc/guides/ak-mcp2221/

 

Artekit AK-MCP2221 Breakout | Artekit Labs Tutorials

Communication Products Artekit AK-MCP2221 Breakout Everything you need to know about the Artekit AK-MCP2221 Breakout board. Introduction The Artekit AK-MCP2221 Breakout board is a do-it-all, USB bridge-to-I2C/UART/GPIO. The AK-MCP2221 breakout board is a

www.artekit.eu

https://learn.adafruit.com/circuitpython-libraries-on-any-computer-with-mcp2221

 

CircuitPython Libraries on any Computer with MCP2221

Wouldn't it be cool to drive a tiny OLED display, read a color sensor, or even just flash some LEDs directly from your computer? Sure you can program an Arduino or Trinket to talk to these devices and your computer, but why can't your computer just talk to

learn.adafruit.com

https://www.electronics-lab.com/mcp2221-hid-library/

 

MCP2221 HID Library - Electronics-Lab

Zak’s Electronics Blog published a new library and breakout board for MCP2221 USB to UART interface IC:...

www.electronics-lab.com

국내 판매 사이트

http://vctec.co.kr/product/search.html?banner_action=&keyword=mcp2221

 

### 가치창조기술 온라인 쇼핑몰에 오신 것을 환영합니다! ###

본 결제 창은 결제완료 후 자동으로 닫히며,결제 진행 중에 본 결제 창을 닫으시면 주문이 되지 않으니 결제 완료 될 때 까지 닫지 마시기 바랍니다.

vctec.co.kr

 

반응형

댓글