Monday, October 25, 2021

capteur de temperature HDC 1080

 9 euros  sur amazon.


voir article :

 

https://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/configuring-i2c

 

https://www.dummies.com/programming/python/what-is-i2c-python-programming-basics-for-the-raspberry-pi/

 

on a une version pythno3 du script

 

git clone https://github.com/switchdoclabs/SDL_Pi_HDC1080_Python3.git

 

et la commande 

sudo i2cdetect -y 1

voir si c'est deja installé sur mon pi

 troubleshooting

 

 

https://raspberrypi.stackexchange.com/questions/32719/i2cdetect-shows-every-possible-address/32720 

donne qq tests rudimentaires à faire au multimetre 

 

PAs transcendant

voir ici un code un peu différent - a base de ioctl

https://forums.raspberrypi.com/viewtopic.php?t=109135

le pb de base est que i2cdetect rien ... 

piste ?

If you have a Meter/scope first check power on the pins of the device. Is the correct power across the device pins and referenced to GND(0V) on the Pi ?

Does the device accept true I2C signals with 3V3 pullups on Pi?

With power off measure the impedance between GND (0V) and the pin of the device. Should be less than a few ohms probably less than an ohm.

If you have a scope check the waveforms while i2cdetect is running as there should be a lot of I2C activity do the signal levels look right at the pins of the device?

Then check software further. 

une autre

https://stackoverflow.com/questions/42904712/i2c-not-detecting-issues-in-hardware-or-any-other


Disconnect everything from the expansion header and try wiringPi's pintest or pigpio's gpiotest.

on a ca aussi https://abyz.me.uk/rpi/pigpio/piscope.html

 pour arduino qq indications

 

https://learn.adafruit.com/adafruit-hdc1008-temperature-and-humidity-sensor-breakout/wiring-and-test 

No comments:

Post a Comment

Ma journée du 01 Décembre 2025

En ce premier jour de décembre, l'heure est venue, De conter une histoire, par les dés soutenue. Quinze dés ont roulé, offrant leur dest...