Hello everyone,
I'm working on a school project which consists in making a simplified "automatic diving buoyancy compensator". I use the word "simplified" because I'll only focus on the diving lift. I need to couple a pressure sensor with a solenoid valve : in fonction of the ambiant pressure measured by the sensor while diving, in need the valve to open or close. In order to respect decompression stops, I have to fix pressure intervals where the diver has to stay still, so the valve needs to stay closed.
I know this project is more complicated than it looks, but I need help for a code draft.
Thanks.
Please make sure you understand the concept of "fail-safe"
Edit: as a design exercise, make sure you design the system fail drill at the same time you design the product
Hello arduinopressuresensor
Post your current design with sketch, well formated, with comments and in so called code tags "</>" and schematic to see how we can help.
Have a nice day and enjoy coding in C++.
thank you for answering, this is my current design without the pressure sensor
You also need to select a WATER PROOF SENSOR. Or the ability to make it water proof. Remember you are measuring the water pressure, not the diver's atmosphere.
First select a suitable pressure sensor, and learn how to read it. There are many different types -- the simplest for use with Arduino is one that can be powered by 5V, and outputs a voltage proportional to the pressure (usually in the range of 0.5 to 4.5V for the given pressure measurement range).
When someone ask to see your test data, what will you show them?