Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 1825|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
Post time 2017-10-20 08:50:03 | Show all posts |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

220

Posts

1984

Credits

Gold member

Rank: 6Rank: 6

Credits
1984
Post time 2017-10-24 09:05:24 | Show all posts
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| Post time 2017-11-1 00:24:47 | Show all posts
You totally right!!!

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

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2019-9-19 04:17 GMT+8 , Processed in 0.027439 second(s), 22 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list