Hi there,
I just found out about Teensy and ordered one for a project I am working on that involves a sensor, which outputs a 4-20 mA analog signal.
I am trying to figure out how to read that analog signal using the Teensy.
My idea so far is to use the Analog Inputs on the Teensy to read this signal, but they read voltages. So...
To convert the 4-20 mA analog signal into an analog voltage signal, I was thinking that I could simply run the 4-20 mA signal through a 165 Ohm resistor, which would give me a voltage range of 0.66V to 3.3V (4mA*165Ohms = 0.66V to 20mA*165Ohms = 3.3V). From here, I would connect two analog pins of the teensy to both sides of the resistor to obtain the voltage across the resistor and use that as the analog voltage signal. With this voltage signal I can simply calculate the sensor values.
Is this a valid method for using the teensy analog inputs? Is there a better way to do this?
Also, as an electrical engineering student trying to gain more knowledge, can someone tell me how voltage references work and what they are used for in layman's terms?
I appreciate all help!
Thanks,
Alan
I just found out about Teensy and ordered one for a project I am working on that involves a sensor, which outputs a 4-20 mA analog signal.
I am trying to figure out how to read that analog signal using the Teensy.
My idea so far is to use the Analog Inputs on the Teensy to read this signal, but they read voltages. So...
To convert the 4-20 mA analog signal into an analog voltage signal, I was thinking that I could simply run the 4-20 mA signal through a 165 Ohm resistor, which would give me a voltage range of 0.66V to 3.3V (4mA*165Ohms = 0.66V to 20mA*165Ohms = 3.3V). From here, I would connect two analog pins of the teensy to both sides of the resistor to obtain the voltage across the resistor and use that as the analog voltage signal. With this voltage signal I can simply calculate the sensor values.
Is this a valid method for using the teensy analog inputs? Is there a better way to do this?
Also, as an electrical engineering student trying to gain more knowledge, can someone tell me how voltage references work and what they are used for in layman's terms?
I appreciate all help!
Thanks,
Alan