Quantcast
Channel: Arduino Forum - Latest topics
Viewing all articles
Browse latest Browse all 15317

Wiring multiple 4-20mA signals to arduino uno

$
0
0

I have a pH controller that can output two 4-20mA signals. One for pH, and one for temperature. The outputs on the controller have a + and -

I've wired a single output with a 220ohm resistor between the positive and negative with the positive going to analog pin 0 and the negative going to gnd on the Arduino. This gives me a 0.88 to 4.4V signal to the Arduino. There are no issues here. The pH controller also displays the output signal and it matches what the Arduino reads.

The issue becomes when I wire up the second 4-20mA output the same way I did the first (but to a separate analog input pin on the Arduino). When I wire this second signal in, the Arduino reads the same signal for both pins. I have a feeling I did something wrong on the wiring side of things. Can anyone please provide some advice/assistance?

`

Edit: Thank you everyone for the responses. Here is some additional information some have requested.

link to manual: https://pim-resources.coleparmer.com/instruction-manual/0580218.pdf

Arduino code below:

int Temp_pin = 2;
int pH_pin = 5;

float vPow = 5;

String pH_str = "P,";
String Temp_str = "T,";
String term = ",";

void setup() {
  Serial.begin(115200);
}

void loop() {
  
  float pH = (analogRead(pH_pin) * vPow)/1024.0;
  Serial.print(pH_str);
  Serial.print(pH);
  Serial.println(term);
  
  float Temp = (analogRead(Temp_pin) * vPow)/1024.0;
  Serial.print(Temp_str);
  Serial.print(Temp);
  Serial.println(term);
  
  delay(2000);
}

11 posts - 5 participants

Read full topic


Viewing all articles
Browse latest Browse all 15317

Trending Articles