Giter VIP home page Giter VIP logo

arduino-i2c-port-expander's People

Contributors

jaretburkett avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

arduino-i2c-port-expander's Issues

Suggestion: Add the ability to Interrupt on change, and power save sleep.

Two suggestions, the PCF8574 etc. has the ability to generate an interrupt on the host on change of input pins. It would be nice to have that feature available with this expander.

Also, power save/sleep mode. Some (most? all?) of the targets this can be used on have sleep mode and wake on change. I'm not sure if that would be enough to wake on I2C activity or not but it would be another nice thing to have if it can be implemented.

using to emulate a PCA9685

I'm building a Donkey2 autonomous RC car(DIYRoboCars.com) and they use an rPi controlling the 2 RC servos via a PCA9685( I2C PWM driver). It works great except to train the neural network we have to drive the vehicle manually and record video and the PWM/Servo signals. How it's done now is it requires driving the car va WiFi connection to the rPi using a table/phone/webpage. ugh.

I want to replace the PCA9685 board with an Arduino which emulates the PCA9685 driver but can also be switched so the Arduino reads PWM signals from the real RC receiver and maps those to the same servo outputs normally driven vi the I2C interface. I'll have to add a change to the rPi/Donkey code to poll/read the PWM values from the emulator with an added method to read the current PWM settings/values.

Adafruit's library for their PCA9685 board:
https://github.com/adafruit/Adafruit-PWM-Servo-Driver-Library

If you're interested in any of this let me know.

Doesn't work for me on an ATtiny85...

Hi,

I was really pleased with this library/application since I only need two more digital I/Os and I'm using the I2C bus on an ESP8266 "D1 mini" for an OLED and an EEPROM anyway.

So I took an ATtiny85 out of the craft box, downloaded and installed the "TinyWireS" library and then programmed "ATtiny_Slave_I2C_Port_Expander" (everything in the default settings) into the ATtiny.

SDA is connected to pin 5 (PB0/GPIO0) and SCL to pin 7 (PB2/GPIO2).

As soon as the ATtiny is connected to the I2C, communication via the I2C is disrupted and my OLED display only shows nonsense. As soon as SDA is connected, nothing works on the I2C.

Did I miss something? Are there any things that need to be taken into account if no other participants are operating on the I2C?

Thank you.

Regards, Thorsten

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.