Arduino-library-I2CtunnelW

Arduino-library-I2CtunnelW © LGPL

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

  • 514 views
  • 0 comments
  • 2 respects

Components and supplies

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

About this project

Arduino-library-I2CtunnelW

For Arduino Yùn, this library adds 2 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 Wire library (https://www.arduino.cc/en/reference/wire)

The analog I2Ctunnel uses the I2C library

see also Arduino-library-getDS1307ts (timestamp)

Code

Github
https://github.com/msillano/Arduino-library-I2CtunnelW

Comments

Similar projects you might like

Arduino-library-getDS1307ts

by msillano

  • 719 views
  • 0 comments
  • 0 respects

Arduino-library-I2Ctunnel

by msillano

  • 706 views
  • 0 comments
  • 0 respects

Introduction to the Blynk IoT service

by Rafa Juárez

  • 2,355 views
  • 1 comment
  • 9 respects

Alarm Clock

by Tittiamo

  • 46,965 views
  • 59 comments
  • 47 respects

A very simple way to power Arduino

by Giovanni Carrera

  • 23,072 views
  • 3 comments
  • 9 respects

Bridging the Raspberry Pi and the Arduino

by Daniel Porrey

  • 12,407 views
  • 10 comments
  • 38 respects
Add projectSign up / Login