i have a project where a have a few DS18B20 temperature sensors (4 up to 12) on 3 busses ,
each bus having 4 sensors. I can read them , no problem. There are 4 sensors in each room
that i need to monitor, so it always comes in blocks of 4 (max 3 rooms)
But my question is , this project will need to be duplicated. I will provide the sensors with a tag
on each one stating his address. I have wrote a piece of windows software that communicates with
the arduino over Serial. Now i would want to have the user to be able to add or replace sensors by itself. I could do that by sending the address of each sensor over serial to the arduino from within the windows software. No problems so far.
My problem starts when the arduino recieves an event that he needs to write a new address for a certain sensor. I number the sensors 1,2,3 and 4 for the first room, 5,6,7,8 for the next and so on. There is some code here on the forum that lets you store the hex values of the address, but i can't get it to work. Does anyone have some advice on how to write such an address (array of 8) , read it on boot and set the addres of the onewire sensor?
that would be a life saver , thanks in advance.