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. The library and files all contain the word wire because Atmel (the chip at the heart of the Arduino) devised a system called Two Wire Interface or TWI which is their flavor of I2C. Arduino/libraries/Wire directory on the machine you write your code on. I could use one Arduino per sensor, which seems silly as I can perform all these readings with one Arduino pro-mini. The Wire Library is a series of files in plain text that exist in the. 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: But I require that the Arduino acts as multiple devices by registering itself with multiple i2c addresses. Datasheet The full datasheet is available as a downloadable PDF from the link below: Download the Arduino Nano RP2040 Connect datasheet Installation Arduino IDE 1.8.X The Nano RP2040 Connect can be programmed through the Classic Arduino IDE 1.8.X. I would like to use an Arduino as an i2c slave. Core The Nano RP2040 Connect uses the Arduino Mbed OS Nano Boards core.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |