What Is 1-Wire
Content on WhatAnswers is provided "as is" for informational purposes. While we strive for accuracy, we make no guarantees. Content is AI-assisted and should not be used as professional advice.
Last updated: April 11, 2026
Key Facts
- Created by Dallas Semiconductor in the late 1980s, with over 130 million iButton devices sold worldwide since its introduction
- Uses a single open-drain data line with pull-up resistor, transmitting at 16.3 kbit/s standard speed and up to 125 kbps in overdrive mode
- Each device has a unique 64-bit ROM ID with an 8-bit family code, allowing multiple independent devices to share the same single conductor
- The DS18B20 thermometer provides ±0.5°C accuracy from -10°C to +85°C with measurement range of -55°C to +125°C over a single wire
- Thermochron iButton devices store up to 2048 temperature readings at configurable intervals from 1 to 255 minutes for portable data logging
Overview
1-Wire is a single-conductor, low-speed serial communication protocol that was developed by Dallas Semiconductor in the late 1980s as a solution for minimizing wiring in portable data-carrying applications. The protocol uses a half-duplex, bidirectional bus that combines data transmission and power delivery over a single conductor plus ground reference, reducing the complexity and cost of hardware implementations compared to multi-wire alternatives.
The genius of 1-Wire design lies in its ability to power devices through a small integrated capacitor (approximately 800 pF) that stores charge during communication, eliminating the need for separate power lines in many applications. After Dallas Semiconductor was acquired by Maxim Integrated in 2001, and subsequently by Analog Devices in 2021, the protocol continued to be widely adopted in industrial, consumer, and IoT applications, with iButton devices alone exceeding 130 million units sold worldwide.
How It Works
The 1-Wire protocol operates on a master-slave architecture where a single master device (typically a microcontroller or computer) controls communication on the bus, and multiple slave devices respond to commands. The physical bus consists of a single open-drain wire with a pull-up resistor (typically 4.7 kΩ) that pulls the line to 3.3V or 5V, allowing any master or slave device to briefly pull the line low through an output MOSFET to transmit information.
- Reset and Presence Detection: Communication begins with a reset pulse where the master pulls the bus low for at least 480 microseconds, resetting all slave devices. Following this, any present slave devices signal their existence by holding the bus low for 60+ microseconds, creating a "presence pulse" that confirms connectivity.
- Timing-Based Bit Transmission: Data transmission occurs within 60-microsecond time slots, with each slot representing one bit. To transmit a logical "1", the master sends a brief 1-15 microsecond low pulse. A logical "0" requires the master to hold the bus low for 60-120 microseconds, allowing synchronization without a dedicated clock line.
- Addressing and Device Selection: Each 1-Wire device contains a 64-bit ROM identifier consisting of an 8-bit family code and a unique 48-bit serial number, plus an 8-bit CRC checksum. This allows the master to address individual devices or broadcast commands to all devices on the bus simultaneously.
- Power Delivery Mechanism: Slave devices use parasitic power derived from the pull-up resistor and stored in an on-chip capacitor during active communication. When the bus is pulled low by the master, the capacitor charges and provides energy during periods when the data line is inactive, eliminating the need for separate power connections.
- Speed Modes: The protocol supports two operational modes: standard mode operating at approximately 16.3 kilobits per second, and overdrive mode at 125 kilobits per second (roughly 10 times faster), allowing developers to balance speed requirements with power consumption and range constraints.
Key Comparisons
| Feature | 1-Wire | I2C | SPI |
|---|---|---|---|
| Number of Data Lines | 1 (plus ground) | 2 (SDA, SCL) | 3-4 (MOSI, MISO, CLK, CS) |
| Standard Speed | 16.3 kbps | 100-400 kbps | Up to 50+ Mbps |
| Maximum Devices | Up to 100 slaves | Up to 127 addresses | Limited by CS pins |
| Parasite Power Support | Yes (capacitor-based) | No (requires separate power) | No (requires separate power) |
| Cable Length Range | Longer distances (100+ feet) | Short range (3-10 feet typical) | Very short range (inches typical) |
Why It Matters
- Minimal Wiring Requirements: By combining data and power delivery into a single conductor, 1-Wire dramatically reduces the physical wiring and connector complexity in devices like temperature sensors, data loggers, and portable electronic keys, lowering manufacturing costs and improving reliability.
- Widespread Adoption in IoT: The protocol's low power requirements and parasitic power capability make it ideal for battery-powered and energy-harvesting applications, supporting the proliferation of smart sensors in industrial monitoring, environmental data collection, and building automation systems.
- Proven Temperature Sensing: Popular devices like the DS18B20 digital thermometer, offering ±0.5°C accuracy and measurement ranges from -55°C to +125°C, have become industry standards for embedded temperature monitoring, available at minimal cost with extensive software library support across all major platforms.
- Portable Data Logging: iButton devices and Thermochron data loggers can record up to 2,048 temperature values at intervals ranging from 1 to 255 minutes, enabling portable temperature monitoring for pharmaceutical storage, food transport, and supply chain verification without requiring active power management.
1-Wire remains relevant today despite newer protocols because of its simplicity, reliability, and minimal hardware overhead. Whether implementing temperature monitoring in remote locations, creating asset tracking systems, or building low-cost sensor networks, 1-Wire continues to provide a practical and proven solution for applications where wiring simplicity and power efficiency are priorities. The protocol's longevity—spanning over three decades—demonstrates its fundamental value in the embedded systems and IoT landscape.
More What Is in Daily Life
Also in Daily Life
More "What Is" Questions
Trending on WhatAnswers
Browse by Topic
Browse by Question Type
Sources
- 1-Wire - WikipediaCC-BY-SA-3.0
- 1-Wire Extended Network Standard - Analog DevicesAnalog Devices
- 1-Wire Protocol Theory of Operation - MicrochipMicrochip
- iButton and 1-Wire Technology - Digi-KeyDigi-Key
- 1-Wire Protocol Basics - RF Wireless WorldRF Wireless World
Missing an answer?
Suggest a question and we'll generate an answer for it.