Arduino-library-I2CtunnelW

Arduino-library-I2CtunnelW © LGPL

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

  • 331 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 Bluetooth Basic Tutorial

by Mayoogh Girish

  • 454,918 views
  • 42 comments
  • 239 respects

Home Automation Using Raspberry Pi 2 And Windows 10 IoT

Project tutorial by Anurag S. Vasanwala

  • 285,812 views
  • 95 comments
  • 672 respects

Security Access Using RFID Reader

by Aritro Mukherjee

  • 229,820 views
  • 38 comments
  • 239 respects

OpenCat

Project in progress by Team Petoi

  • 196,428 views
  • 154 comments
  • 1,366 respects
Add projectSign up / Login