I know you can register the Arduino using Wire.begin(0x02) īut I require something similar to this (pseudo code) Wire.begin(0x02, 0x03, 0x11) Īnd when a request is received, I need to know with what address the Arduino was queried. I could use one Arduino per sensor, which seems silly as I can perform all these readings with one Arduino pro-mini. I would like to use one Arduino to act as all these devices by registering itself with all of the above addresses, and responding appropriately with the readings. The Telemetry receiver has a few i2c plugs which connects to multiple sensors (current 0x02, voltage 0x03, airspeed 0x11, etc) each that have a fixed i2c address which the Telemetry receiver expects. I want to use an Arduino to act as Telemetry sensors for Spektrum Telemetry. This is probably not something one would normally do, but here is my reason for doing it: It allows the communication with I2C devices like temperature sensors, realtime clocks and many others using SDA (Data Line) and SCL (Clock Line). But I require that the Arduino acts as multiple devices by registering itself with multiple i2c addresses. This library allows you to communicate with I2C and Two Wire Interface devices, and control each step of any I2C transaction. I would like to use an Arduino as an i2c slave.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |