element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
IoT: In the Cloud
  • Challenges & Projects
  • Project14
  • IoT: In the Cloud
  • More
  • Cancel
IoT: In the Cloud
Blog Irrigation Sprinkler Controller - GUI Design
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join IoT: In the Cloud to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: ralphjy
  • Date Created: 27 Mar 2019 3:42 AM Date Created
  • Views 1659 views
  • Likes 9 likes
  • Comments 5 comments
  • sprinklers
  • gui
  • iot devices
  • iotcloudch
  • tkinter
  • touch interface
  • project14
Related
Recommended

Irrigation Sprinkler Controller - GUI Design

ralphjy
ralphjy
27 Mar 2019
image

IoT: In the Cloud

Enter Your Project for a chance to win an Arduino MKR WAN 1300 Kit with a Compatable Lora Gateway or an MKR 1400 GSM with a Shield Combo + a $100 shopping cart!

Back to The Project14 homepage image

Project14 Home
Monthly Themes
Monthly Theme Poll

GUI Initial Mockup in Powerpoint

I started designing the GUI by doing a cartoon layout of the different elements on a Powerpoint slide.  This gave me a visual prototype to follow as I coded the GUI layout.

image

The following is a capture of the GUI running in a VNC window on the RPi.  I'll use this initial setup to get the hardware and cloud interfaces working.  I'll need to come back and update it after I've used it for a while.

image

 

The following is a photo of the actual screen just for reference.  I need to figure out how to get better focus and exposure with my camera.  You can see the Desktop behind the GUI window.  I intend to run the GUI without the Desktop but I haven't worked that part out yet (I'll need some form of Xwindows running).

image

 

GUI elements used

 

Mode Control

The mode selection is implemented as a Radiobutton.  The modes are mutually exclusive so selecting one deselects the others.

  • Auto mode - runs the displayed schedule
  • Off mode - doesn't run (for rainy days - without changing schedule)
  • Run once - runs once through all zones and returns to previous mode (Auto or Off)

image

 

14 day schedule

The day selection is implemented as a regular Button.  Within a 2 week time frame any or all days can be selected.  The button turns green when selected.

The day indicator is also implemented as a Button.  It turns yellow to indicate the current day and is blank for other days.

image

 

Start time

The Start time selector is implemented as a Spinbox.  It contains contains values from midnight to 11:30pm in 30 minute increments in 24hr time.  I wanted to be able to set this time using the touchscreen so I used a Spinbox so that I would not have to implement a keyboard for input.  I am having some issues with "bounce" (increment or decrement more than 1 value) so I may need to use a different element if I can't debounce it in software.

image

 

Zone Duration

The Zone duration is implemented as a Scale (slider).  It can select any value from 0 - 60 minutes.  I'll probably change the Zone button color to show that the zone is active.  Maybe move the slider to indicate remaining time.

image

 

Current time

The Time display is implemented as a Label.  There isn't a synchronous way to update this value so I'll need to use a separate timer.  I may reformat how this displays and probably won't display seconds.

image

 

Reset

Reset is implemented as a Button.  Always red.  I haven't decided on the exact functionality.  This may just cause a reboot of the RPi.  I may also need to add a Shutdown button in addition to a physical power switch.

image

  • Sign in to reply

Top Comments

  • ralphjy
    ralphjy over 6 years ago in reply to genebren +1
    Hi Gene, It is amazing how complex controlling 4 sprinkler valves can become. At least the hardware part is straightforward. The good news about implementing with a microcontroller/sbc is that the control…
  • Sean_Miller
    Sean_Miller over 6 years ago +1
    Very good stuff! I'm embarking on a similar project for this summer. I look forward to seeing your solution. -Sean
Parents
  • Luberth
    Luberth over 2 years ago

    Visual scheduler, graphical scheduler, irrigation scheduler, light scheduler, wifi scheduler, sprinkler scheduler

    • https://ldijkman.github.io/randomnerd_esp32_wifi_manager/mrs/
    • image
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • Luberth
    Luberth over 2 years ago

    Visual scheduler, graphical scheduler, irrigation scheduler, light scheduler, wifi scheduler, sprinkler scheduler

    • https://ldijkman.github.io/randomnerd_esp32_wifi_manager/mrs/
    • image
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube