Hi, I have a problem reading sensor Value display on serial monitor. I used a 3 wire pressure transducer 0-200 psi 0.5-4.5v. My project is a compressor charges the tank then to electronic valve as gate to the pneumatic cylinder. Pressure sensor is attach between valve and cylinder.
My problem is its not reading straight linear and start reading at cylinder psi. It jumps and starts to read at higher psi (spike) when valve opens and when valve close it goes back down to correct reading. I need reading that starts with cylinder psi straight up linear reading when valve is open.
I test it on potentiometer and it works ok. It gives straight linear reading.
That is EXACTLY what I would expect to see. The pressure before the piston begins to move is exactly the pressure from the tank. The solenoid valve limits the air flow, so as the piston begins to move, the pressure drops. Get a solenoid valve large enough to not restrict the air flow and you will get your steady reading.
Thanks for the reply. yes i think its the high pressure of the tank then when the valve opens and high tank pressure joins the low pressure of the cylinder, it hammers the transducer and returns correct reading when valve closed. Are there any solution like algorithm to cure the spike? What about capacitor on analog pin to absorb spike voltage from transducer? I need a constant linear reading from cylinder pressure.
yes Leo it works with println using potmeter.. I will test it later in sensors.
Im totally blank as of now. I tried pressure snubber and micron filter to control pressure hammering of sensor but still the same. voltage spike from sensor i think is the problem.
I just need a linear reading from cylinder close and open valve because Im building a trigger on and off in pressure reading.
White_Lady:
yes Leo it works with println using potmeter.. I will test it later in sensors.
Im totally blank as of now. I tried pressure snubber and micron filter to control pressure hammering of sensor but still the same. voltage spike from sensor i think is the problem.
I just need a linear reading from cylinder close and open valve because Im building a trigger on and off in pressure reading.
Where did you place the pressure sensor when you did this? All snubbers, accumulators, etc, must be BEFORE you pressure sensor.
Paul_KD7HB:
Where did you place the pressure sensor when you did this? All snubbers, accumulators, etc, must be BEFORE you pressure sensor.
Paul
Hi Paul. yes its before pressure sensor. I tried snubbers only with different porous and adjustable. still the same. I would like to ask if putting a capacitor to absorb the voltage spike from sensor to analog in will do? Kinda voltage buffer to slowly introduce spike voltage to analog input. Or any Ideas how to solve? I will give it a try. Thanks
White_Lady:
Hi Paul. yes its before pressure sensor. I tried snubbers only with different porous and adjustable. still the same. I would like to ask if putting a capacitor to absorb the voltage spike from sensor to analog in will do? Kinda voltage buffer to slowly introduce spike voltage to analog input. Or any Ideas how to solve? I will give it a try. Thanks
In order to reduce the voltage excursion, you need a low pass filter. that would be a resistor followed by a capacitor. That values I do not know, but someone will know. Perhaps a 10k Ohm and a small cap.
Hi, Thanks Leo. I tried your code with averaging but I guess thats what the sensor really behave, spikes value when valve opens and high pressure meets low pressure and returns to correct reading when valve closes. range/jump value is too big to average, I will use your first sample with float. Thanks Paul for the reply. I guess I will try capacitor and resistor. If you have a simple schematic it would be a big help.
Kindly jump to 2:10. Its the exact behavior of my display value when valve opens and close. Need Linear reading that starts with cylinder psi up when valve inflates and same with valve deflate.