Cover image
MCP2221-Exemples pour le vent
Private

MCP2221-Exemples pour le vent

Try Now
2020-08-27

Une collection d'exemples C pour MCP2221 USB-TO-I2C / UART Bridge IC avec différents modules de série et capteurs

3 years

Works with Finder

1

Github Watches

8

Github Forks

14

Github Stars

This repository has all examples I have developed for the MCP2221 USB-to-I2C/UART chip from Microchip. This chip is like a swiss army knife that you can use to proof of concept any new I2C or UART based system, whether it's a chip or a full embedded system. All examples compile and run under Windows OS, all examples use Microchip library and DLL for the MCP2221 available at: https://www.microchip.com/wwwproducts/en/MCP2221A

The examples are for interfacing the MCP2221 via I2C with following sensors/modules:

  • MCP4725 12-bit D/A.
  • 16x2 I2C Character LCD (PCF8574).
  • MCP9808 digital output temperature sensor.
  • MMA8452q 3-Axis accelerometer.
  • MLX90614 Remote IR temperature sensor.
  • INA219 digital output power monitor.
  • AMC6821 stand-alone PWM Controller.
  • MCP23008 and MCP23018 I2C I/O Expanders.
  • I2C scanner, scans I2C bus and lists all connected slave devices.

To use the examples under Linux you might need to look into setting up the MCP2221 as an I2C adapter then use existing I2C functions in Linux native C headers. These are the steps to set up the MCP2221 as an I2C adapter (tested on Raspberry Pi):

  • sudo apt-get upgrade
  • sudo apt-get install raspberrypi-kernel-headers
  • wget http://ww1.microchip.com/downloads/en/DeviceDoc/mcp2221_0_1.tar.gz
  • tar -xf mcp2221_0_1.tar.gz
  • cd /"mcp2221_directory"/
  • make modules
  • sudo make install
  • Override linux driver with MCP2221 driver by creating usb device rule: sudo nano /etc/udev/rules.d/100-usb.rules
  • Add this line: ACTION=="add", SUBSYSTEM=="usb", DRIVER=="usb", RUN+="/directory/to/mcp2221/driver/driver_load.sh"
  • Restart udev services: sudo service udev restart

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • https://appia.in
  • Siri Shortcut Finder – your go-to place for discovering amazing Siri Shortcuts with ease

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • tomoyoshi hirata
  • Sony α7IIIマニュアルアシスタント

  • apappascs
  • Découvrez la collection la plus complète et la plus à jour de serveurs MCP sur le marché. Ce référentiel sert de centre centralisé, offrant un vaste catalogue de serveurs MCP open-source et propriétaires, avec des fonctionnalités, des liens de documentation et des contributeurs.

  • ShrimpingIt
  • Manipulation basée sur Micropython I2C de l'exposition GPIO de la série MCP, dérivée d'Adafruit_MCP230XX

  • jae-jae
  • MCP Server pour récupérer le contenu de la page Web à l'aide du navigateur sans tête du dramwright.

  • ravitemer
  • Un puissant plugin Neovim pour gérer les serveurs MCP (Protocole de contexte modèle)

  • patruff
  • Pont entre les serveurs Olllama et MCP, permettant aux LLM locaux d'utiliser des outils de protocole de contexte de modèle

  • pontusab
  • La communauté du curseur et de la planche à voile, recherchez des règles et des MCP

  • av
  • Exécutez sans effort LLM Backends, API, Frontends et Services avec une seule commande.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的 LLM 资料总结 (数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Résumé des meilleures ressources LLM du monde.

  • Mintplex-Labs
  • L'application tout-en-un desktop et Docker AI avec chiffon intégré, agents AI, constructeur d'agent sans code, compatibilité MCP, etc.

  • appcypher
  • Serveurs MCP géniaux - une liste organisée de serveurs de protocole de contexte de modèle

    Reviews

    3 (1)
    Avatar
    user_bAhVFYzR
    2025-04-17

    The MCP2221-Examples-for-Windows by kelray is an excellent resource for anyone working with MCP2221 on a Windows platform. The repository is well-organized and the examples are clear and easy to follow. Whether you're a beginner or an experienced user, you'll find this a valuable tool to help you get the most out of your MCP2221 projects. Highly recommended! Check it out on GitHub: https://github.com/kelray/MCP2221-Examples-for-Windows.