Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Communication
Level 5
Level 5
100 replies posted First solution authored 250 sign-ins

I want to ask about the battery configuration problem!
I use PSoC 063 BLE sampler to read DHT11 sensor. However, when I configure the pin for the GPIO to read the sensor as shown below, the sensor doesn't work and the same goes for the ADC. But when I unconfigured the pins everything works fine again. I don't understand it, can someone explain it?
Thank!

Communication_0-1678180006931.png

 

0 Likes
1 Solution

Hi @Communication ,

" when I unconfigured the pins everything works fine again" 

If your project is based on HAL. Then  Pin configurations are not required. Please configure pins only when you use PDL API'S in your project.

Warm Regards,
Gautami J

View solution in original post

0 Likes
4 Replies
LeoMathews
Moderator
Moderator
Moderator
First question asked 500 replies posted 100 solutions authored

Hi @Communication 

Can you please clarify whether you are getting the correct values from the sensor after removing the pin configurations? Also, is your project based on HAL or PDL?

Thanks and Regards,
Leo

Thank you for your reply!
The value I read after clearing the pin configuration can be up to 8 degrees Celsius. If I configure the pin, the DHT11 does not work. My project is based on HAL.

0 Likes

Hi @Communication ,

" when I unconfigured the pins everything works fine again" 

If your project is based on HAL. Then  Pin configurations are not required. Please configure pins only when you use PDL API'S in your project.

Warm Regards,
Gautami J

0 Likes

I understood, thank you for this

0 Likes