Skip to content

Comments

DS18B20 temperature sensor#1690

Open
thebino wants to merge 3 commits intomeshcore-dev:devfrom
thebino:feature/DS18B20-temperature-sensor
Open

DS18B20 temperature sensor#1690
thebino wants to merge 3 commits intomeshcore-dev:devfrom
thebino:feature/DS18B20-temperature-sensor

Conversation

@thebino
Copy link

@thebino thebino commented Feb 13, 2026

This PR will add support for a DS18B20 3-wire temperature sensor.

image Screenshot_20260214-142459

@thebino thebino changed the base branch from main to dev February 13, 2026 21:49
@awhite2000
Copy link

In the diagram above - technically speaking, the 1-Wire bus doesn't require that the sensor is connected to the VCC line, it's enough to connect it to GND and connect the data line to a pull-up resistor.

@thebino
Copy link
Author

thebino commented Feb 20, 2026

@awhite2000 you're not wrong about this. Those D18B20 support two power modes

  • normal mode (3-wire)
  • parasite mode (2-wire)

For temperature sensors a stable and continuous power supply is recommended. Also the parasite mode requires additional configuration which might not be supported by every board. So I kept it simple with 3-wire

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants