[SOLVED] Cannot change SRF08 address
hello,
i trying work several srf08 sensors (on arduino uno), in order so, have change addresses... but, although follow data-sheet's instructions, can't that.
here code :
i don't know do, hope able help. in advance.
i trying work several srf08 sensors (on arduino uno), in order so, have change addresses... but, although follow data-sheet's instructions, can't that.
here code :
code: [select]
wire.begin();
wire.begintransmission(old_address);
wire.send(0);
wire.send(0xa0);
wire.endtransmission();
wire.begintransmission(old_address);
wire.send(0);
wire.send(0xaa);
wire.endtransmission();
wire.begintransmission(old_address);
wire.send(0);
wire.send(0xa5);
wire.endtransmission();
wire.begintransmission(old_address);
wire.send(0);
wire.send(new_address);
wire.endtransmission();i don't know do, hope able help. in advance.
it doesnt accept addresses according this:
http://www.robot-electronics.co.uk/htm/srf08tech.shtml
http://www.robot-electronics.co.uk/htm/srf08tech.shtml
Arduino Forum > Using Arduino > Sensors > [SOLVED] Cannot change SRF08 address
arduino
Comments
Post a Comment