nparafe has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
nparafe has joined #beagle
demirok has quit [Quit: Leaving.]
demirok has joined #beagle
demirok has quit [Quit: Leaving.]
demirok has joined #beagle
demirok has quit [Client Quit]
demirok has joined #beagle
demirok has quit [Client Quit]
demirok has joined #beagle
demirok has quit [Client Quit]
demirok has joined #beagle
demirok has quit [Client Quit]
demirok has joined #beagle
demirok has quit [Client Quit]
vagrantc has quit [Quit: leaving]
Guest10 has joined #beagle
<Guest10> Hello,
<Guest10> I wanted to buy beaglebone black wireless, but I see that it is not available at any store nor any online store. This is the status since one year. Just wanted to know if the product still exists ie being manufactured.
<Guest10> Thank you
Shadyman has joined #beagle
buzzmarshall has quit [Quit: Konversation terminated!]
Lamine has joined #beagle
<Lamine> Hello
<Lamine> I need help to connect a BBB to DHT22
<Lamine> Please can anyone help ?
AKN has joined #beagle
Guest10 has quit [Quit: Client closed]
ikarso has joined #beagle
Shadyman has quit [Quit: Leaving.]
ikarso has quit [Quit: Connection closed for inactivity]
Guest10 has joined #beagle
Guest10 has quit [Client Quit]
AKN has quit [Ping timeout: 252 seconds]
AKN has joined #beagle
SJFriedl has quit [Ping timeout: 252 seconds]
tbr has joined #beagle
SJFriedl has joined #beagle
ikarso has joined #beagle
AKN has quit [Read error: Connection reset by peer]
akaWolf has joined #beagle
<zmatt> Lamine: if possible, consider using a sensor that supports i2c instead, DHT11/DHT22 sensors are kinda annoying... because of their weird timing-sensitive custom protocol, communicating with them from linux is inherently unreliable and inefficient
<zmatt> nevertheless, there is a gpio-based kernel driver for them which you can use through a DT overlay
<zmatt> my overlay-utils project has an example for a DHT11/DHT22 (they're equivalent as far as the kernel is concerned) connected to P8.11: https://github.com/mvduin/overlay-utils/blob/master/dht11.dtsi
<Lamine> zmatt I appreciate your answer !! I am very new with this. Can you suggest me a sensor that works with i2c. Specially if there is a labrary  available online and I can read the data from it.
<Lamine> zmatt I am using Python for programming part
<zmatt> I've never used a humidity sensor myself, so I suggest just googling
<zmatt> e.g. if I do so I find this thing, which is basically the DHT22 but with an i2c interface: https://www.adafruit.com/product/5183
<zmatt> for which I find this python library: https://github.com/Chouffy/python_sensor_aht20
<zmatt> I have no idea if it's a good sensor or if there are better options, it's just what I found
<zmatt> this only thing that's a bit weird is that this python lib inexplicably opens and closes the i2c bus device for every single i2c transfer it performs, which is not very efficient
<zmatt> actually there's a bunch of things that could be improved, but that's true for all software I guess lol
<Lamine> I see. It's my first project with IoT. I already spent 2 months trying to read DHT11/22 with BBB...no success. I will try this aht20 and hope that this lib works. Cross my fingers
<zmatt> when you feel ready for it I'd recommend learning to do i2c transfer directly (using e.g. python-smbus2) based on a chip's datasheet, since i2c is a really common way to interface with small external chips and you're not always going to be lucky enough to find a good library for every specific chip you might want to use
<zmatt> but of course if you're starting out, it can be nice if someone already made a wrapper library ;)
<Lamine> zmatt Thank you so much, what you just told me and very informative for me. It's really great to have some guidance for a beginner. Do you have a reference to learn how to program from python-smbus2
CygniX_ has quit [Ping timeout: 248 seconds]
CygniX has joined #beagle
<zmatt> not at hand no, but it probably exists. maybe first look up some resource about how i2c works in general and/or on linux specifically, python-smbus2 is pretty much a direct python wrapper around the linux kernel interface for performing i2c transfers
dinuxbg has quit [Ping timeout: 256 seconds]
dinuxbg has joined #beagle
<zmatt> note: to install python-smbus2 you can either use the system package manager (sudo apt update && sudo apt install python3-smbus2) or you can use pip (pip3 install smbus2) (don't use sudo with pip3)
<Lamine> I see. I am going with this one https://www.adafruit.com/product/2652 I hope it will work :D
<zmatt> actually it seems debian didn't package python3-smbus2 in buster or bullseye yet, so you'll need to install it with pip3
<zmatt> which is fine
<set_> Hey!
<set_> Building machines for the BBB!
<set_> For the BBB and me of course. Any learning time is time well spent...
<zmatt> Lamine: actually I don't even think this python aht20 driver is correct, lol
<zmatt> (btw, don't send private messages)
starblue has quit [Ping timeout: 252 seconds]
ikarso has quit [Quit: Connection closed for inactivity]
<zmatt> Lamine: oh nice, the AHT20 datasheet on adafruit's website contains a different initialization procedure than the AHT20/DHT20 datasheets on the sensor manufacturer's website
ikarso has joined #beagle
vagrantc has joined #beagle
brook has joined #beagle
buzzmarshall has joined #beagle
starblue has joined #beagle
akaWolf has quit [Ping timeout: 252 seconds]
mag_ is now known as mag
<set_> Ut oh...
<set_> Which one should one follow for the AHT20?
<set_> I say follow the mfg. datasheet but if they are using a lib, then, using the Adafruit sheet may be better...
<set_> @zmatt: I thought ' sudo pip3 install smbus2 ' would be a system wide install while pip3 alone would be for the user only, i.e. like calling the -U option.
<set_> Off to double check.
<set_> -U is upgrade and not for user.
<set_> Blah.
<set_> --user is user
akaWolf has joined #beagle
<set_> wait. I am looking in stretch. Blah. Off to bullseye.
<set_> Okay. Same.
<set_> circa 2014 on the debian wiki...
<set_> Sheesh. It says bullseye but is listed as 2014 for the year of production of the page.
<set_> Hmm.
<set_> Catching up never felt so good!
brook has quit [Remote host closed the connection]
starblue has quit [Ping timeout: 252 seconds]
starblue has joined #beagle
ikarso has quit [Quit: Connection closed for inactivity]
akaWolf has quit [Ping timeout: 260 seconds]
vagrantc has quit [Quit: leaving]
akaWolf has joined #beagle
akaWolf has quit [Ping timeout: 268 seconds]
akaWolf has joined #beagle
akaWolf has quit [Ping timeout: 264 seconds]