Menu building


Closed Thread
Results 1 to 10 of 10

Thread: Menu building

Hybrid View

  1. #1
    Join Date
    Apr 2014
    Location
    OK
    Posts
    557


    Did you find this post helpful? Yes | No

    Default Re: Menu building

    I'll start where Dave led us and raise a few more questions. I create controllers for other people. I ask lots of questions about what they are attempting to accomplish. What determines whether you want a light on or off? What determines whether you want a pump on or off? Is there a target for an analog (PWM) variable output? Many times, the whole process can be automated with absolutely no user input based solely on desired results. Knowing what determines whether a given output should be "1" or "0" (ON or OFF) inspires the addition of an input the PIC can use to make the decision automatically. If you are looking for random changes in outputs, switches and/or pots can generate simple inputs.

    If you could show us an algorithm (flow chart) that describes the ideal scenario, a better solution may become blatantly obvious.

  2. #2
    Join Date
    Apr 2011
    Location
    Welches, Oregon
    Posts
    198


    Did you find this post helpful? Yes | No

    Default Re: Menu building

    Quote Originally Posted by mpgmike View Post
    I'll start where Dave led us and raise a few more questions. I create controllers for other people. I ask lots of questions about what they are attempting to accomplish. What determines whether you want a light on or off? What determines whether you want a pump on or off? Is there a target for an analog (PWM) variable output? Many times, the whole process can be automated with absolutely no user input based solely on desired results. Knowing what determines whether a given output should be "1" or "0" (ON or OFF) inspires the addition of an input the PIC can use to make the decision automatically. If you are looking for random changes in outputs, switches and/or pots can generate simple inputs.

    If you could show us an algorithm (flow chart) that describes the ideal scenario, a better solution may become blatantly obvious.
    You are correct and what you suggest is exactly my strategy. However, it is necessary to have simple means to correct in response to unforeseen circumstances. I often will cancel dosing when I am on vacation, or in response to algae growth. I would guess that 75 - 90% of what I rely on the controller to do is automated. These are time based and there is little logic else to consider.

    I monitor certain basic functions - temperature, water level and flow, and light level (the florescent bulbs I use degrade in output over time). I also track the lifespan of my U/V system, but most of these are alarms or indicator type lights and are not complicated function type decision makers. I suspect if one had several tanks or, if one were far more advanced in knowledge of programming... Besides, I rather enjoy "getting my sleeves wet" and only for the safety and security of my tenants am I mostly concerned.

Similar Threads

  1. Building an I2C monitor ... but i think it is not Slave....
    By LakisFM1 in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 13th March 2012, 07:04
  2. Pulse Capture and byte building
    By boroko in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 21st July 2009, 02:59
  3. Replies: 6
    Last Post: - 1st February 2008, 04:35
  4. building a serial LCD using 16f84a
    By capix in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 4th February 2006, 13:24
  5. building own library with include-files?
    By mischl in forum mel PIC BASIC Pro
    Replies: 25
    Last Post: - 22nd September 2005, 21:46

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts