Coder Social home page Coder Social logo

jacmet / i2c-tiny-usb-fosdem85 Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 287 KB

Port of Till Harbaums' i2c_tiny_usb to Olimex FOSDEM-85

License: GNU General Public License v2.0

Makefile 1.41% Shell 0.26% C 40.01% C++ 13.34% Assembly 35.08% SourcePawn 9.45% Python 0.46%

i2c-tiny-usb-fosdem85's Introduction

i2c_tiny_usb for FOSDEM-85

This is a port of Till Harbaums' i2c_tiny_usb firmware to the Olimex FOSDEM-85 board that was handed out at FOSDEM'14.

The corresponding host side Linux driver has been in mainline for many years (CONFIG_I2C_TINY_USB), so with this you have easy access to the normal kernel I2C infrastructure through your FOSDEM-85 board.

Programming

The FOSDEM-85 board uses the nice micronucleus bootloader, so to upload this firmware simply connect the board to your PC and run: micronucleus firmware.hex

> Please plug in the device ...
> Press CTRL+C to terminate the program.
> Device is found!
connecting: 40% complete
> Device has firmware version 2.3
> Device signature: 0x1e930b
> Available space for user applications: 6522 bytes
> Suggested sleep time between sending pages: 7ms
> Whole page count: 102  page size: 64
> Erase function sleep duration: 714ms
parsing: 60% complete
> Erasing the memory ...
erasing: 80% complete
> Starting to upload ...
writing: 100% complete
>> Micronucleus done. Thank you!

Usage

Connect I2C device(s) to FOSDEM-85 board (SDA is pin 0, SCL is pin 2, VCC/GND) and connect USB cable to PC: wiring

# i2cdetect -l | grep tiny
i2c-9   i2c             i2c-tiny-usb at bus 003 device 003      I2C adapter

# i2cdetect -y 9
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- 38 -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: 50 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

# i2cset -f -y 9 0x38 0xfe
# i2cset -f -y 9 0x38 0xff

(This is with a setup with a 24c64 eeprom and pcf8574a gpio extender).

Notice that the green led will flash for each I2C transaction as debugging feedback.

Thanks to Till Harbaum for the original firmware and Olimex for the nice FOSDEM-85 board.

i2c-tiny-usb-fosdem85's People

Contributors

jacmet avatar

Watchers

 avatar  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.