A Verilog Water-Tank Controller on the Real Digital Boolean Board

Leer en español

If water is leaving a tank, should both pumps start immediately? In the LabsLand remote lab, an AMD Spartan-7 FPGA controls a simulated tank. Try the Boolean Board water-tank demo and watch what happens when the water drops past the middle sensor. A preloaded Verilog circuit on the board decides when each pump starts.

Live camera image of the Real Digital Boolean Board at ILB with the FPGA running the Signals Showcase.
The physical Boolean Board during our separate Signals Showcase run at ILB. The lit LEDs are visible along the lower edge.

Where the board comes in

The Boolean Board from Real Digital carries an AMD Spartan-7 FPGA. LabsLand gives you browser access to that hardware. In this experiment three signals tell the FPGA whether the water has reached the low, middle and high sensors. The FPGA sends back a command for each pump. Our session ran on a board hosted by the AMD University Program.

Try one change in demand

  1. Open the demo and select Start demo, then Synthesize and run. The editor builds the supplied controller and opens a board session. The source is fixed for this public exercise.
  2. Wait for Program ready and scroll down past the board camera and instruments to the tank. Find the three level indicators on its right edge and the two pump codes at its base.
  3. Turn on Automatic under Water Demand. Watch the middle sensor. Before it goes dark, predict which change you will see first: one pump starts, or both start together.
Guided Boolean Board demo offers to synthesize and run the water-tank controller.
The public demo opens with the Verilog controller already loaded.

Read the commands as the level falls

Automatic demand enabled. The outlet reads 2250 and both pump commands read 00.
First observation: the tank is supplying water, but the middle level sensor is still lit. Both pumps are off (00).
Water level below the middle sensor. The left pump reads 01 and its inlet shows 2000.
Later in the same run: the middle sensor is dark. The FPGA has commanded the left pump on (01); the right stays off (00).

The control rule explains the change. With the middle sensor covered, the controller holds both pumps off. Between the low and middle sensors it requests one pump and alternates which one does the work. Below the low sensor it calls for both. The automatic demand varies, so your pump and flow readings may differ from the snapshots.

For a class, show the first tank screenshot with both pumps at 00. Cover the next screenshot and its caption. Which two pump codes do students expect when the middle sensor goes dark? Then run the controller and check the prediction. For a second look at the same board with other instruments and outputs, try the Boolean Board Signals Showcase.

Want students to test their own controller? Ask LabsLand about Boolean Board access for your course. Include your class size and the design you want students to run.

This post is also available in Español.

Luis

Luis Rodríguez Gil is CTO of LabsLand and one of its co-founders. He has been taking part for over 8 years in remote labs research. Now he works in LabsLand to ensure that this innovative technology reaches its full potential for education.