Hello world,
I am using a proportional valve which opens the vacuum respectively for the voltage from 0 to 5v (0v= valve close;5v=valve opens maximum). The issue here is the valve has to maintain the same vacuum for the preset using push button(0-650).
for example if the preset value is 500
when the vacuum sensor senses vacuum above preset which is 500 the valve has to close proportionally until it reaches 500. likewise, when when the vacuum sensor senses vacuum below preset which is 500 the valve has to open proportionally until it reaches 500.
Isn't is wise to keep all you questions for this vacuum project in the same thread.
Now you have to tell us again that you started with an MPXV6115V sensor,
for which you haven't shown us any of your code yet.
Spreading all your questions over several treads (cross-posting) gets problematic quickly,
and then you will get more questions than answers.
Don't expect us to write code for you.
We are just here to help you on your way, and give hints or code-snippets when you get stuck.
Leo..
thank you for your concern but the post I had posted is different from the previous one it is not a duplicate one. I respect each and everyone time here. kindly go through it.
Have a nice day
Looks like you need to write some code for a process control. You mention your vacuum valve is a 0 to 5 volt device. I may have this wrong but with the exception of the Due the Arduino boards do not have an analog out. They do have PWM which you can low pass filter but if you want accuracy and a true analog 0 to 5 VDC you may want to start looking for a DAC. A link to your valve would help and exactly which uC (Arduino) are you planning to use. Finally as already mentioned, post your code.
hi,
I wrote the code but facing issue with that. I am using two if condition 1st one is working fine but when it is going to 2nd condition the whole program stops. button_counter.ino (1.8 KB)
You post the code using code tags. Members want to look at it here, not download it. This should not be a complicated process. There have been links on how to use the forum, then you can expect good help.