element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • 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
Arduino
  • Products
  • More
Arduino
Arduino Forum PID control for a high hysteresis
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 4 replies
  • Subscribers 401 subscribers
  • Views 534 views
  • Users 0 members are here
Related

PID control for a high hysteresis

Former Member
Former Member over 13 years ago

Hi

My current pet project is a PH controller for a swimming pool, The sensor and dosing dump are easy and covered.

But PID control is gong to to the kicker. There is plenty of example for PID out there, but can;t find anything for a very high hysteresis system.

Any one got any good reading ?

  • Sign in to reply
  • Cancel

Top Replies

  • Former Member
    Former Member over 13 years ago in reply to ntewinkel +1
    Hi Nico, that sounds reasonable approach. Maybe I'm being to scientific about this? Regarding chorine control, that is phase two of my project. From my reading so far Oxidation Reduction Potential or Redox…
Parents
  • ntewinkel
    0 ntewinkel over 13 years ago

    Is the pH sensor accurate enough that you could dose an amount based on requirement and then stop? (I would have a set maximum dosage too, just in case something goes a little wonky).

     

    Then I would start a timer to wait however long the lag generally is - I think for my hot tub they say to wait 20 minutes.

     

    So my algorith would be:

     

    repeat {

    1. Test pH

    2. if not in ideal range {

         2.1 calculate dosage of pH-up or pH-down, and do the dose.

         2.2  wait 20 minutes (ie, delay loop, or set a timer/interrupt, or check milliseconds since startup. )

    }

    4. wait 10 minutes

    }

     

    step 4 is time between testing. I don't know how quickly pH changes, so you'd adjust that as you see fit.

     

    Does that help?

     

    ps, I'm more interested in automating Chlorine content in my hot-tub - do you know if any affordable and low maintenance sensors exist for that?

     

    Cheers,

    -Nico

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 13 years ago in reply to ntewinkel

    Hi Nico,

    that sounds reasonable approach. Maybe I'm being to scientific about this?

     

    Regarding chorine control, that is phase two of my project.

    From my reading so far Oxidation Reduction Potential or Redox measurenes can be used to corilate chlorine levels, however the Ph level needs to be stable..

     

    Atlas Scientic do a ranges of sensors, I'm using the Ph probe & sensor and it works very well.

    The ORP sensor can be found at

    https://www.atlas-scientific.com/product_pages/kits/orp-kit.html

     

     

    regards mike

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • ntewinkel
    0 ntewinkel over 13 years ago in reply to Former Member

    Hi Mike,

     

    I don't know.. I just like to keep things as simple as possible image  But if there is a huge lag from adding chemicals to seeing the result, I don't think there is any other way except to wait.

     

    Thanks for the link to the sensor kits - they even make it easy to use the results, and the price is not too bad. The sensors look huge though, so it would be tricky to fit those in-line somewhere in my hottub setup. Or maybe the circuit boards are just tiny, heh.

     

    Cheers,

    -Nico

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • ntewinkel
    0 ntewinkel over 13 years ago in reply to Former Member

    Hi Mike,

     

    I don't know.. I just like to keep things as simple as possible image  But if there is a huge lag from adding chemicals to seeing the result, I don't think there is any other way except to wait.

     

    Thanks for the link to the sensor kits - they even make it easy to use the results, and the price is not too bad. The sensors look huge though, so it would be tricky to fit those in-line somewhere in my hottub setup. Or maybe the circuit boards are just tiny, heh.

     

    Cheers,

    -Nico

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • Former Member
    0 Former Member over 13 years ago in reply to ntewinkel

    HI Nico,

    the probe is large-ish ( but this is normal for these chemical sensors) In a swimming there are plently of pipes hiden in the filter enclosure

    I modified a comercial solution to insert the probe into a pipe as below. the fitting cost $55 AUD but as the comercial Ph controlller cost welll over $1500 aud. I'm well ahead on the project. (+ I'm having a lot of fun adding web interfaces and monitoring)

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
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