Automatic electronic air pump
An electronic air pump pressurizes object in either manual or automatic mode. In automatic mode, the electronic air pump determines air pressure needed to adjust an object to a set target pressure. The electronic air pump inflates or deflates the ball automatically until the air pressure inside the ball matches the preset value. In manual mode regulation of the air pressure is adjusted by a user.
1. A method comprising:
receiving, by an electronic air pump, a target pressure for an object;
measuring, by the electronic air pump, a current air pressure of the object;
determining, by the electronic air pump, that the current air pressure of the object is greater than the target pressure; and
in response to determining that the current air pressure of the object is greater than the target pressure:
automatically deflating, by the electronic air pump, the object for a predetermined time period;
waiting a specified period of time after closing a solenoid valve before measuring a second air pressure of the object, and
outputting, by the electronic air pump, an indication that the object has been pressurized to the target pressure.
2. A method comprising:
receiving, by an electronic air pump, a target pressure for an object;
measuring, by the electronic air pump, a current air pressure of the object, wherein measuring a current air pressure of the object comprises averaging a plurality of air pressure sample measurements taken at specified intervals;
determining, by the electronic air pump, that the current air pressure of the object is less than the target pressure;
in response to determining that the current air pressure of the object is less than the target pressure:
automatically inflating, by the electronic air pump, the object for a predetermined time period; and
outputting, by the electronic air pump, an indication that the object has been pressurized to the target pressure.
3. The method of claim 1 , wherein automatically deflating the object comprises opening the solenoid valve for the predetermined time period.
4. The method of claim 1 , wherein the indication that the object has been pressurized to the target pressure comprises an audio signal.
5. The method of claim 1 , further comprising:
determining that the second air pressure of the object exceeds a threshold of the target pressure, the threshold comprising a maximum value;
automatically deflating, by the electronic air pump, the object for a second predetermined period of time; and
measuring a third air pressure of the object.
6. The method of claim 1 , wherein the target pressure is based on an user input.
7. The method of claim 2 , wherein automatically inflating the object for a predetermined time period comprises actuating a pump motor.
8. The method of claim 2 , further comprising:
determining that a second air pressure of the object is below a threshold of the target pressure, the threshold comprising a minimum value;
automatically inflating, by the electronic air pump, the object for a second predetermined period of time; and
measuring a third air pressure of the object.
9. The method of claim 2 , wherein the indication that the object has been pressurized to the target pressure comprises an audio signal.
10. The method of claim 2 , wherein the target pressure is based on an user input.