Connecting a DP-101A-M-P Sensor to a Duet 3HC Board
-
Hi everyone,
I’m looking for some guidance on connecting a DP-101A-M-P sensor to a Duet 3HC board. The sensor has an analog output, which can either be 1-5V or 4-20mA. I’ve done some research and it seems like the temperature pins might be the correct ones to use for this connection. However, the documentation doesn't provide detailed information on how to wire it properly.
Could someone help clarify the correct way to connect this sensor to the Duet 3HC board?
Thanks in advance for your help!
-
Hi everyone,
I previously asked about connecting a DP-101A-M-P sensor to the Duet 3HC board, which has an analog output of either 1-5V or 4-20mA. I suspect the temperature pins might be the correct ones to use, but I couldn’t find any clear information in the documentation.
To follow up, could someone also confirm the maximum input voltage for the temperature pins on the Duet 3HC board? This would help me a lot in determining how to properly connect the sensor.
Thanks again for any help!
-
@OskarP You can use any analogue input on the 3HC (see https://docs.duet3d.com/Duet3D_hardware/Duet_3_family/Duet_3_Expansion_3HC#inputoutput looks like io0.in, io1.in, io2.in, io5.in are all capable, and these inputs will tolerate up to 30V), you just need to scale the input from 0-5V to 0-3.3V, using a voltage divider, eg https://randomnerdtutorials.com/how-to-level-shift-5v-to-3-3v/. Then define it as a "linear-analog" sensor in M308. This assumes that the output is linear. Use the M308 B and C parameters to define the reading when 0V and 3.3V is reported.
You may not even need a voltage divider, if the pressure range you are interested in is represented by the 0-3.3V part of the output of the sensor. It's worth connecting it as-is, and seeing if it is sufficient.
While the temperature inputs do already have a voltage divider circuit, I'm not sure they are suitable for this application.
Ian
-
@droftarts
Hello Ian,Thank you very much for your response. I believe I have the appropriate resistors for the voltage divider. I will try connecting the sensor to io1.in and will let you know if everything works as expected.
Best regards,
Oskar -
-
-