- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi I'm connecting the following pressure sensor to my psoc using my psoc 5lp . I watched couple of tutorials on how to interface a pressure sensor and have looked at the ADC example on psoc website. My code is very similiar to the person on the youtube link below. I also have watched the following analog sensor for the arduino code but its not working. similiar psoc posts also couldn't help me solve the problem. The pressure is from alibaba, I have used the formula used by arduino community.
https://www.youtube.com/watch?v=IqHeLsDwxVY&ab_channel=AngelaSodemann
https://youtu.be/UrqPxwsPWGk - anlog pressure sensor in arduino
https://community.cypress.com/t5/PSoC-5-3-1-MCU/Bourns-analog-pressure-transducer/m-p/127862
Solved! Go to Solution.
- Labels:
-
PSoC3 MCU
-
PSOC5 LP MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This problem has been solved many times, so there shouldn't be any serious problems.
Check a few points:
1. Create / use a simple project with ADC DElSig with 10 bit resolution without using float.
- make sure that the measurement is working and is in the range> 0 <1000 bit.
2. The sensor signal should vary from 0.5V to 5V / 3.3V (check with a tester) аnd must be connected to the ADC input.
The archive of your project and the name / Datasheet of the sensor will help a lot
- it is always easier to continue what you started than to guess.
Evgeniy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Could you please share the exact code you have used and adc settings. Could you elaborate your observations too ?
Best Regards,
Vasanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I was wondering if you know any psoc5 tutor that could help me with my project?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Vasanth,
The maximum pressure for my pressure sensor is 0.8Mpa. I wanted to read it in PSI or pressure bar becuase megapascal is too small. I therefore converted 0.8 Mpa to PSI which is 116. I'm using a 10 bit ADC , therefore the maximum readable number should technically be 921.4 and the lowest number 102.4 but when I blow on it nothing happens.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you run the ADC before polling? (see example codes for ADC DelSig)
ADC_DelSig_1_Start();
ADC_DelSig_1_StartConvert();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yes but that doesn't fix the problem. The LED keep flashing faster if I use the pressure as vaccum but that reading doesn't update in the LED.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This problem has been solved many times, so there shouldn't be any serious problems.
Check a few points:
1. Create / use a simple project with ADC DElSig with 10 bit resolution without using float.
- make sure that the measurement is working and is in the range> 0 <1000 bit.
2. The sensor signal should vary from 0.5V to 5V / 3.3V (check with a tester) аnd must be connected to the ADC input.
The archive of your project and the name / Datasheet of the sensor will help a lot
- it is always easier to continue what you started than to guess.
Evgeniy