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
4 votes
3 answers
479 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
110 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 ...
user avatar
  • 21
0 votes
2 answers
213 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 ...
user avatar
  • 191
0 votes
1 answer
65 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 ...
user avatar
2 votes
3 answers
965 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 ...
user avatar
0 votes
2 answers
198 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 ...
user avatar
0 votes
1 answer
82 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 ...
user avatar
0 votes
2 answers
288 views

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

Teltonika FMB125 is an advanced GPS Tracking device with 1-Wire interface to monitor temperature data. I tested a waterproofed version of the DS18B20 Temperature sensor with Teltonika FMB125 and I got ...
user avatar
0 votes
0 answers
23 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). ...
user avatar
  • 527
1 vote
2 answers
146 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 ...
user avatar
0 votes
0 answers
40 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 ...
user avatar
  • 1,256
1 vote
3 answers
7k 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 ...
user avatar
  • 67
0 votes
0 answers
29 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 ...
user avatar
0 votes
2 answers
223 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 ...
user avatar
  • 131
0 votes
1 answer
63 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 ...
user avatar
0 votes
1 answer
194 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 (...
user avatar
0 votes
2 answers
62 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/...
user avatar
  • 103
0 votes
1 answer
42 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 ...
user avatar
  • 1
1 vote
0 answers
294 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 ...
user avatar
  • 11
1 vote
1 answer
326 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 ...
user avatar
  • 15
0 votes
2 answers
261 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 ...
user avatar
0 votes
3 answers
477 views

Practical Limitations to 1-Wire Communication Speed [closed]

What are some practical limitations to the speed of a 1-Wire interface?
user avatar
0 votes
1 answer
93 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 ...
user avatar
  • 101
-3 votes
2 answers
544 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?...
user avatar
2 votes
4 answers
922 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 <-> ...
user avatar
0 votes
1 answer
3k 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 ...
user avatar
  • 105
0 votes
1 answer
421 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 ...
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 ...
user avatar
  • 1,022
2 votes
0 answers
624 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 ...
user avatar
1 vote
0 answers
92 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 ...
user avatar
0 votes
2 answers
316 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 ...
user avatar
0 votes
0 answers
62 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 ...
user avatar
  • 158
0 votes
1 answer
664 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 ...
user avatar
0 votes
2 answers
157 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 ...
user avatar
  • 3
1 vote
2 answers
626 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 ...
user avatar
  • 153
0 votes
1 answer
151 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 ...
user avatar
2 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 (...
user avatar
  • 1,204
5 votes
3 answers
2k 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: +...
user avatar
  • 5,682
2 votes
4 answers
535 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 ...
user avatar
  • 545
0 votes
1 answer
348 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....
user avatar
  • 105
2 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 ...
user avatar
  • 3,797
5 votes
2 answers
6k views

1-Wire DS2480B overvoltage and ESD protection

I'm designing a series of 1-Wire components for my SmartHome Bus and use the DS2480B as Busmaster. Because the cable I run around the house has 3 wires (24V, 1-Wire, GND), I'd like to protect the ...
user avatar
  • 63
0 votes
1 answer
3k views

Pros / Cons of LM35 and Thermistor, what alternatives?

I'm wondering which benefits/downsides I have using following thermometer? Is there something I'm overseeing? For easy temperature measuring, what would be the easiest? My Opinion is LM35, am I right? ...
user avatar
2 votes
1 answer
2k views

1-wire bus topology using Cat5 cable

I have a 1-wire network using cat5 cable. There is a bus running along the roofspace of the building and the sensors are on stubs off this bus. The bus along the roofspace is about 25 metres long ...
user avatar
  • 123
1 vote
2 answers
2k views

DS18B20 have the same 1-wire ids in proteus

I'm developing a temperature monitoring system and trying to model it in Proteus 8.1 SP1. When I try to execute rom search for multiple DS18B20 it give back just 1 ID, but if I add one DS1822 I can ...
user avatar
6 votes
1 answer
806 views

1-wire humidity sensor with ID

I've created a temperature monitoring system using multiple DS18B20 temperature sensors and now I want to add some humidity sensors to it. The problem is that I cant find any 1-wire humidity or ...
user avatar
0 votes
1 answer
501 views

Extending DS2408 IOs with MAX7219 or 74HC595

I have an idea of building a model traffic lights node with Arduino. One node should serve the whole intersection with all the lights from all directions. I want to use a 1-wire DS2408 to identify ...
user avatar
  • 1
1 vote
1 answer
334 views

DS18B20 temperature interpretation

I have a problem interpretting the temperature reading of a DS18B20 chip. There is a certain situation I am not abble to resolve. This is the example temp table for the chip from the datasheet: an ...
user avatar
6 votes
1 answer
5k views

RS232 to 1-Wire interface - need help understanding the schematic

There are plenty of projects on RS232 to 1-Wire, each one of them is almost the same, but none of the sources really explain the wiring. Let's take this one: http://www.instructables.com/id/...
user avatar
  • 871
-1 votes
1 answer
120 views

onewire emulation in Software

Is there any full software implementation of onewire protocol ? I mean : can we have a SW that is manipulating a PIO to emulate fully the onewire protocol ? (for instance : ARM-M4 running @150MHz).
user avatar
  • 111