I have a Power Supply with a 0-10V input and i want to use the 0-10V analogOut on the Maxi Automation to control the Power Output of the Power supply. However, with a pin value of 0, the voltage between AO0 and GND (screw terminal) is 10V and keeps rising as I raise the pin Value. A pin value of 255 results in a Voltage of 18,3 V. What am I doing wrong ?
Code :
Code: Select all
#include <Controllino.h>
void setup() {
pinMode(CONTROLLINO_AO0, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
int analogOut0 = 0; // 0 - 255 to be set (0 - 10 000 mV, or 0 - 20 000 uA)
analogWrite(CONTROLLINO_AO0, analogOut0); // set the analog output 0 to 5V or 10mA