I have problems with my Controllino Maxi Automation.
I want to use the analog outputs (AO0 and AO1). But I can only generate 0V or 24V at these outputs (nothing in between). According to the program and example description I would have expected 5V (AO0) and 10V (AI0). I pulled the outputs to GND via a 10kOhm pull-down resistor. Otherwise nothing else is connected.
I used the following program:
Code: Select all
#include <Controllino.h> /* Usage of CONTROLLINO library allows you to use CONTROLLINO_xx aliases in your sketch. */
// the setup function runs once when you press reset (CONTROLLINO RST button) or connect the CONTROLLINO to the PC
void setup() {
// initialize all used digital output pins as outputs
pinMode(CONTROLLINO_AO0, OUTPUT);
pinMode(CONTROLLINO_AO1, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
int analogOut0 = 127; // 0 - 255 to be set (0 - 10 000 mV, or 0 - 20 000 uA)
int analogOut1 = 255; // 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
analogWrite(CONTROLLINO_AO1, analogOut1); // set the analog output 1 to 10V or 20mA
}
Is there a hardware defect? Or must other settings for activation be made for the analog outputs of the Controllino Maxi Automation.
With kind regards
Bjorn