Skip to main content
PWM Light Control - Ver. 2's image

PWM Light Control - Ver. 2

Here is another version of the PWM Light Control Project. It does exactly the same thing as the one in the previous effort. The difference is in the use of the Custom Function block. The block may contain multiple lines of formulas and other code.

Sprinkler Control 1: Hardcoded Schedule's image

Sprinkler Control 1: Hardcoded Schedule

Having worked through The Basics section of the Tutorial, you now know enough to take on a "real project." We start with a multi-step implementation of a device that is common in agriculture -- the Sprinkler (Watering) Controller. Such controllers turn the plant watering on and off according to a pre-defined schedule.

Sprinkler Control 2: Data Table Schedule's image

Sprinkler Control 2: Data Table Schedule

Hardcoding the watering start times and duration -- as we did in the first version of the application -- is a "quick and dirty" way of creating a Sprinkler Controller for personal use. If you are designing for your customers, a bit more "finesse" will be required to satisfy the general public. Obviously, the proper way is to have an editable schedule table. Each entry in this table would consist of the watering start time and the watering duration.

Sprinkler Control 3: Status on LCD's image

Sprinkler Control 3: Status on LCD

This project expands on the previous application by adding status messages displayed on the LCD. For this to work, you must have the TPS2L(G2) device -- only this model has the LCD (and keypad).

Sprinkler Control 4: Manual Watering's image

Sprinkler Control 4: Manual Watering

It is great to have the watering happen on schedule, but sometimes you will want to manually operate the sprinklers, even if to test that the hardware works properly.

Sprinkler Control 5: Web Dashboard's image

Sprinkler Control 5: Web Dashboard

In this next iteration of the Sprinkler Control project, the ability to monitor the state of and control the sprinkler relay remotely is added. This is done through the dashboard, a page of your device's web interface that can host widgets. The dashboard is configured on the General subpage of the Web Dashboard page of the Features tab. Open this page to see the widget this project uses:

Sprinkler Control 6: Multiple Zones's image

Sprinkler Control 6: Multiple Zones

In the final version of the Sprinkler Control project, we go multi-zone. The application only controls two relays (to save the slot space inside your TPS), but you can easily extend it to individually control many more watering zones.