7 segment display math functions

Wanting to build a project gas pump
Display a digit price 1.45
Display a digit gallons
Display a digit total price
Turn on pump, gallons increase and total price adds up.
Turn off pump. Total stays on.
Start pump again total clears and restarts.
All using 7 segment displays.

Calculating and displaying the values you need is quite straightforward, but how todo it requires a lot more information.

Sensors, power supply, circuit design etc.
if you want someone to code the complete project , you should be prepared for some payment and specifications.

Remember this a flammable environment. You need to plan this into everything you do.

Yes. Do it. Why posting here?

Somewhere along the way, you must only charge for gallons DISPENSED, not what may or may not relate to what the pump says. What happens in your program if the pump runs, but no gas is dispensed?

What will you be using to measure the flow?

While you are thinking about and ordering the components needed, use your favorite search engine with the phrase "arduino seven segment display" to find tutorials, and start with the display part.

1. You need:
4-digit Gallon Display: xx.xx
5-digit Price Display Unit: xxx.xx
7-digit Cost Display Unit: xxxxx.xx

You need a 4x4 Keypad to enter price.

2. The following schematic (Fig-1) may be helpful for you.

image
Figure-1:

3. Algorithm
Flow Chart approach or Finite State Machine (FSM) approach.

Is this a real petrol pump ( I’m guessing not , but just in case …)??
If so certain parts will need to be intrinsically safe and you’ll need a flameproof pump.
You won’t be able to charge people with it !

Not real pump

You can use a LED to simulate a Pump and a 1-Hz oscillator (Fig-1) to simulate fuel flow.
555-1Hz
Figure-1:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.