- This topic has 3 replies, 2 voices, and was last updated 2 years, 6 months ago by .
- You must be logged in to reply to this topic.
Home › Forums › The libraries hosted on the site › PCF8575 16bits i2c digital I/O expander › DHT22 and PCF8575
Hello. On pin P1 I attach the DAT from the sensor DHT22
How do I get the temperature?
Hi deryt,
you must follow the datasheet for communication protocol.
And add an interrupt to the pcf8575 to retrieve all data.
Bye Renzo
I connected directly to the nodemcu, but I can’t connect to the PCF8575 port expander
Hi deryl,
you can follow 2 ways to put in work (and there is a risk that pcf8575 is too slow for the DHT22).
You rewrite the DHT library to use pcf8575 or you implement the DHT22 communication protocol over pcf8575.
Bye Renzo
More
3D Printer 3D printer upgrade ABB Arduino Arduino IDE Arduino SAMD boards Aurora AWS CNC Cyclone PCB Factory Cyclone PCB Factory how to build It Display E32 E70 EByte esp01 esp32 esp8266 File System Firmware i2c Library LoRa MicroPython Milling PCB My PCB Networking PCB pinout Power saving Programming board Raspberry Pi REST API RF rp2040 SD Card Sensors Sleep and Wake UP SPI STM32 Storage devices Tutorial Web Server Wemos D1 mini WiFi