The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [1-wire]

A serial communication protocol providing data communication and power transmission over a single line.

Filter by
Sorted by
Tagged with
7
votes
2answers
3k views

How to change the Pin used for the 1-wire Bus

By default the header Pin Nr. 7 us used by the 1-wire kernel module. I would like to change it to a one of the 4 new GPIO Pins of an Rev 2 Pi.
7
votes
1answer
2k views

Raspbian /sys/bus/w1/devices/ is empty when having multiple 1-wire DS18B20 temperature sensors

I have a RasPi model B rev. 2.0 and two DS18B20 1-wire temperature sensors and they are working individually fine. I know I should be able to connect multiple 1-wire sensors in parallel but I can't ...
6
votes
3answers
6k views

What is a failproof method for testing a GPIO pin?

So, basically, I've been trying to get my raspberry pi to get the room temperature from a DS18B20 1-wire temperature sensor. I've read only GPIO 4 is capable of this, and I think for some reason GPIO ...
4
votes
1answer
4k views

Problems with OWFS over the w1 kernel module

I have a Series 2 Raspberry Pi. Running the 3.18 (wheezy) kernel. I got the w1 module (allows one-wire over gpio using bitbanging) to work, with both attached temperature probes showing up in /sys/bus/...
3
votes
1answer
895 views

How to set up a water leak sensor?

I'd like to set up a few water leak sensors in/under my house to avoid the kinds of plumbers' bills that I got recently! I had been hoping somebody had built such a thing with 1-wire or I2C ready to ...
3
votes
1answer
55 views

How to pulse DS28E04 with owserver?

I want to pulse a LED using parasitic power on a ow network using owserver. If you send the correct command the pin will pulse for between 250 ms and 1000 ms. The datasheet pulse access example ...
2
votes
2answers
158 views

How to reinstall 1wire support

While trying to configure my Pi0 for read-only mode I deleted my /sys/bus/w1 folder. Now the 1wire bus is not working anymore. How can I reinstall the module?
2
votes
2answers
894 views

9 One-Wire Temperature Sensors - Intermittent Response

I'm using the raspberry pi (model B) with the DS18B20 to read temperature. I connected 9 sensors through the 1wire (port 4), however I'm having a few sensors with a weird problem. The sensors ...
2
votes
1answer
3k views

Dallas 1-wire temperature sensor not working

I've connected a temperature sensor (DS18B20) to my Pi and want to read it using 1-wire, but it doesn't work. I have loaded the w1-gpio and w1-therm modules, added them to /etc/modules and rebooted a ...
2
votes
1answer
931 views

w1-gpio issue with Waveshare 5" LCD touchscreen and Pi 2

I've got huge trouble solving the following problem: I attached a Waveshare 5" LCD touchscreen to a Pi 2 Model B (components and setup listed below), prepared a new SDcard with Raspbian Jessie (not ...
2
votes
1answer
420 views

One wire temperature sensor DS18B20 sudden precission drop

I wired 10 DS18B20 to the raspberry pi, in the normal powered mode. I am using the Raspbian's built in w1-gpio and w1-therm. I am able to read all the 10 sensor values. Problem is, after (seemingly ...
2
votes
1answer
59 views

1-wire device not detected

I'm having trouble getting a 1-wire sensor to be detected on my Raspberry Pi Model 3 B+. The sensor is this temperature and humidity sensor. I have wired the red wire to 3.3V, the black wire to ...
2
votes
1answer
211 views

DS18B20 Temperature Sensor - Rpi 3/4 Driver, Wiring, Detection, and Python Programming

I am new in raspberry pi. In my research project, I would like to monitor ground temperature at 60 points. My team decided to set a monitoring system using raspberry pi. As a preliminary test, I ...
2
votes
1answer
369 views

Raspberry Pi 3b+ do not detect DS18b20 on 1Wire

Problem: The new raspbian kernel does not detect the DS18b20 sensor over the 1wire bus. This is due to the Device Tree that was added to Kernel 3.18.8 What hardware used: Raspberry Pi 3b+ Kernel: 4....
2
votes
1answer
2k views

Usage of python-ow One Wire File System Python Package for reading 1-wire DS18B20 data

I'm currently working on the project with a lot of DS18B20 Digital Thermometer Sensors. For a better performance I decided to use this Raspberry Pi compatible 1-wire master board, which is based on ...
1
vote
2answers
7k views

Connecting DS18B20 temperature sensor with RJ45 connector?

I have bought DS18B20 with RJ45 port on its end. It is dumb idea to connect it directly to the Ethernet port on the Pi? I did so, tried reading the temperature (http://www.reuk.co.uk/DS18B20-...
1
vote
1answer
2k views

How to use DS18B20 in parasite power mode?

The datasheet for the DS18B20 says: To assure that the DS18B20 has sufficient supply current, it is necessary to provide a strong pullup on the 1-Wire bus whenever temperature conversions ...
1
vote
3answers
755 views

1-Wire Button or switch?

For an application I am currently developing, I need to be able to get the status of a button (pressed or not pressed) or a switch (which can be considered a button in some way). While I could ...
1
vote
2answers
2k views

w1-gpio and DS18B12 always return t=85000

I am having a DS18B20 temperature sensor in a 3-wire setup (using a pullup resistor of 4.7 kOhm from data to 3.3v) on a Raspberry Pi model B+. It always return the value as shown below when using cat ...
1
vote
2answers
973 views

need 1 Wire read / write functions

I would like to send some simple read and write commands to the Pis 1wire port. For example to be able to configure the resolution of the ds1820 Temperature sensor. The kernal modules used to access ...
1
vote
1answer
577 views

pigpio and 1wire working together

I want to have two more-or-less independent programs running on my Raspberry Pi, one that monitors temperature and another that does protocol translation between two asynchronous serial devices. I ...
1
vote
0answers
52 views

wifi comes up but then disappears when temp sensors connected to GPIO

I have a headless PiZero with a wifi dongle using a RPI PSU (and it's running Domoticz). It boots fine and is all OK until I boot it with my long (20m?) wire of DS18B20s connected. With that plugged ...
1
vote
0answers
219 views

Using several sensors at the same time, e.g. 1wire and regular GPIO input

I'm doing my first Raspberry Pi project, in which I want to get input from several sensors at the same time. I bought a DS18B20 temperature sensor, which is 1wire, and am able to get input with the ...
1
vote
0answers
108 views

Thermometer no longer working

I am running the below lines to try to load my two therms. sudo modprobe w1-gpio sudo modprobe w1-therm ls /sys/bus/w1/devices All I am getting is 00- instead of 28- I have checked wiring, works ...
1
vote
1answer
2k views

unable to install 1-wire temperature sensor

I am trying to figure out why I cannot get temperature sensors working connected to my RPi2. I have followed almost every possible guide on the internets without luck and the answers* provided here ...
1
vote
0answers
216 views

My Pi2 doesn't cognize One-Wire

I'm using Raspberry Pi 2 with Gentoo. I tried to use Digital Thermometer(DS18B20) with 1-wire so I prepared: login as: qwpo1030 Using keyboard-interactive authentication. Password: qwpo1030@rpi2-...
0
votes
2answers
3k views

Is this possible to read internal CPU temp sensor directly from cpp code?

I am working on the kind of RPi platform to collect some external sensors data or control relays (using the remote tools like web or sms). Next problem I am tring to solve now is to get the direct ...
0
votes
1answer
2k views

Writing/Reading an EEPROM chip using 1-wire bus

Now I'm still rather new to this but bare with me here- I wish to emulate a 1-wire bus using my raspberry pi so that I can read/write data on a DS2431 EEPROM chip. So far I believe that I've been ...
0
votes
3answers
2k views

Raspberry Pi to Arduino protocol

So I'm looking to use a few (2 for now, more later) Arduinos in combo with a single Raspberry Pi master. This is basically the setup I want: What sort of protocol would be best for this type of thing?...
0
votes
1answer
527 views

IEEE80211n message transmission between 2 Raspberry Pi

I have got a wifi dongle that supports the ieee80211n protocol. This one is plugged into the pi that gets real time data from the device.The data it receives from the client needs to be sent (may be ...
0
votes
0answers
215 views

CPU peaks at regular intervals on w1_bus_master1

I've recently changed my hardware from RPI2 (boot from flash card, Raspbian 8 Jessie) to RPI3 (boot from usb->ssd, Raspbian 9 Stretch), cabling and sensors are the same. On the new RPI when I do "top"...