Skip to content

Repository for Wireless Sensor code (ATMega328P, NRF24L01, and DS18B20)

Notifications You must be signed in to change notification settings

flying4fun/SensorModulePipe

Repository files navigation

SensorModulePipe

Repository for Wireless Sensor code (ATMega328P, NRF24L01, and DS18B20)

Due to an issue with v1.1 breakout pin mapping in eagle, the silkscreen mapping is incorrect. Please check Module_breakout_silkscreen_mapping.text

Another idea for module addressing is to use the serial number of the DS18B20 chip.

void discoverOneWireDevices(void) { byte i; byte present = 0; byte data[12]; byte addr[8];

Serial.print("Looking for 1-Wire devices...\n\r"); while(ds.search(addr)) { Serial.print("\n\rFound '1-Wire' device with address:\n\r"); for( i = 0; i < 8; i++) { Serial.print("0x"); if (addr[i] < 16) { Serial.print('0'); } Serial.print(addr[i], HEX); if (i < 7) { Serial.print(", "); } } if ( OneWire::crc8( addr, 7) != addr[7]) { Serial.print("CRC is not valid!\n"); return; } } Serial.print("\n\r\n\rThat's it.\r\n"); ds.reset_search(); return; }

(http://www.hacktronics.com/Tutorials/arduino-1-wire-address-finder.html)

About

Repository for Wireless Sensor code (ATMega328P, NRF24L01, and DS18B20)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Other 100.0%