lotfimrad
Posts: 5
Joined: Tue Mar 19, 2013 2:35 am

control machine need help

Sat Mar 30, 2013 3:46 pm

hi friends i need help so my problem is i have to creat a machine to control electrovans with the value of ph, for exemple if ph>8 open electrovan 1 and if ph<8 open electrovan 2 ,it seems to be easy ,but no very easy ,so the problem as we know all the raspberry pi needs only an numeric input and ,i have analogic input because the value issue for ph meter is analogic .i have a proposition and i need to know if it is true or false ,my proposition is to use other electronic card that i well make in a ph probe and a OP with a gain 3.5 and a shunt regulator for the OP and the output of the OP will be the input of a CAN (ADC08031N) then i will conect the ADC08031N with the Raspberry pi

techpaul
Posts: 1512
Joined: Sat Jul 14, 2012 6:40 pm
Location: Reading, UK
Contact: Website

Re: control machine need help

Sat Mar 30, 2013 4:04 pm

First work out
  • How fast does ph change 10 times a second, 1 time a second 1 time an hour
  • How fast cant the electrovan operate and then operate again
  • What range of ph values are allowable
  • How precisely can I measure ph (to how many decimal places)
  • Do I have the spec of voltage outputs for the ph Probe
Currently I see a lot of wich ful thinking, as you think the ph level will be one constant level, it will be changing and have noise on it, so values will twitter all over the place. Your scheme seems to assume ph values are 0 to 7, 8 , 9 and above, values from ADC and probe wil be something [like
  • 0 to 7.9999999999
  • 8.000000000 (or possibly not all depending on resolution steps)
  • 8.000000001 and above
You need to think through the mechanical response times and measurement time.

I have no idea if a gain of 3.5 will do as I know nothing about the ph probe (there are many types out there). The ADC seems overkill as I doubt you will be taking readings more than once a second and that ADC can take 1 million samples a second, even PCF8591 or MCP3008 range could easily do the job and probably much cheaper.

You need to look at hysterisis, dead bands, and your basic algorithm as if you get a ph reading of exactly 8 you algorithm does nothing but your software could put electrovan in wrong position.
Just another techie on the net - For GPIO boards see http:///www.facebook.com/pcservicesreading
or http://www.pcserviceselectronics.co.uk/pi/

Return to “General discussion”