Swimmer-sensing jet control for swim-in-place pools.

No GitHub account is needed to read or download anything here. If the GitHub app on your phone asks you to sign in, open the link in your web browser instead, or in a private (incognito) tab.
PoolWind monitors your swim with an overhead camera and adjusts the pool’s jet flow so that you will not run into the front or the rear of the pool as you swim faster or slower. The pool is divided into “zones”, each representing an increasing jet speed toward the front. As you move forward through these zones the jet flow will increase until you settle into a zone where your swim is balanced with the jet flow. Forward movement stops. Swim harder and you move into the next zone where the jet flow increases further. The program is set to your specifications and the last zone should be just beyond your most powerful stroke. When you decide to rest a bit, the jet will move you backwards to a zone where your swim is once again balanced as the jet flow relaxes. You can change stroke styles without running into walls.
That is the main crux of PoolWind but since it involves a camera and computer, it opens up other helpful possibilities. It also estimates your actual swimming pace which is displayed on a monitor in letters large enough to see anywhere in the pool, along with the distance swum and the average pace at the current point in time. A big possibility that opened up is swim training, described below.
The PoolWind system is designed for swim training. Each swimmer can plug in their own USB stick and log in their swim session daily over multiple sessions. The camera records the swim and the USB stick stores the data and video. One menu of the program is “Swim Plot” that if selected not only shows the video but also shows a plot of Pace/time or MPH/distance with the cursor synchronized to the exact frame of the video at the moment. The video can be paused, sped up, and slowed down. Moving the cursor also moves the video forward or backward. A calendar allows you to pick a range of dates to be displayed. Reviewing the logs can point out good and bad swimming habits and with average daily Pace being shown on each day of the calendar, progress can be seen at a glance.
The author’s own experience: his kick used to be fairly random. By watching his movements and seeing their effect on the pace plot, swim after swim, he coordinated his legs with the rest of his body into a single, unified stroke pattern and his speed improved noticeably as a result.
Before you buy or build anything, check out a demo of PoolWind that runs on a Windows PC, with a recorded swim and a simulated jet. See section 13 of the setup guide. To start, download the PoolWind demo and double-click it in your Downloads folder (section 13 explains the warnings Windows gives). What happens in the recorded swim, and when to click, is in the demo tour.
Tested on: Endless Pools, Standard Endless Pool (purchased February 2012). The controller board was later replaced after a lightning strike, and PoolWind works with the replacement.
Other makes/models: Untested. Other remotes may have similar buttons which can be used. But a feedback voltage is essential and a relationship between voltage and Pace must be measured in the form of data points (the built-in calibration does this). The program will probably need modifications. You do not need to be a programmer, AI can help. You will need a paid Claude subscription for Claude Code, which you can cancel once PoolWind is set up and running great. See section 12 of the setup guide.
Lighting: PoolWind is developed and tested in an indoor installation with outdoor light coming through. Using artificial lights (tested at night) also works well.
Outdoor use: Not yet tried at a real outdoor pool. Claude tested the swimmer detection on the author’s recorded swims with shade, dappled light through trees, glare and floating leaves painted in, and it held up well as it is: it compares each part of the picture with the picture’s own average, so changing light mostly cancels out, and a single leaf is far too small to be taken for a swimmer. The unknowns are direct sun, with its sharp shadows (including the swimmer’s own), and strong reflections on the water. Shade over the pool and a polarizing filter on the camera should help. If your outdoor pool gives trouble, Claude Code knows what was tested and how to carry on from there (CLAUDE.md, “Outdoor pools”); if you get PoolWind working outdoors, please share how in Discussions.
PoolWind is a do-it-yourself project. It comes with no warranty. Limited help may be found in Discussions, where the author takes part at his discretion. Anyone can read Discussions; to post, sign up for a free GitHub account.
Please read SAFETY.md before building or using PoolWind.
PoolWind is an add-on. It does not modify the pool in any way:
Control: wires are soldered to a spare copy of the pool’s own handheld remote, and relays driven by a Raspberry Pi “press” its speed Up, Down, and On/Off buttons.
Feedback: the jet speed is read back as a voltage through the port that the manufacturer already provides for its optional Pace Display. The same port shows whether the pump is running.
Vision: a camera above the pool tracks where the swimmer is.
The pool’s own controls keep working as when manufactured. Without PoolWind running, the pool operates normally using the other remote (usually supplied).
Automatic jet speed from swimmer position, within the slowest and fastest zone each swimmer sets by swimming (Swimmer limits).
“Swimmer Pace” estimate (your pace through the water, not just the jet setting)
Distance, Swimmer Pace and Average Pace logged to a CSV file for every session
“Swim Plot” for reviewing a day or a date range, synchronized with recorded video
Hold mode: freeze the current speed, vary it with the UP and DN screen buttons
Built-in calibration: a voltage scan fits PoolWind to your pool, then Pace Entry (read from a Pace Display) or PingPong (ping-pong balls timed by the camera); Pace correction while swimming, for each swimmer’s own Paces; old swims shown in today’s Paces
Zone highlight: the jet’s zone as a light band, with thin lines between the zones
Camera check at each start: if the camera has moved, PoolWind offers to move the swim area with it
Automatic detection if the swimmer leaves the center swim zone, pausing data collection and lowering the jet flow to its lowest setting
Per-swimmer USB sticks: personal settings (zone limits, height, training video and its frames per second, all set in Swimmer limits), the swimmer’s own Pace table, and swim data. A stick can be swapped while PoolWind runs. Months of data can be collected depending on the size of the USB stick (about 70 hours on a 32 GB stick, at the shipped 5 frames per second).
Jet speed limits: the jet never goes faster than the top the builder chose during calibration
Jet flow winds down to the swimmer’s slowest zone when PoolWind starts and closes and before it turns the pump off, and to its lowest level before it turns the pump on, to save wear on the equipment
Pump sensing: the OnOff button shows whether the pump is running and checks that a press worked, retrying to turn it off. The swim pauses while the pump is off. With no swimmer in sight for 5 minutes, PoolWind turns the pump off and closes. Closing PoolWind with the pump running asks whether to turn it off
Waterproof: mouse, keyboard, case with clear door holding the Raspberry Pi and monitor at the poolside
Demo: try PoolWind on a Windows PC, with a recorded swim and a simulated jet
PoolWind is an independent project. It is not affiliated with or endorsed by Endless Pools. “Endless Pools” is used only to describe compatibility.
Full details are in the parts list and the build guide; the interface board’s files are in the hardware folder. Everything can be read or downloaded right here on GitHub, on any computer, before you buy the Pi: open a file and use its download button.
PoolWind is a shared hobby project, free for personal, hobby and other noncommercial use under the licenses described in LICENSE.md. It isn’t for sale, and commercial use isn’t permitted.
Copyright © William A. Gorlitz. U.S. Copyright Registration TXu 2-304-621.
The install scripts fetch the libraries PoolWind uses, each under its own license: for example PySide6 (Qt for Python) under the LGPL v3, and OpenCV under the Apache 2.0 license.
No support is provided: you’re welcome to share builds, questions and answers with other users in Discussions in which the author may participate.
An AI assistant such as Claude Code, run in the downloaded PoolWind-download folder, can help: this repository’s CLAUDE.md gives it the background. See Getting help in the setup guide.