First post, got a question right away. So I was planning to run two of the DRV2605 with an Arduino. For this, I will need to change the I2C address of one of them. In the manual it says to "first set the EN pin high".
Read into the wire library some more but sadly did not find a solution. Could anybody give me a hint?
Tried (several versions of) this code to no avail.
Code: Select all
#include <Wire.h>
#define CHANGE_ADDR_CMD 0xB4
#define DEFAULT_ADDR 0x5A
#define NEW_ADDR 0x5B // Value between 0x01 and 0x7E
void setup() {
Wire.begin();
Wire.beginTransmission(DEFAULT_ADDR);
Wire.write(CHANGE_ADDR_CMD);
Wire.write(NEW_ADDR);
Wire.endTransmission();
}
void loop() {
}
"The DRV2605 is controlled by a series of I2C registers. To access these registers, first set the EN pin high and then use the 7-bit I2C address 0x5A. Table 2 shows the 7-bit address, the I2C read address, and the I2C write address."
//edit
So I suppose you didn't add the extra pin for EN. Does that mean there is no way to change the I2C address? Can I try accessing the pin directly from the VSSOP and if so, how would I go about it?
Really wouldn't like buying a different breakout :/