Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

Project Request

Return
LISA HART
CRAIG.EE

posted on 2018/02/03 09:06:09 AM CET

Communication

PIC 8 BIT I2C TO DHT22, (OR AM2320), HUMIDITY/TEMP SENSOR.

Hello All,
I am inexperienced with I2C programming, and have a rather urgent need to get a DHT22 sensor sending data to
virtually any 8 Bit PIC. I am using the PIC 16F1789, but I can work out the differences between controllers, I just need a tested simple routine to gather the sensor data and later display it to a 4X20 LCD.

I am an Electrical Engineer, and am aware of the need for pull-up resistors of about 4.7K to Vcc on both SDA & SCL lines.
I am surprised at the lack of code samples for such a popular type processor as the PIC family, I have found so far.

I have access to both MikroElektronika Basic and FlowCode 7 compiler systems/ ICD's. My Hardware Platform is the MikroElektronika EasyPic V7. Despite looking for some time, I just have not found any examples for coding this sensor using I2C with enough information to get me started. HELP!
I don't have the option or desire of going 1 wire buss.

If anyone can help with this, I would be very appreciative.
Thank you in advance,
-Lisa

USER Comments

swapon chowdhury
swapon

posted on 2018/11/29 12:46:36 PM CET

hello

  • Rating:
0
No Abuse Reported

Do you want to report abuse comment ID: 2152 in "PIC 8 BIT I2C TO DHT22, (OR AM2320), HUMIDITY/TEMP SENSOR." request.

swapon chowdhury
swapon

posted on 2018/11/29 12:46:35 PM CET

hello

  • Rating:
0
No Abuse Reported

Do you want to report abuse comment ID: 2151 in "PIC 8 BIT I2C TO DHT22, (OR AM2320), HUMIDITY/TEMP SENSOR." request.