Photofet switched 4-20mA, 2-wire measurement circuit ?

Hey Guys

Im working on a project to read a 4-20ma pressure transducer that normally gets power from a 9-36v supply and I know how to wire the measuring circuit for that setup. my issue is I am now going to use a 3.6v to 12v converter and mosfet to power up the loop take a reading and shut the loop down after. My problem is how do I wire this circuit since both the sensor and arduino will be powered from the same battery.

Currently my circuit looks like the image attached.

I hope someone can help out with this one.

If the opto coupler is turned off, what voltage will be applied to A0?

Hi

Nothing will be applied to senor, A0 is attached to arduino as in input.
I have since changed the diagram ( see attached ) to avoid measurements being effected by the mosfet.

100ohm is 2volt on A0 @20mA.
Lost resolution.

Better to replace the 100ohm resistor with a 51ohm resistor (E24), and enable 1.1volt Aref in void setup().
Then readout is more stable, and you use the full resolution of the A/D.

Increase R16 to 10k and add a 100n cap from A0 to ground for increased pin protection and stability.
Leo..

Hi Wawa

Thank you for your input!
I have made the changes you suggested. (attached ) please confirm if i understood you correctly.

Thank you

Yes, correct.
Please understand that this (51ohms) only works if you also change default Aref to 1.1volt Aref.
Leo..

Hi Leo

All good I understand, on thing I want to confirm the arduino used is 3.3v logic not 5v will this make difference to the AREF setting ?

AFAIK most Arduinos have a 1.1volt Aref, but you can check in the products pages of this site.

If there isn't any 1.1volt Aref, increase the 51ohm resistor to 160ohm (E24 value).
That should use max A/D range at ~3.3volt default Aref. Stability will then depend on VCC.
Leo..