Arduino-library-I2Ctunnel

Arduino-library-I2Ctunnel © LGPL

For Arduino Yùn, adds new REST commands, enabling tunnelling for I2C messages.

  • 695 views
  • 0 comments
  • 0 respects

Components and supplies

Ard yun
Arduino Yun
×1
Maxim ds1307%2b
Real Time Clock (RTC)
I used a schield with DS1307 and AT24C32 (EEPROM)
×1

About this project

For Arduino Yùn, adds new REST commands, enabling tunnelling for I2C messages:

  • /arduino/I2C/<device>/B|W/<address>/<count>/ -> I2C read data (dataHEX)
  • /arduino/I2C/<device>/B|W/<address>/<count>/<dataHEX> -> I2C write data

This library allows to execute some tasks on linux side (using python, php, javascript ...) and not inside the arduino sketch. This can be a great help, because the Arduino Yùn sketch space is limited to 28.672 byte. In examples you can see how to set the linux clock from RTC, or how to adjust the RTC clock from a WEB page, or how put and get a string in EEPROM.

Note: Tested using Arduino YUN and DS1307, AT24C32 - The code is optimized for smallest footprint.

This library uses the I2C library (https://github.com/rambo/I2C)

The analog I2Ctunnelw uses the Wire library (https://www.arduino.cc/en/reference/wire)

See also Arduino-library-getDS1307ts.

Code

Github
https://github.com/msillano/Arduino-library-I2Ctunnel
Github
https://github.com/rambo/I2C

Comments

Similar projects you might like

Arduino-library-getDS1307ts

by msillano

  • 713 views
  • 0 comments
  • 0 respects

Alarm Clock

by Tittiamo

  • 47,047 views
  • 61 comments
  • 48 respects

A very simple way to power Arduino

by Giovanni Carrera

  • 23,070 views
  • 3 comments
  • 9 respects

Alarm Clock and Timer Working Standalone

Project showcase by ozyRonald

  • 5,643 views
  • 6 comments
  • 10 respects

Berlin Clock

Project tutorial by Marc De Loor

  • 4,032 views
  • 4 comments
  • 26 respects
Add projectSign up / Login