Questions tagged [1-wire]
A method of communicating with one or more devices over a bus system using only data and ground connections. It is designed for small devices which do not require high data speeds or large amounts of power.
25
questions
3
votes
1answer
2k views
Help with 1-Wire to I2C translate
Please, someone.
I want to use a temperature sensor (DS18B20) in an I2C only shield (Tentacle Mini), but this sensor is One Wire only. Can I write an I2C code to change the 1-Wire to I2C for this ...
0
votes
1answer
96 views
Detect DS18B20 sensors and correctly assign them to relays
I'm relatively new to microcontroller programming, so please excuse me if my question is dumb.
I've created a simple device that allows me to control 4 relays based on temperature.
I bought four ...
1
vote
3answers
1k views
DS18b20 Order of sensors on a cable
I have a string of 10x DS18b20 sensors on a single two wire line (parasitic power). Below is a table of the sensors, Where they are located on the wire, and in what order where they discovered.
...
0
votes
0answers
102 views
OneWire with DS18B20 digital sensor only works on the I2C (20 and 21) pins of my Mega?
I am using an Arduino Mega to read a DS18B20 temperature sensor using the OneWire library in the code below which I got here:
#include <OneWire.h>
#define DS18S20_Pin 20 //DS18S20 Signal pin ...
0
votes
2answers
66 views
can't return float value from function
I want to put a 2 seconds delay to temperature reading but the millis() delay is not applying.
#include <OneWire.h>
#include <LiquidCrystal_I2C.h>
#include <DS3231.h>
#include <...
0
votes
1answer
101 views
Connection of a DS18B20 on a Arduino pro mini
I'm actually trying to connect a DS18B20 sensor to a homemade board build with a ATmega328P processor running with a power of 3.3V and at 8 Mhz.
In order to get the address I wired the board as the ...
1
vote
1answer
4k views
Compilation Error in nodeMCU along with oneWire temperature sensor ds18b20, and 2x16 LCD display (not I2C)
I am using nodeMCU along with oneWire temperature sensor ds18b20, and 2x16 LCD display (not I2C). I am using Arduino IDE to program nodeMCU. I am getting a compilation error:
C:\Program Files (x86)\...
10
votes
1answer
8k views
Emulating 1-wire device(s)
What I want to do is make a ATTiny IC become a slave on the 1-wire bus, with its own S/N and command list for its specific functions.
What I want to know is if I can use the one wire library from ...
1
vote
2answers
2k views
Are there any good and maintained libraries for using DS2482 I2C to 1-Wire bridge?
The DS2482-100 and DS2482-800 are I2C to 1-Wire bridges which are useful for driving complex 1-Wire networks.
These are natively supported by a number of packages in Linux so you can interface easily ...
2
votes
2answers
2k views
DS1820 bad reading from 4th sensor
I am very new to Arduino. I want to add about 50 sensors to Arduino R3. I get good readings from 3 sensors, but when I connect 4th one, I get 'No devices found'.
Here is a diagram:
and here is the ...
0
votes
2answers
399 views
How do I read addresses on multiple DS2413 1-Wire GPIO Breakouts, using the Adafruit sketch?
I am using three DS2413 1-Wire GPIO Breakouts from Adafruit connected to an ESP8266. I tested the DS2413
breakouts using their example sketch and it works fine for just one DS2413. But I cannot ...
1
vote
0answers
998 views
ESP8266 can't read parasitic DS18B20 temperature (reset during conversion, 85°C)
tl;dr at the end
I was running two DS18B20+PAR temperature sensors without any problems for the last two years on an ESP-01 module running on 3.3V on GPIO 2 using a 4.7K pullup resistor.
Now, ...
-1
votes
1answer
100 views
How to do single line communication? [closed]
I want to communicate between two arduino's using one wire (sending and receiving signals - if matched, blink LED by receiver to indicate it), which are separately powered by 9v batteries.
I want to ...
1
vote
2answers
3k views
Detection of DS18B20, arduino Mega
I just bought a DS18B20 temperature sensor. I can't detect the device when i run this code :
#include <OneWire.h>
#include <DallasTemperature.h>
// Data wire is plugged into pin 10 on ...
0
votes
1answer
452 views
Cutting off OneWire/SDA line with transistors
I am developing a pcb for a design I am working on and I need to share a pin to be used by a ds18b20 (onewire) and some possible I2C sensors. There would be just one of each at a time.
I was thinking ...
1
vote
0answers
296 views
1-wire bus apparently working, but OneWire::reset() fails
I encounter a strange thing.
I have a star shaped topology of 1-wire devices. Every branch (there are four of them) of the star has a DS2413 and a DS18B20 at its end. The DS18B20 is supplied with a +...
0
votes
1answer
292 views
Weird OneWire bus problem
I have two DS18B20 temperature sensors connected via a OneWire bus to an arduino. I noticed that these sensors get hot, when permanently powered and decided to just turn them on for measurment.
First ...
3
votes
3answers
3k views
Problem with DHT11 and DS18B20 temperature sensors
I am trying to connect to my Arduino Uno board two temperature sensors: DHT11 and DS18B20. The problem is with the DHT11 sensor: apparently there's an error with reading the temperature every two ...
0
votes
3answers
1k views
Adding Date and Time to existing sketch
I am currently trying to add a clock functionality to my current sketch for a peristaltic pump [run by NEMA 23].
The current sketch waits for a button on my breadboard to be pressed, it then runs ...
5
votes
2answers
4k views
“No more addresses” when using multiple DS18B20 sensors
I want to build a scheme to get data from several DS18B20 sensors and write their temperature to serial. Before I connected them using parasite mode and using 2,7k resistor (because I didn't have 4,7k ...
0
votes
2answers
886 views
Please explain this OneWire communication with Arduino Uno and DS2502-E48
The goal is to read the MAC address from a DS2502-E48 chip.
I think I accomplished this goal too with the following code, but I can't get behind at how this works.
I had a similar program with a PIC ...
2
votes
2answers
3k views
Conflict between OneWire and I2C?
I have two Arduino boards and I want to make them communicate via I2C. The first board (slave) should read a temperature value from a DS18B20 sensor (OneWire) and send it to the second board (master) ...
-1
votes
1answer
129 views
TFT touch, 4bit data transfer
I followed instructions to get my TFT to work.
I want to use other pins on the Arduino Uno for other I/O, so how can I use 4-bit data transfer for the TFT touchscreen?
1
vote
0answers
232 views
cc3000 WiFi distrupting DS18b20 temp measurements
I am trying to post temperature measurements from DS18b20 thermal sensors to an online repository using a cc3000 WiFi shield on an Arduino Mega. It works great, once. All the temperatures get read ...
1
vote
1answer
2k views
LCD showing weird characters when using two 1-wire temperature sensors
I have a sketch to display a temperature obtained from 1-wire DS18B20 sensors. The sketch works fine, however when I connect two sensors to my board, the text on the LCD displays gets corrupted (### ...