Teenagers know what is “cool”. And this week I have two teenage votes in the cool column for the PID control algorithm on the Segway Human Transporter. Well…almost! This week, I took a family vacation to California. It was great to get away from the cold, wind, and snow of Pennsylvania. My two teenage sons and I decided to take a Segway tour of San Francisco, with San Francisco Segway Tours.

If you haven’t seen one, a Segway is a two-wheeled scooter-like device that somehow manages to stand upright, go forward and reverse, and turn tight zero-radius circles. You can find pictures and product info on http://www.segway.com/

After a short training session, we followed our tour guide for a 2+ hour tour of San Francisco. We went up and down hills, through North Beach, past many San Francisco landmarks, and finally out onto the piers near San Francisco Bay. At a top speed of about 10 miles per hour, it was a lot more efficient and less tiring than walking. It was a sunny day, and the sight-seeing was great. But that’s not the best of it…

The controls are actually the cool part. The Segway has mini gyroscope-like devices to measure the angles and the angular momentum of the Segway (and its passenger). The controller moves the two wheels to keep you upright. When you first step up onto the platform, and it feels for a second like you will thrown off. This is because your own system is fighting the Segway to keep you upright. Just relax, and in 5 seconds, you are standing upright, balanced by the machine.

Lean slightly forward, and the machine glides forward. Shift back toward your heels, and it stops. Even though you are only on two wheels, you remain perfectly upright. The angle is being controlled by a PID algorithm, execution 100 times per second, making minute adjustments to the two motors.

There is great article on the Segway available on How Stuff Works. Check it out if you want more details.

In just a few minutes of riding time, the Segway seems completely natural. You don’t even have to think about starting and stopping. You body adapts to the weight shifts pretty easily. In a couple of hours, we covered most of downtown San Francisco, including Lombard Street (not the steep part!), Coit Tower, North Beach, Fisherman’s Wharf, and Ghirardelli Square.

As we finished our trip, zooming around a concrete pier that juts into San Francisco Bay, I couldn’t resist being the “nerdy dad”. I had to explain to my sons how this contraption works. Believe it or not, they actually thought that PID was “cool”!

OK, so here’s a shameless plug for my short book “Mastering Split-Range Control”. It’s 30 pages, with everything you could ever want to know about Split-Range Control. Available via Amazon CreateSpace at: https://www.createspace.com/3395995 .

Split-range control uses a single controller with two control valves to maintain a single process variable. It can be used for a variety of applications, such as heating and cooling of a tank or a room. Split-range control is widely used in the process industries, such as pulp and paper, oil and petrochemicals, and mining.

The book covers all aspects of the use of split-range control. Starting with the basics, the book discusses when to use split-range and when not to, costs and benefits, how to configure the control strategy, how to calibrate the valves, how to tune the loops, and even how to train operators and troubleshoot problems. Color pictures illustrate the key concepts.

Get ready to boost your process control skills again. The Engineering Toolbox has some great online tools, to help you become a better process control guru. This includes tools for:

  • Control Valve Sizing
  • P&ID’s
  • Instrument Selection
  • Unit Conversions
  • Many More

Oh! And it’s free! Follow the link below to get a look at it yourself:

Engineering Toolbox Process Control Tools

I recently flew in a small single-engine airplane, equipped with an autopilot. As we cruised along at 17,000 feet, I had a chance to find out exactly how the autopilot worked.

I had heard that most auto-pilots were simple proportional-only controllers. But I could see right away that this auto-pilot must have some integral action as well.

I could see this because the controller managed to get the altitude exactly right. There was never an “offset”. You may recall from your control theory that a P-only controller will always be vexed by “offset” – a permanent error between SP and PV, except at one setpoint value.

There is no Derivative action in the autopilot, for fairly obvious reasons. (imagine how it would react to turbulence!)

The excellent control of altitude (and heading) was cool enough. But what really caught my attention was the mechanism for changing controller setpoints.

A small LCD input device allowed the pilot to provide a new setpoint for altitude AND a vertical speed setpoint…essentially setting a setpoint ramp rate. What a simple interface for some fairly complex control.

Keep in mind that ramping between two setpoints is an EXCELLENT technique to reduce control variation. When you make sudden setpoint changes, the process responds jerkily, and downstream operations may be affected. When you ramp between setpoints, the transition can be as gradual as you want it to be.

Most DCS systems can be configured to allow setpoint ramping. However, it may not always be easy to configure or to operate.

The auto pilot also used “PV Tracking”. This means that while the controller was in MANUAL, the setpoint was continually adjusted to match the PV. This provides for a “bumpless transfer” when the controller returns to AUTO. The downside is that you must be vigilant about putting the setpoint back to where you want it when you go to AUTO.

The controller had more cool features. You could pull the PV information from a variety of sources (altimeter, GPS), and, of course, there were many ways to quickly disable or override the autopilot.

The point of all of this is…Always be on the lookout for more ways to become a better process control guru. You may find examples all around you.