ds18b20 with BBGW

Moderators: lily.li, violet, salmanfarisvp, seth.welday

Post Reply
otrab86
Pre-kindergarten
Pre-kindergarten
Posts: 3
Joined: Thu Dec 01, 2016 8:28 am

ds18b20 with BBGW

Post by otrab86 » Thu Dec 01, 2016 8:36 am

Hi!

I want to read temp with a ds18b20 sensor. I try with a few tutorial without luck.

Any tips for read this sensor?
I'm using Debian 8.6 2016-11-06 4GB SD SeeedStudio IoT (kernel 4.4.30-ti-r64)


regards,
Sebastián

otrab86
Pre-kindergarten
Pre-kindergarten
Posts: 3
Joined: Thu Dec 01, 2016 8:28 am

Re: ds18b20 with BBGW

Post by otrab86 » Thu Dec 01, 2016 8:44 am

It's there a way to use mraa python for this??

otrab86
Pre-kindergarten
Pre-kindergarten
Posts: 3
Joined: Thu Dec 01, 2016 8:28 am

Re: ds18b20 with BBGW

Post by otrab86 » Fri Dec 02, 2016 3:17 am

It's connected to P9_22 with a pullup 4.7K resistor.

I try with this module from this tutorial:

/dts-v1/;
/plugin/;

/ {
compatible = "ti,beaglebone", "ti,beaglebone-black";
part-number = "BB-W1";
version = "00A0";

/* state the resources this cape uses */
exclusive-use =
/* the pin header uses */
"P9.22",
/* the hardware IP uses */
"gpio0_2";

fragment@0 {
target = <&am33xx_pinmux>;
__overlay__ {
dallas_w1_pins: pinmux_dallas_w1_pins {
pinctrl-single,pins = < 0x150 0x37 >;
};
};
};

fragment@1 {
target = <&ocp>;
__overlay__ {
onewire@0 {
compatible = "w1-gpio";
pinctrl-names = "default";
pinctrl-0 = <&dallas_w1_pins>;
status = "okay";

gpios = <&gpio1 2 0>;
};
};
};
};

I notice that the bone_capemgr from /sys/devices/bone_capemgr.9/slots to /sys/devices/platform/bone_capemgr/slots

I can't found the w1 kernel module at /sys/bus/w1/devices/DEVICE_ID/w1_slave

silver1row
Pre-kindergarten
Pre-kindergarten
Posts: 34
Joined: Mon Apr 25, 2016 7:39 am
Contact:

Re: ds18b20 with BBGW

Post by silver1row » Fri Apr 20, 2018 6:41 pm

Hello,

Although trivial, you may want to update to a newer image and kernel. There is more support for updated images and kernels (at least current support). Once you have your new image and updated kernel, let me know. Maybe you can show me what tutorials you are using.

Seth

P.S. You may need to use config-pin on the newer images w/ the updated kernels. I can guide you through this idea or you can find a link for it on github.com or another site. Let me know what you think of these ideas.

silver1row
Pre-kindergarten
Pre-kindergarten
Posts: 34
Joined: Mon Apr 25, 2016 7:39 am
Contact:

Re: ds18b20 with BBGW

Post by silver1row » Fri Apr 20, 2018 6:43 pm

Oh and...

Hello again. Please do not use MRAA or UPM modules. From my perspective, they are out of reach for the BBB and variations. MRAA and UPM modules do not have great support for getting up and running on the BBB lines of boards.

Seth

P.S. If you get MRAA and UPM modules running well, let me know. I will help out and pitch in. I have been unsuccessful w/ MRAA and UPM so far.

Post Reply