KY-013

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

cross mob
Anonymous
Not applicable

Hie, I am using CY8CKIT-042. I have tried to interface this sensor using ADC but this does not give me proper output. Will you please anyone help me. I am reading ADC value and converting this value into millivolts . I am using this formula to conert voltage to temperature.

Temp = mVolts*500/12;

And one more thing if I remove Analog pin connection though I get same output as before. And if I use digital pin as a input then output is changing but still it is not true temperature.

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
rola_264706
Level 8
Level 8
50 likes received 25 likes received 10 likes received

Try this program. I don't have this sensor so I can't try it  out.

View solution in original post

0 Likes
7 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Can you please post your complete project or a shortened version that shows the error so that we all can have a look at all of your settings. To do so, use

Creator->File->Create Workspace Bundle (minimal)

and attach the resulting file.

Bob

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Capture.PNG

0 Likes

I made some changes in your project. See comments. Different from your post Temp = mVolts*500/12; the formula in main.c is different. I also updated your components to latest version.

Give this a try.

Bob

0 Likes
Anonymous
Not applicable

Thank you so much for your help but i think you missed to upload project .zip file. Will you do it again?

0 Likes
lock attach
Attachments are accessible only for community members.

oops! (not Object Oriented Programming System)

Bob

0 Likes
Anonymous
Not applicable

Thank you, I will try today.

0 Likes
lock attach
Attachments are accessible only for community members.
rola_264706
Level 8
Level 8
50 likes received 25 likes received 10 likes received

Try this program. I don't have this sensor so I can't try it  out.

0 Likes