Hello people, i just start to learn arduino, and sorry for my bad english
so i just try to using temperature sensor and a solenoid push pull,
i used MPXM2053GS, and for the output i used an amplifier ADC623 like in this project
and there is no problem with it, it worked fine. i just want to control the solenoid with the output from the sensor, so the solenoid will start to move at 5kPa and stop at 20kPa, and i just do some code to control delay for on-off the solenoid so it could give different push power ... and here is the problem
i displayed the sensor output to the lcd, and it was able to update the output at the same time( real value from the sensor and arduino reading is update in the same time and it is displayed on LCD) but when the solenoid start to move, my arduino is not update the sensor output at the same time, it was just like hang for some seconds and it start to update the value again, sometimes it was just stuck until the condition when the solenoid stop to move... i used a mosfet and a diode for the solenoid and a 12V/3A psu, and because the reading is not update at the same time with the real value, my solenoid not giving the right push like what i want... how can i still make the reading still update at the same time when the solenoid is moving