Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raspberry Pi compatbility #25

Closed
chasm-git opened this issue Feb 5, 2017 · 4 comments
Closed

Raspberry Pi compatbility #25

chasm-git opened this issue Feb 5, 2017 · 4 comments

Comments

@chasm-git
Copy link
Contributor

Using GPIO4 that is.
Has someone managed to read emulated senors with Raspberry Pi via GPIO?

Hardware 18B20 on either side of a level shifter work as expected, the emulated sensors are a no-go. (Arduino nano, Arduino pro mirco 3.3V, ESP8266)
Reading the emulated sensors via various software bus masters works.

Switch to DS2482 / DS2484 as physical bus master. - Or find the mistake?

@orgua
Copy link
Owner

orgua commented Feb 7, 2017

did you translate your text via google translate? it is hard to understand without guessing a lot.

so you seem to have a RPI as a onewire-master and want to emulate slave via arduinos. it should work. It depends on the software of the RPI. they all try to speak onewire and when someone is bending the rules we all have a problem.
you offer little to no information for me to help you. i am sorry.
and yes, there was someone who used two rasperries to speak to each other, one as a master, the other had the onewirehub installed. it went smoothly, but surely needed some knowledge on debugging

@chasm-git
Copy link
Contributor Author

Ooops. A bit too much last minute editing and not enough proofreading.

I use a Raspberry Pi to read a string of DS18B20 temperature sensors and log the data into a DB. This has been running for years. First polling the sensors over the network with an ethersex board (think Arduino with ethernet shield), then directly attached to GPIO4.

Now I want to add humidity sensors into the mix. The simplest way should be to emulate them as 1-wire temperature sensors. The existing wiring is able to power an Arduino.

Small steps first. I put the DS18B20 example on an Arduino nano and tried to read it with another Arduino. This works as expected.

Then I tried to read the emulated sensor with the Raspberry Pi. - This does not work. I can still read the physical DS18B20 sensors on the same bus. No obvious errors. Supply voltage is ok.

A few hours later I come to the conclusion that I can read OneWireHub sensors reliably with various micro controllers over different distances but never with the Raspberry Pi.
That seemed to be a good point to stop and ask if someone else has done it before.

Next week I can remove GPIO4 from the equation, going for DS2482-100 or DS2483 instead.
One of the cheap logic analysers is also on order. Hopefully this one will arrive. 3rd time is the charm...

@chasm-git
Copy link
Contributor Author

Switched over to a DS2482-100 in and it works. So the problem seems to be GPIO4 specific.

@sashad
Copy link

sashad commented Mar 19, 2019

Hello, I want to use DS2482-100 on esp8266 (esp12) with OneWireHub library. Is it posible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants