cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4

JuRu_3481966
New Contributor II

Hello,

I am working with the CY8KIT-142 PSoC BLE Module and an AM2302 Temperature/Humidity Sensor. I am having trouble reading in data from the sensor (I am reading out all 1s). I have attempted to adapt the Arduino library for this sensor, but have not been successful.  I am using the suggested 5.1 kOhm pull-up resistor and have the SDA pin set to bidirectional with the drive mode Open Drain Drives Low. Is there a way to change the direction of the pin (input/output) through code or is there a fault in my implementation? Attached are my project files and the AM2302 datasheet for reference.

Thank you!

-Julian

0 Likes
1 Solution
RyanZhao
Moderator
Moderator

Hi Julian,

You can refer this thread:

DHT22 sensor project or DHT11

Thanks,

Ryan

View solution in original post

1 Reply
RyanZhao
Moderator
Moderator

Hi Julian,

You can refer this thread:

DHT22 sensor project or DHT11

Thanks,

Ryan

View solution in original post