LabWired The easy way to build hardware
board I/O module

DS18B20 Temperature

The DS18B20 Temperature is a board I/O module in the LabWired part catalog. Its catalog type is ds18b20. It connects to the MCU over GPIO. The catalog gives a supply range of 3–5.5 V. It has 3 pins. This part is its pins. There is no separate device model because the MCU’s own GPIO/PWM/ADC model already is the simulation.

From the catalog: 1-Wire bit timing is not modelled; temperature is host SimInput for labs that abstract the bus.

Key facts

CategoryBoard I/O modules
Catalog typeds18b20
InterfaceGPIO
Supply range3–5.5 V
Pins3
DatasheetMaxim Integrated DS18B20 programmable resolution 1-Wire digital thermometer datasheet

What LabWired simulates

What is simulated

Pins only, by design

How it was validated

Not applicable. No device model to validate — see what is simulated, above.

DS18B20 Temperature pinout

PinElectrical typeFunction
VDD Power input Supply
GND Power input Supply
DQ Open-drain GPIO

How to simulate the DS18B20 Temperature in LabWired

  1. Open the Playground at app.labwired.com and place an MCU board.
  2. Add the DS18B20 Temperature (catalog type ds18b20).
  3. Connect VDD and GND to the supply and ground of the board. Use a supply inside the catalog range of 3–5.5 V.
  4. Connect DQ to a free GPIO pin.
  5. Run the firmware. It reads and drives these pins through the GPIO, PWM and ADC models of the MCU. The part has no separate device model.

Related Board I/O modules

All Board I/O modules · All parts

Modelled from Maxim Integrated DS18B20 programmable resolution 1-Wire digital thermometer datasheet.