Skip to main content

Questions tagged [1-wire]

1-Wire is a microlan protocol developed by Maxim-Dallas, similar to I2C and SPI, but using a single Data/Ground pair. Typically includes Parasitic Power on the Data line, through the use of strict communication timing.

Filter by
Sorted by
Tagged with
8 votes
3 answers
1k views

How are "unique IDs" generated for 1wire devices?

(I previously posted this question on the Arduino SE, but it was downvoted as "not Arduino enough", so I post it here in the hope it will be better received.) If I wanted to make my own ...
Sod Almighty's user avatar
  • 1,465
0 votes
0 answers
56 views

MAX31888 on ATtiny

I'm using an ATtiny13A, which I'm trying to read a MAX31888 temperature sensor with. I've been given one of said sensors on a breakout board wired according to this diagram: I'm using this library to ...
Boyfinn's user avatar
  • 101
1 vote
0 answers
199 views

What may cause a too long DS2482 reset pulse?

We experience odd behavior with the DS2482-800 8-Channel 1-Wire Master. Often, when reconnecting a 1-Wire slave (DS28E17 1-Wire-to-I2C Master Bridge in our case), communication does not resume because ...
Bosz's user avatar
  • 111
4 votes
1 answer
1k views

Where do 1-wire device (such as DS18B20) manufacturers obtain their addresses?

We know that 1-wire devices, such as the DS18B20 temperature, sensor have 1 64 bit address, of which 8 bits is 0x28 and another 8 bits is the CRC. We know that the address is burned into the chip at ...
KDM's user avatar
  • 173
0 votes
1 answer
95 views

1-wire slew rate and active pullup control in firmware

I'm using the 1-Wire protocol to communicate with around 24 DS18B20 devices distributed on 3 stubs, each stub being 2m long, all connected to a bus 1m in length, with 100 ohm resistors on each stub ...
dwjamie's user avatar
2 votes
1 answer
3k views

STM32 UART single-wire half-duplex communication

I tried to make single-wire half-duplex communication with a UART using the STM32F103C8 controller. In single-wire half-duplex communication, a TX pin is used for transmitting and receiving the data. ...
Surendran 's user avatar
4 votes
2 answers
408 views

What is this single-wire bidirectional communications protocol?

I'm attempting to build an interface for a 1985 IBM typewriter keyboard. This is interesting because it's bidirectional --- the keyboard has a screen on it. I was expecting some variation of XT or AT ...
David Given's user avatar
  • 1,170
3 votes
0 answers
142 views

Power switch for 1 wire bridge DS2484 loads i2c bus

I am using a DS2484 chip to add one wire communication to my device. This chip is a bridge between i2c on the MCU side and 1W on the sensor side. I have other sensors on the i2c bus. My device is very ...
Alexander Ohm's user avatar
0 votes
0 answers
84 views

NUCLEO-GO71RB with one-wire AT21CS11 EEPROM

I am trying to interface an AT21CS11 EEPROM with a SMT32 micro on a Nucleo board. I have adapted the code of the certified demo https://github.com/MicrochipTech/SWI-Connector-Demo.git to the SMT32 to ...
Mina's user avatar
  • 11
1 vote
1 answer
100 views

How to make DHT22 shut up while I talk to another device on the same bus

I have a project where multiple devices have to be connected to the same bus. One of them is a DHT22, another is another controller. With the second controller I can communicate which ever way I want ...
Gambanishu Habbeba's user avatar
2 votes
1 answer
620 views

1 wire to 2 wire bidirectional UART

I'm working on diagnostics program for my old GM diesel, the old GM diagnostics uses a 1 wire bi directional serial protocol, 5v HIGH, 0v LOW, with the PCM data line being held high when idle, and the ...
dbtech7's user avatar
  • 21
4 votes
3 answers
1k views

Can someone help me understand this code for the ADXL345 accelerometer?

I'm trying to learn how to read the angles measured from an ADXL345 accelerometer (Adafruit) for a beginner project where the sensor will be attached to a short stick and I want to read the angles I'm ...
user avatar
2 votes
0 answers
176 views

Figuring out communication protocol

Complete beginner trying to learn by doing here... Background: I have a wine cooler (for beer) that I want to remote control the lights on by adding a microcontroller. I'm planning on using a ESP32 ...
Linus's user avatar
  • 21
0 votes
2 answers
2k views

Connecting 1-Wire DS1820 with 5VDD - needs voltage divider?

I am trying to use a DS1820 Temperature Sensor on 5V VDD with an ESP32. Now I have read on different websites that I need a pull-up (4k7) for the data line but some state that it's fine to put the ...
Daniel Do's user avatar
  • 311
0 votes
1 answer
139 views

ATMega2561 - How to connect this ambient light sensor using 1-Wire?

I am trying to connect the following components to an AVR ATMega2561: 1-Wire Master Interface DS2484 datasheet here RGB Ambient Light Sensor APDS-9250 datasheet here I have already managed to ...
nooblet's user avatar
2 votes
3 answers
4k views

Fine-tuning/calibrating DS18b20 thermometer via 1-wire

I am trying to enable remote reading of the temperature gauges in my furnace room by adding DS18B20 thermometers. Since I had some Raspberry Pis and DS18B20s, and ...
JoSSte's user avatar
  • 129
0 votes
2 answers
1k views

Debugging long 1-wire line with Raspberry PI

I'm trying to setup a network of temperature sensors for my house connected to a Raspberry PI. I'm using Cat6 unshielded cable (data + ground running on one pair, 5v/ground running on another). To ...
hollandlef's user avatar
0 votes
1 answer
114 views

Design 1-Wire slave device to get the state of a switch

I have an MCB (Miniature Circuit Breaker) whose state has to be communicated over 1-Wire. I can get the MCB state as 0/5V signal. How can I develop this to act as a 1-Wire Slave device so that it can ...
Lakmal Premaratne's user avatar
0 votes
2 answers
525 views

Can BME280 sensor's output be converted to 1-wire protocol?

Teltonika FMB125 is an advanced GPS Tracking device with a 1-Wire interface to monitor temperature data. I tested a waterproofed version of the DS18B20 temperature sensor with Teltonika FMB125 and I ...
TechnoEye's user avatar
0 votes
0 answers
36 views

Sequential access of 1-Wire devices

I need to access sequentially 64 1-wire devices by indexing them, this because i need to know the exact position of those single devices (for example, the DS2401 on position 25 has 000xFFF456 serial). ...
VirtApp's user avatar
  • 579
1 vote
2 answers
304 views

ds18b20 temperature sensor data changes with additional lead wire

I've been working with some ds18b20 temperature sensors and I noticed something funny which I can't wrap my head around. For starters, I know the ds18b20 sensors are not "top of the line" and I've ...
ThatsRightJack's user avatar
0 votes
0 answers
42 views

How can I quickly make a long string of 3-pin components?

I prepared a 7 m long strip with 7 DS18B20 and, lacking a better idea, I soldered the DS18B20 pins directly to wires, where all but the last sensor have a 3-point star connection: DS18B20 leg, wire to ...
FarO's user avatar
  • 1,316
3 votes
3 answers
15k views

STM32 USART 1-wire communication

I'm fairly new to embedded developping and I'm trying to read and write to a 1-wire device (DS18B20) using USART. After digging around I found two alternatives: Connecting USART RX and TX pins with ...
DTl's user avatar
  • 87
0 votes
0 answers
37 views

How can I remove the return paths for a series of circuits and still know when they are completed? NFC/RFID? Multiplexing? Goubau line?

Apologies for the vague title. And know that my electronics knowledge is rather limited. Also my circuit diagrams may be incorrect. I currently have something like this, which represents contacts on ...
SirPattalot's user avatar
0 votes
2 answers
528 views

Why is the 1-wire pull-up resistor not integral?

I've read that the 1-wire pullup resistor is included so that either the master or the slave device can pull the line low in order to communicate. Makes perfect sense: if the device had a transistor ...
KDM's user avatar
  • 173
0 votes
1 answer
122 views

1-wire interfacing with motor (design suggestion and review)

For my application, I need to deploy many sensors and a motor. So I chose the 1-wire bus protocol from Dallas/Maxim. Also, I am using temperature sensors which support one-wire protocol. So I thought ...
raj-priyanshu's user avatar
0 votes
1 answer
271 views

STM32L4 μs delay

I am trying to implement a onewire protocol on an STM32L432KCU, so I need quite precise timing (need delay precise as 2μs). I was wondering if there is any way to do this using the HAL drivers (...
TrieHard's user avatar
0 votes
2 answers
148 views

1-wire differentiate read from write

I've been reading documentation on 1-wire and I think I'm having a brainfart. How does the slave differentiate a read slot from a write slot? reference: https://www.maximintegrated.com/en/app-notes/...
serpixo's user avatar
  • 103
0 votes
1 answer
55 views

More than 1-Wire interface (SWI) (ex DS24132) discovery and identifications

Just started experimenting with 1-wire (SWI) communications. I am currently waiting for my DS2413 and iButtons to arrive. I have been searching for information and there are lots of examples. My ...
Paul's user avatar
  • 1
1 vote
0 answers
557 views

Noise filtering circuit on a pulled-up 1-wire bus

The 1-wire bus data line is connected to a microcontroller pin (through a level shifter) with open drain configuration. The bus is pulled up to 5 Volts (DVDD) with a 4.7k resistor. The communication ...
balas's user avatar
  • 21
1 vote
1 answer
392 views

How to monitor one wire "kind of" protocol

In the current network, there's 1 master device, which gathers data from over 20 devices. Nameplate says the baud rate is 2400. In the bus cable there's one data wire, 12V and GND. A friend of mine ...
imperf's user avatar
  • 15
0 votes
2 answers
375 views

DS18B20 temperature sensor with Attiny25

I would like to make a simple thermal switch with attiny25 but first I need to read the temperature values from the ds18b20 sensor. I found some codes, here are the sources: DS18B20 lib UART lib I ...
toma3757's user avatar
0 votes
3 answers
885 views

Practical Limitations to 1-Wire Communication Speed [closed]

What are some practical limitations to the speed of a 1-Wire interface?
smokingRooster's user avatar
0 votes
1 answer
158 views

Connecting 1-Wire device power provided by Wemo D1 Mini

I have a Wemos D1 Mini (an ESP8266 chip) which I am trying to connect to a 1-Wire temperature sensor. However when I plug it in the 5V or ground it seems to power off the device, this happens with or ...
undefined's user avatar
  • 101
-3 votes
2 answers
635 views

Difference between Enameled Aluminum Wire and Enameled Copper Wire [closed]

What's the different between enameled aluminum wire and enameled wire? How to choose a professional enameled wire manufacturer? Advantages of enameled copper wire? Advantages of enameled aluminum wire?...
xinyuenamelled's user avatar
2 votes
4 answers
1k views

Raspberry Pi Zero connection to sensor (with I²C or SPI bus interface) over a large distance

SUMMARY: Here is what works: Raspberry Pi (I²C) <-> 1 m cable <-> sensor (I²C) Here is what I'm trying to do (doesn't work, hence question): Raspberry Pi (I²C) <-> 30 m cable <-> ...
ThatsRightJack's user avatar
0 votes
1 answer
4k views

DHT22 needs electrical reset?

Context : Building a wireless sensor based on ESP8266 + DHT22 (+ "X-8266" board) + DHTtester example progam I fell on a rather strange and annoying problem : Problem : When powering up the board ...
Cerber's user avatar
  • 105
0 votes
1 answer
501 views

Practical way to splitting CAT5 for 1wire?

I'm planning Raspberry Pi system using One-Wire with thermometers (ca 10 pcs). My electrical skills are basic. I'm looking for a good way connecting stubs to main line. . The main line (green) 1 ...
Rax's user avatar
  • 101
0 votes
2 answers
1k views

Serial bi-directional (one-wire half-duplex) digispark device works however answers itselfs

I followed this guide to create an one wire bi-directional (debug) device for a Digispark (Attiny85): https://digistump.com/wiki/digispark/tutorials/debugging (see section Bi-directional Serial ...
Codebeat's user avatar
  • 1,367
2 votes
0 answers
832 views

How to protect MCU IO and 5V from shorted +12V

I would like to protect an MCU from 12V being shorted either to IO or it's 5V supply. This is very similar to the question asked by kamil here: How to protect microcontroller board 1-wire from ...
Andrew Radke's user avatar
1 vote
0 answers
94 views

ADC reliability decreases as inputs connected

I'm using a 4-channel analog to digital converter, the TI ADS1115. I'm reading the values off the i2c bus with a Raspberry Pi. They worked ok for a few weeks- they read reliably about 95% of the ...
ericksonla's user avatar
0 votes
2 answers
361 views

64-bit Data Output On DHT21(AM2301) Sensor

I am trying to read the sensor data from the DHT21(AM2301) temperature and humidity sensor. According to the spec, the process of reading data is below: MCU sends start signal - Sensor sends ...
abdullah cinar's user avatar
0 votes
0 answers
69 views

Insulation when connecting a (TO-92) sensor with a cable

I'm considering using a DS18B20 which comes in a TO-92 package, but I have to place the sensor at a distance from the rest of the electronics so I'll have to use a wire to connect it. However due to ...
skyking's user avatar
  • 159
0 votes
1 answer
858 views

I2C to 1-Wire@ 3.3v and 5v output transportation

I am feeding the I2C pins of a micro-controller into the converter shown in the circuit below to convert it to 1-wire protocol: However, the output will be at the level of 3.3 volts. I was ...
Badreddine Zebbiche's user avatar
0 votes
2 answers
199 views

Dallas/Maxim one wire initialization

I am using a Dallas DS18B20 thermometer that communicates with Maxim's one wire protocol. I'm having issues at the initialization sequence. I have pulled the line high for 500 uSeconds, pulled the ...
Tyler's user avatar
  • 3
2 votes
2 answers
670 views

Long range sensor readings in a star network with Arduino

I'm planning a project that requires me to have around a dozen temperature and humidity sensors placed around the house and the yard. These would connect to a central Arduino in the house that would ...
MikkoP's user avatar
  • 163
0 votes
1 answer
205 views

ST L4 series datasheet specifications and 1 wire

When you open STM32L476 specification on the The DFSDM peripheral supports (42/232) it says that "Manchester coded 1 wire interface support". Does this means it supports 1-Wire bus like for DS18S20 or ...
DimDqkov's user avatar
5 votes
4 answers
1k views

Using CAN bus tranceivers with custom data link layer

We needed a noise immune, low cost, multidrop, multi master (realtime and distributed) protocol and there is only CAN bus seems to meet with these requirements. Since there are no can controllers (...
ceremcem's user avatar
  • 1,426
5 votes
3 answers
3k views

How to protect microcontroller board 1-wire from accidental +12V connection?

I'm working on modular LED strip driver with one "Master" board and up to 32 "Slave" boards. Each "Slave" board drives one LED strip. All boards have 3 pin terminals: +...
Kamil's user avatar
  • 6,024
2 votes
4 answers
614 views

I have three DS18B20's. I can't tell if any of them are working correctly

I have three DS18B20's (or I believe at least two of them are DS18B20's). I am currently reading them through an embedded Linux board (Raspberry Pi in this case). I have two of the sensors in a ...
user9993's user avatar
  • 585