Maybe someone have something like the example:
output temperature sensor DS18B20 address and assign it a name, on the arduino web server for example- room temperature, outdoor temperature ...
I want to all the sensors are connected to a single cable and make configuration through web server. I use enc28j60 controller.
Maybe even I can help (first time), I did it this way:
Find out MAC address for each Onewire device and name it:
DeviceAddress TN = { 0x28, 0x44, 0x33, 0x9D, 0x01, 0x00, 0x00, 0xAA };
DeviceAddress TO = { 0x28, 0x49, 0x45, 0x9D, 0x01, 0x00, 0x00, 0x11 };
DeviceAddress TP = { 0x28, 0xAE, 0x2E, 0x9D, 0x01, 0x00, 0x00, 0xDC };
DeviceAddress TV = { 0x28, 0xB7, 0x22, 0x9D, 0x01, 0x00, 0x00, 0x30 };
DeviceAddress TOUT = { 0x28, 0x3E, 0x3B, 0x9D, 0x01, 0x00, 0x00, 0xC3 };
Set sensor and precision:
sensors.begin();
sensors.setResolution(TN, TEMPERATURE_PRECISION);
sensors.setResolution(TO, TEMPERATURE_PRECISION);
sensors.setResolution(TP, TEMPERATURE_PRECISION);
sensors.setResolution(TV, TEMPERATURE_PRECISION);
sensors.setResolution(TOUT, TEMPERATURE_PRECISION);
Get Temperature reading in HTML code:
getTemperature(TOUT);
client.println(F("<h3><font color='green'>OUTSIDE TEMPERATURE</h3>"));
client.println(F("Temp °C:"));
client.print(tempC);
I would like to do the following:
http://me arduino
You connect the new sensor with the address 0x00, 0x11, 0x22
Please assign a sensor name ...|Room_| and press ENTER
I do not know what will be the address of the connected sensor