lucullusTheOnly / TinyWire

Composite Master and Slave I2C library for Atmels ATTiny microcontrollers
108 stars 26 forks source link

USB-I2C gateway #23

Closed PizzaProgram closed 3 years ago

PizzaProgram commented 4 years ago

Hi, Sorry for this question, but I'm looking for a way to turn multiple Digispark AtTiny85 boards into unique USB>I2C adapters.

Can this library used somehow to:

  1. simply load the program into an Arduino IDE
  2. change the name + Serial (to make those boards unique)
  3. upload to the board and use?

(First I have tried I2C-Tiny-USB but it has a serious bug = Stops working after reboot)

Thank you in forward for any solutions!

lucullusTheOnly commented 3 years ago

The I2C part of that project wouldn't be the big concern I think. While I'm currently not developing the library and will not guarantee for its work, it should be fine for doing the I2C part. Otherwise you could go to the TinyWireM library. But the bigger part is to build the USB interface. The readme of the linked project states, that the USB interface is done purely in software. You would need to also do that. I think there are already implementations (like V-USB), though I don't know, if these would fit on the ATtiny85.

So the answer would be: It can do the I2C part. The rest is out of scope for me and this repo.

I wish you good luck with your project.