Giter Club home page Giter Club logo

usb-c-arduino's Introduction

Introduction

This example is an extension of the firmware used on the USB-C Explorer, which was a port of the Google Chrome EC library. This code is intended to show how to extend the library to new platforms, and provide a starting point for getting started with USB-C and Arduino.

Notes and Limitations

Running the USB-C Power Delivery stack can require some amount of RAM and processing power. I've tested this with the Arduino M0. I'm not sure something like the Arduino Uno is capable of running this code without some modiciations. Pull requests are always welcome.

The other major limitation is the power supplies on the Arduino. They don't seem to work well much above 12 V. When I tried 15 V, the Arduino M0 tended to draw too much current and get kicked off the power supply by the charger. If you want to go higher than 12 V, you will either need a power adapter or use something like the USB-C Explorer.

Example Usage

This code was tested with the FUSB302 breakout board. Here are the connections you will need.

  • Breakout Pin -> Arduino Pin
  • GND -> GND
  • Vbus -> Vin
  • Vpu -> IOREF
  • VDD -> 3.3V
  • SDA -> SDA
  • SCL -> SCL
  • INT -> D12
  • GND -> GND (for good measure)

Questions, Comments, and Contributions

Pull requests are welcome. If you have questions or comments, you can email me directly at [email protected].

usb-c-arduino's People

Contributors

graycat avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.