cameron.devine
Posts: 2
Joined: Wed Nov 11, 2015 6:46 am

One Wire interface and Display issue

Wed Nov 11, 2015 6:54 am

I am working on a project where both the Raspberry Pi touchscreen, and several DS18B20 One Wire temperature sensors are used. I have gotten both of these parts working separately, but have not been able to get them to work together.

With the Device Tree off I am able to use the DS18B20 temperature sensors, but the touch functionality of the touchscreen is missing. When the Device Tree is on I am able to use the Touchscreen, but the DS18B20 isn't working.

I tried moving the temperature sensor to a different pin with the Device Tree off, but that didn't help.

Is there a way to get either the touch functionality of the touchscreen working without the Device Tree, or the One Wire interface working with the Device Tree on?

Any help on this issue would be greatly appreciated.

Cameron Devine

User avatar
rpdom
Posts: 17275
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: One Wire interface and Display issue

Wed Nov 11, 2015 2:55 pm

Have you tried using the correct device tree line to activate the one-wire interface?

I haven't got a touch screen, but all my DS18B20s work using device tree.

cameron.devine
Posts: 2
Joined: Wed Nov 11, 2015 6:46 am

Re: One Wire interface and Display issue

Wed Nov 11, 2015 9:54 pm

That was the issue. I had dtoverlay=1w-gpio not dtoverlay=w1-gpio.

Thank you for your help.

Cameron

joeacamb
Posts: 1
Joined: Fri Apr 29, 2016 8:48 am

Re: One Wire interface and Display issue

Fri Apr 29, 2016 9:52 am

Hi Cameron,

I am working in a project quite similar to yours. I have a 8 Temperature sensor system working 100% OK. Lately I've adquired a touchscreen and now I want to work with them together. The touchscreen is a JOY-IT with Item number = RB-TFT3.2-V2 and the Temperature sensors are Dallas 18B20P (ones that work in parasite mode). The main problem is that my touchscreen is making use of the first 26 Raspberry's Pins therefore taking all power PINS and also the w1-gpio PIN that is number 4. I've tried to change the w1-gpio PIN but without success. I've tried everything I've found in forums, for instance:

-Add to the /boot/config.txt the dtoverlay=w1-gpio,gpio=XX line
-Add to the /boot/cmdline.txt the bcm2708.w1_gpio_pin=XX ( with XX =16 in my case)

Anyways if I could be able to change the w1-gpio PIN I have no power PIN to work with. I've attended to make some parallel connections but afterwards it seems to be that I cannot get the enough current to work with the Touchscreen and the sensors.

If you have already solved your problem I'd be very thankful if you could give me some advices.

Thanks in advanced,

texy
Forum Moderator
Forum Moderator
Posts: 5161
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: One Wire interface and Display issue

Fri Apr 29, 2016 10:44 am

joeacamb wrote:Hi Cameron,

I am working in a project quite similar to yours. I have a 8 Temperature sensor system working 100% OK. Lately I've adquired a touchscreen and now I want to work with them together. The touchscreen is a JOY-IT with Item number = RB-TFT3.2-V2 and the Temperature sensors are Dallas 18B20P (ones that work in parasite mode). The main problem is that my touchscreen is making use of the first 26 Raspberry's Pins therefore taking all power PINS and also the w1-gpio PIN that is number 4. I've tried to change the w1-gpio PIN but without success. I've tried everything I've found in forums, for instance:

-Add to the /boot/config.txt the dtoverlay=w1-gpio,gpio=XX line
-Add to the /boot/cmdline.txt the bcm2708.w1_gpio_pin=XX ( with XX =16 in my case)

Anyways if I could be able to change the w1-gpio PIN I have no power PIN to work with. I've attended to make some parallel connections but afterwards it seems to be that I cannot get the enough current to work with the Touchscreen and the sensors.

If you have already solved your problem I'd be very thankful if you could give me some advices.

Thanks in advanced,
Hi and welcome to the forum.
I would ditch that display and choose another - one that has a GPIO 'pass-through' connector. Although your display has a 26-way connector, it probably isn't using all of those pins. Most GPIO based display boards use the SPI bus plus 2 or 3 other general GPIO lines.
Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

Return to “Official Foundation Display”