I am looking around for a solution to interface the
PC - USB - interface to a I2C and/or SPI interface of different chips (e.g. I2C EEPROM or any other chip) with the help of an arduino.
The connection would be:
[PC]<----(USB)---->[ARDUINO]<----(I2C)---->[CHIP e.g. I2C EEPROM]
and/or
[PC]<----(USB)---->[ARDUINO]<----(SPI)---->[CHIP]
So the chip (e.g. I2C-EEPROM) could be controlled via PC (by serial over USB), the PC could read or program registers, query the I2C bus for devices/adresses etc.
I could not find any solution, is there any ready-made?
You can send data to the Arduino over the serial port, and get responses from it.
If the data you send is "Pretty please read from I2C EEPROM address 47 and tell me the value", the Arduino could read this message, parse it, and do as instructed.
Of course, there is the possibility that you could make the data sent a little easier to parse.
Once the Arduino knows what to do, doing it is trivial.
So the chip (e.g. I2C-EEPROM) could be controlled via PC
Hi,
thank you for your quick answer, that's mainly what I thought of.
But I hoped, that there already could be a solution or a library or so, that I just could use.