cancel
Showing results for
Did you mean:

# PSoC™ 5, 3 & 1

New Contributor

## Pressure sensor

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://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

1 Solution
Valued Contributor II

## Re: Pressure sensor

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

6 Replies
Moderator

## Re: Pressure sensor

Hi,

Could you please share the exact code you have used and adc settings. Could you elaborate your observations too ?

Best Regards,
Vasanth

New Contributor

## Re: Pressure sensor

I was wondering if you know any psoc5 tutor that could help me with my project?

New Contributor

## Re: Pressure sensor

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.

Valued Contributor II

## Re: Pressure sensor

Did you run the ADC before polling? (see example codes for ADC DelSig)

New Contributor

## Re: Pressure sensor

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.

Valued Contributor II