View: 5665|Reply: 2

How to read on DS18b20 on a specific GPOI / 2g-IOT pin?

[Copy link]

1

threads

2

posts

50

credits

Registered member

Rank: 2

credits
50
Published in 2017-10-20 08:50:03 | Show all floors |Read mode
Edited by regis.a.abdalla at 2017-10-21 00:28

Hi everybody!
I found a huge problem! I need to read (in python) a DS18b20 (themperature sensor I2c) on a specific GPOI / 2g-IOT pin.
I did'nt found any example. I try to use some biblio from others boards without any sucess.
Any ideas!? Or sugestions!

I try to use Wiring PI, python-periphery, OpiIoTGPIO, DHT11-Python-library-Orange-PI,WiringPi-Python-OPNone of this works, or allow me to choose the pin that I want to assign to sensor.

Please advise!


10

threads

218

posts

2040

credits

Gold member

Rank: 6Rank: 6

credits
2040
Published in 2017-10-24 09:05:24 | Show all floors
Edited by nopnop2002 at 2017-10-24 17:48

DS18b20 is not i2c.
DS18b20 is 1 wire.
I think it's so hard to work on 2g-iot.
If you want to use i2c themperature sensor,
I'll recommend BMP085 or BMP280/BME280.
It's work on 2g-iot.

1

threads

2

posts

50

credits

Registered member

Rank: 2

credits
50
 Author| Published in 2017-11-1 00:24:47 | Show all floors
You totally right!!!

But I´m realy need to "talk" with w1 devices on 2g-IOT board.
Any ideia ?
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list