https://github.com/domochip/wds18b20
Large DS18B20 network and D1Mini under Tasmota
https://github.com/domochip/wds18b20
d1-mini esp8266 jeedom onewire tasmota tasmota-templates temperature wireless
Last synced: 4 months ago
JSON representation
Large DS18B20 network and D1Mini under Tasmota
- Host: GitHub
- URL: https://github.com/domochip/wds18b20
- Owner: Domochip
- Created: 2017-11-26T16:41:46.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-11-24T10:58:59.000Z (6 months ago)
- Last Synced: 2025-02-01T20:04:06.631Z (4 months ago)
- Topics: d1-mini, esp8266, jeedom, onewire, tasmota, tasmota-templates, temperature, wireless
- Homepage:
- Size: 7.84 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WDS18B20
This project allows you to build a wide DS18B20 sensors network **over a house**
It uses :- a D1 Mini (ESP8266)
- some DS18B20 sensors
- a customized Tasmota firmware## Build your 1-Wire bus
In order to get a wide 1-Wire bus (one that cover a house), Dallas provides some recommendations into their application note AN148.
This project use the Improved Interface bellow that is able to support a **200 meters long bus**:

This one requires a pin for reading the bus state and another one as output to drive the bus low : I named it the "Dual Pin OneWire"
**Warning : If you build a large 1 Wire bus inside your house, keep in mind that some voltage may appear on this one by induction. You need to have a good knowledge about electricity and associated risks!!!**
## Build your WDS18B20
All files are inside `schematic` subfolder and has been designed with KiCad
### Schematic

### PCB

### Print your box
Box project (Fusion 360) and STL files can be found into `box` folder

## Code/Compile/Flash
A specific variation in the Tasmota code needs to be done before compilation.
**Compile it yourself** by following bellow steps **OR precompiled binaries are available in Releases**.### Prepare compilation environment
You need to follow Tasmota guides to be ready for compilation:
### Code
You need to edit `tasmota/tasmota_xsns_sensor/xsns_05_ds18x20.ino` file
1. enable `#define DS18x20_USE_ID_AS_NAME` by removing the '//'
2. replace `#define DS18X20_MAX_SENSORS 8` by `#define DS18X20_MAX_SENSORS 16`
3. For PCB 3.0 and lower
1. replace all `digitalWrite(DS18X20Data.pin_out, HIGH);` by `digitalWrite(DS18X20Data.pin_out, newLOW);`
2. replace all `digitalWrite(DS18X20Data.pin_out, LOW);` by `digitalWrite(DS18X20Data.pin_out, HIGH);`
3. replace all `digitalWrite(DS18X20Data.pin_out, newLOW);` by `digitalWrite(DS18X20Data.pin_out, LOW);`
4. save
5. Compile Tasmota
6. Rename resulting tasmota.bin to tasmota-WDS18B20-12.1.0.bin### Flash
You will find all available tools to flash tasmota in the official documentation:
## Run
### Tasmota Configuration
You need to apply this Template:
`{"NAME":"WDS18B20","GPIO":[0,0,0,0,0,0,0,0,1344,0,1312,0,0,0],"FLAG":0,"BASE":18,"CMND":"Module 0|TelePeriod 60"}`To change number of digit after the dot on reported temperatures:
`TempRes 2`To Enable arithmetic mean over teleperiod:
`SetOption126 1`For more details, please refer to the Tasmota documentation:
## And finally
