I need help changing the address of the SRF01. I'm using 3 sensors, but I can't change the default address.
I don't know if I need to initialize the sensor (get it working) or just send the commands?
void setup()
{
delay(70);
digitalWrite (10,0x01);
digitalWrite (10,0xA0);
delay(70);
digitalWrite (10,0x01);
digitalWrite (10,0xAA);
delay(70);
digitalWrite (10,0x01);
digitalWrite (10,0xA5);
delay(70);
digitalWrite (10,0x01);
digitalWrite (10,0x02);
}
void loop()
{
}
The datasheet says to use a break between commands so I'm guessing 70ms is enough.This has no effect by itself. And I tried using it in my working code (I can read the sensor with no problem,and in the range I want it to work). I'm using the UNO board. Any help is greatly appreciated!
Thanks in advance!