Code Monkey home page Code Monkey logo

Comments (12)

RobListon avatar RobListon commented on August 25, 2024

I'm also having this issue when trying it using my RPI. I'm pretty sure it's because I have a RPI v2 and w1-wire needs to be replaced with w1-gpio instead.

from stratatools.

rowlandski avatar rowlandski commented on August 25, 2024

Yes, I think you're right as I have a RPi ver2 too.

I've just created a script to load w1_gpio and w1_ds2433

I'm now going on to the next part of the read.me.....

from stratatools.

RobListon avatar RobListon commented on August 25, 2024

You might want to modify your /etc/modules file to include the w1-gpio and w1-ds2433 to load them automatically.

from stratatools.

rowlandski avatar rowlandski commented on August 25, 2024

Yes, I will be doing that... thanks.

I'm just trying:
"You should now see your eeprom appearing:
$ ls -l /sys/bus/w1/devices/w1_bus_master1
23-xxxxxxxxxxxx/
(...)"

But get back, "No such file or directory"... and there is no file!

You got it working?

from stratatools.

RobListon avatar RobListon commented on August 25, 2024

Yes,
When I run "ls /sys/bus/w1/devices" I see 23-0000014b4065 and w1_bus_master1.
running "ls /sys/bus/w1/devices/23-0000014b4065" outputs this:
driver eeprom id name power subsystem uevent

from stratatools.

rowlandski avatar rowlandski commented on August 25, 2024

Are you connected as per the wiring diagram? No changes?

Just load the w1_gpio & w1_ds2433
then "ls /sys/bus/w1/devices"... it then works?

from stratatools.

RobListon avatar RobListon commented on August 25, 2024

Yes, I have it wired per the diagram.
You may need to edit your /boot/config.txt file as well and then reboot.
I added this line:
dtoverlay=w1-gpio,gpiopin=4

from stratatools.

bvanheu avatar bvanheu commented on August 25, 2024

Rob Liston have good point, you might have to specify the gpio poin used! Although I think it doesn't matter if the 1wire is configured by the device tree or probed by the user in the kernel.

Running the following should be enough:

modprobe w1-gpio gpiopin=4

from stratatools.

rowlandski avatar rowlandski commented on August 25, 2024

Thanks for your help.

I've tried:
modprobe w1-gpio gpiopin=4
But I don't get any comms out of pin 4 (I have a scope on it)

As for editing /boot/config.txt and adding "dtoverlay=w1-gpio,gpiopin=4"
I don't have a config.txt file (I'm new to RPi's, only had one for a couple of days).

Is it a case of creating one?

Thanks.

from stratatools.

RobListon avatar RobListon commented on August 25, 2024

Yes, you can create your own config.txt file. The documentation for it is available here: http://www.raspberrypi.org/documentation/configuration/config-txt.md

from stratatools.

rowlandski avatar rowlandski commented on August 25, 2024

I've found mine by holding down shift while booting.

I actually followed the instructions a few days ago regarding the config.txt, it seems that the tech note is not 100% correct.

But in any case, i've got the EEPROM's ID but now.

Thanks for your reply.

from stratatools.

rowlandski avatar rowlandski commented on August 25, 2024

Also FYI:

It's best to use dtoverlay=w1-gpio,gpiopin=4, and place it in the config.txt.

Modules and now been load by dtoverlay in the config.txt file. (they are moving away from using the /modules.. modprobe).

HTH

from stratatools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.