yoelk / instrumentino

Instrumentino is an open-source modular graphical user interface framework for controlling Arduino based experimental instruments
GNU General Public License v3.0
137 stars 59 forks source link

Values for MKS Controller #11

Closed athenawisdoms closed 8 years ago

athenawisdoms commented 9 years ago

Hi there, which MKS MFC controller does Instrumentino support?

Looking at MKS MFC, how do you do the voltage-pressure mapping for the "Flow Signal Output" and "Set Point Input" pins?

yoelk commented 9 years ago

It's the old black kind. Here is the model number of one of them: 1179A11CS1BK

They require a 0-5 volts signal for 0-100% flow, so when you type 50% in the GUI, Instrumentino tells Arduino to write 2.5V to the output pin.

Does this answer your question? I'm not sure I understood it correctly.

On Tue, Jun 9, 2015 at 4:28 PM, athenawisdoms notifications@github.com wrote:

Hi there, which MKS MFC controller does Instrumentino support?

Looking at MKS 2179, how do you do the voltage-pressure mapping for the "Flow Signal Output" and "Set Point Input" pins?

— Reply to this email directly or view it on GitHub https://github.com/yoelk/Instrumentino/issues/11.

athenawisdoms commented 9 years ago

Yes that answered it!

How do you convert the voltage reading from the "Flow Signal Output" to an sccm value?

yoelk commented 9 years ago

Well, you'd have to look at the full scale of the MFC and multiply it by the percentage you put into Instrumentino. I guess each MFC will have a different full scale

On Wed, Jun 10, 2015 at 2:26 PM, athenawisdoms notifications@github.com wrote:

Yes that answered it!

How do you convert the voltage reading from the "Flow Signal Output" to an sccm value?

— Reply to this email directly or view it on GitHub https://github.com/yoelk/Instrumentino/issues/11#issuecomment-110729595.

athenawisdoms commented 9 years ago

Thank you that makes sense. I'm trying to understand how the electronics and code work before using it. Sorry for asking too many questions below:

What is are the pins labelled MKS Test Point and Optional Input for?

Why did you connect the NC pins to Signal Common rather than leave it open like the pin MKS TP?

Why did you connect Chassis Ground to Signal Common instead of to Power Common?

For gas to flow through the MFC, do we supply a 0.0 VDC to pin 4 and 5.0 VDC to pin 3?

Why is the Set Point Input driven through an I2C rather than directly from the Arduino output pins?

yoelk commented 9 years ago

I'm not sure about the MKS Test and Optional Input pins, I don't use them.

I connected the NC pins to ground because it made the ground connections easier (look at the board file). I don't think it should matter.

Chasis ground might have been better connected to power common, perhaps you're right.

Which pins 4 and 3 are you referring to? the MFC's or Arduino's pins? To set the output we write an I2C command to the I2C bus.

You need an analog output, which Arduino boards usually don't have. An I2C DAC is one way to go, which we found works quite well.

On Thu, Jun 11, 2015 at 3:33 PM, athenawisdoms notifications@github.com wrote:

Thank you that makes sense. I'm trying to understand how the electronics and code work before using it. Sorry for asking too many questions below:

What is are the pins labelled MKS Test Point and Optional Input for?

Why did you connect the NC pins to Signal Common rather than leave it open like the pin MKS TP?

Why did you connect Chassis Ground to Signal Common instead of to Power Common?

For gas to flow through the MFC, do we supply a 0.0 VDC to pin 4 and 5.0 VDC to pin 3?

Why is the Set Point Input driven through an I2C rather than directly from the Arduino output pins?

— Reply to this email directly or view it on GitHub https://github.com/yoelk/Instrumentino/issues/11#issuecomment-111136793.

athenawisdoms commented 9 years ago

Sorry, was referring to pin 7 Valve Open (TTL low) and pin 5 Valve Close (TTL low) on the MFC.

Looking more closely at the schematics, should the MAX517's SCL and SDA be connected to Arduino's D4 and D5 instead of A4 and A5 as those seem to be Nano's SCL/SDA pins.

Whats the purpose of the 330R resistors R1/R3 and 10k resistors R8/R2?

yoelk commented 9 years ago

you can use the PWM output with a low pass filter, and we also used to do it this way. But the DAC gives you a much nicer signal out.

On Thu, Jun 11, 2015 at 4:00 PM, athenawisdoms notifications@github.com wrote:

Sorry, was referring to pin 7 Valve Open (TTL low) and pin 5 Valve Close (TTL low) on the MFC.

Will the Arduino's PWM output not work as an analog output for the MFC?

— Reply to this email directly or view it on GitHub https://github.com/yoelk/Instrumentino/issues/11#issuecomment-111145460.

athenawisdoms commented 9 years ago

Looking more closely at the schematics, should the MAX517's SCL and SDA be connected to Arduino's D4 and D5 instead of A4 and A5 as those seem to be Nano's SCL/SDA pins.

Whats the purpose of the 330R resistors R1/R3 and 10k resistors R8/R2?

yoelk commented 9 years ago

Where did you get this information? According to this datasheet http://www.arduino.cc/en/Main/ArduinoBoardNano its A4,A5.

For your second question, please look here http://www.chemie.unibas.ch/~hauser/open-source-lab/Arduino-DAC/Arduino-DAC.html .

On Thu, Jun 11, 2015 at 11:07 PM, athenawisdoms notifications@github.com wrote:

Looking more closely at the schematics, should the MAX517's SCL and SDA be connected to Arduino's D4 and D5 instead of A4 and A5 as those seem to be Nano's SCL/SDA pins.

Whats the purpose of the 330R resistors R1/R3 and 10k resistors R8/R2?

— Reply to this email directly or view it on GitHub https://github.com/yoelk/Instrumentino/issues/11#issuecomment-111277934.

athenawisdoms commented 9 years ago

I got the info from another source

Thank you, I assume replacing the 4.7k resistors in your references with 10k in your schematics does affect anything much.

yoelk commented 9 years ago

Yes, that should be fine.

On Sat, Jun 13, 2015 at 3:08 PM, athenawisdoms notifications@github.com wrote:

I got the info from another source

https://camo.githubusercontent.com/1374d49a41cdf7a7b5dc99c74f0ddd2b4de20f62/687474703a2f2f322e62702e626c6f6773706f742e636f6d2f2d6e4762776270717a3778552f554a5732796f52636437492f41414141414141415464492f4b4739357556734c67644d2f73313630302f41726475696e6f2532426e616e6f25324250696e6f75742e706e67

Thank you, I assume replacing the 4.7k resistors in your references with 10k in your schematics does affect anything much.

— Reply to this email directly or view it on GitHub https://github.com/yoelk/Instrumentino/issues/11#issuecomment-111709488.