Forum Replies Created

Viewing 1 - 5 of 5 posts
  • Grimmie

    Member
    March 30, 2021 at 9:30 pm

    Was hoping for at least some replies…

    • This reply was modified 3 years, 1 month ago by  Grimmie.
  • Grimmie

    Member
    March 27, 2021 at 12:12 am

    To be complete, this is the code I use:

    /*

    ReadAnalogVoltage

    Reads an analog input on pin 0, converts it to voltage, and prints the result to the Serial Monitor.

    Graphical representation is available using Serial Plotter (Tools > Serial Plotter menu).

    Attach the center pin of a potentiometer to pin A0, and the outside pins to +5V and ground.

    This example code is in the public domain.

    http://www.arduino.cc/en/Tutorial/ReadAnalogVoltage

    */

    // the setup routine runs once when you press reset:

    void setup() {

    // initialize serial communication at 9600 bits per second:

    Serial.begin(9600);

    }

    // the loop routine runs over and over again forever:

    void loop() {

    // read the input on analog pin 0:

    int sensorValue = analogRead(A0);

    // print out the value you read:

    Serial.println(sensorValue);

    }

  • Grimmie

    Member
    March 27, 2021 at 12:06 am

    Apologies, not sure where these “font” HTML codes came from, I didn’t put them there…

  • Grimmie

    Member
    April 5, 2021 at 8:29 am

    Thanks for the tips, I will certainly give it a go!

  • Grimmie

    Member
    April 2, 2021 at 8:52 pm

    Hi Friedl,

    Thank you for your reply.

    I must admit that I did see minimum supply voltage @8v for the sensor. I ignored that for convenience sake. Because the readings did change with the temperature I asumed the sensor still worked, furthermore @100C the voltage would have been well over 8v, but the reading did not change significantly.

    That being said, you might be right this is an issue. I do however not see how using the Maxi Automation in 0-10v with 500ohm resistor would help my situation, am I missing something?

    The more I think about it I start to see this sensor simply isn’t suited for 4-20mA to 0-10v conversion. Because of it’s two wire construction, the power supply and signal share the same wires.

    Perhaps I should try again with a 3 wire sensor, where power and signal are separated.

Viewing 1 - 5 of 5 posts