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
1 vote
0 answers
182 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
940 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
54 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
1 vote
1 answer
2k 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
241 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,173
3 votes
0 answers
97 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
58 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 ...
Simona 's user avatar
1 vote
1 answer
91 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
413 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
167 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
  • 191
0 votes
1 answer
123 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
3k 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
724 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
110 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
455 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
35 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
  • 569
1 vote
2 answers
258 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
41 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,306
2 votes
3 answers
12k 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
  • 77
0 votes
0 answers
34 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
464 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
107 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
235 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
101 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
52 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
471 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
364 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
346 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
793 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
146 views

connecting 1-Wire device powers off 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
623 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
478 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,326
2 votes
0 answers
776 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
353 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
67 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
815 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
189 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
662 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
192 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
4 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,396
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
  • 5,956
2 votes
4 answers
605 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
0 votes
1 answer
394 views

1-wire : 4.7k resistor not working / how to compute optimal resistor topology for star layout

I've build a 1-wire network using a star topology (networking done trough my home's ethernet cables). At the begining I didn't own a 4.7k resistor but some 1.2k resistor so I lined them to achieve 1....
Cerber's user avatar
  • 105
3 votes
2 answers
2k views

How can I scan a One-Wire (1-Wire) bus for all connected devices and list their IDs

I have written a One-Wire (1-Wire, OW) controller in VHDL for FPGA designs. Currently I use a USB-OW adapter from Dallas/Maxim on my PC to get the sensors' IDs. I would like to scan the bus directly ...
Paebbels's user avatar
  • 3,907