- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Cypress community,
Me and a friend is trying to use a PT1000, to measure the temperature in the room. But we are having some problems. Right now its just printing 0. AS you can see in the topdesign i'm useing the Thermistor and a RTD funcitons to measure the temperatur.
Do you guys have any suggestions, with this problem? I've postet the TopDesign and code.
Thanks
Solved! Go to Solution.
- Labels:
-
PSoC 5 Device Programming
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Okay i've solved the problem by only useing a ADC, and then use two 2k Ohm resistors.
Thanks for the help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey,
In a quick review i saw that you used the variable VTherm in both the channels. Change first one to vRef. You should be getting proper result.
AMux_FastSelect(0);
ADC_StartConvert();
ADC_IsEndConversion(ADC_WAIT_FOR_RESULT);
vRef = ADC_GetResult32();
ADC_StopConvert();
Best Regards,
Vasanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the help, i've changed it but it doesn't give the right results..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HI,
Although is talking about P3, doing some changes in the FW (pins used, type of variables, etc), you can use it on P5LP
Note: I'm not sure the version of Creator used in the kit, but sure that's a old version. Download the ISO and extract only the FW (there are other info very useful also) it's not necessary to install the kit
B.R.
Gil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here is some some pictures while debugging.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Keep the ADC in single sample mode as you are starting each conversion in firmware. First make sure that you are getting the ADC count for the input you are giving. Is your input is within the range of the ADC ( ±1.024 V (–Input ± Vref)?)
Best Regards,
Vasanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Okay, but i have one more question, as you can see i use a RTD and Thermrisitor. But i can see that the Thermresistor have a getTemperature funciton? should i use that instead on the RTD getTemperatur? Does it make sense to even use a Thermresistor when i use a PT1000? Just some small questions i have.
Best Regards
Mads
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Okay i've solved the problem by only useing a ADC, and then use two 2k Ohm resistors.
Thanks for the help!