arduino + sensor mpx + relay

Hello!

The sensor readings are not equals when the relay is activated. This readings down around -0.7kpa.

How can i stabilize the voltage on the sensor to prevent this?

My conversion code is:

".....valor_MPX = analogRead (MPXPIN);
tension_MPX = map (valor_MPX, 0, 1023, 0, 5000);
presion = (tension_MPX - 4600) / 38.26;............."

Thanks

jesusm:
The sensor readings are not equals when the relay is activated.

That sounds like the relay is being powered from the Arduino and is affecting the Arduino's 5v supply. If so it may damage the Arduino.

Give the relay a separate power supply.

If this does not solve the problem post your complete program using the code button </> so it looks like this and make a pencil drawing showing how everything is connected and post a phot of the drawing.

...R

It's strange, I'm using one official shield relay. And I introduced the corresponding mpx capacitors. If the problem continues, i'll use an external power supply of 5V and i'll coment.

Thanks you so much

Excuse me, what power source do you advise me? Can you send me a photo?

jesusm:
Excuse me, what power source do you advise me? Can you send me a photo?

I have no suggestions. I have no idea what relay you are using or how it is connected to your Arduino.

Post a link to the datasheet for the relay and the wiring diagram I requested earlier.

If you are using an Arduino shield post a link to its datasheet.

How are you powering the system at the moment ?

(It would be great if you could supply all the background information without having to be asked item by item)

...R

My shield relay (I don't find its datasheet):

I have one lcd tft adafruit, one pressure sensor and one DHT21 and arduino uno.

I've comprobed the connections and they are ok.

I'm interested in the power supply.

Thanks

From looking at the link in Reply #5 I don't know if it can be driven directly from an Arduino.

You have still not posted a wiring diagram. This is the 3rd (and last) time I have asked.

...R