Activity › Forums › Questions & Troubleshooting › Software & Firmware › Problem Maxi Automatin between Controllino_AI9 and Controllino_AI10
-
Problem Maxi Automatin between Controllino_AI9 and Controllino_AI10
-
Hello , i am using the Button Class (Autor Raz Haleva) to read inputs and send the status to the MQTT Broker like:
loop…
{
Button::Event event = buttons[button]->check();
if (event == Button::Event::Down) { mqttClient.publish(buttonText[button], “Down”); }
else if (event == Button::Event::Up) { mqttClient.publish(buttonText[button], “Up”); }
}
For Controllino_AI0 to 9 it works fine but Controllino_AI10 or 11 it doesnt work. What is the difference between these both inputs? Also with the Controllino
Best Regards Michael
-
Hi Michael,
please note that voltage divisor at screw terminals works as an internal pull-down resistor. So you shoud connect the button between the terminal and the supply voltage. Then it should work, but – you should not activate internal pull-ups in the microcontroller, and it will be inverted (HIGH when pushed, LOW when pulled).
Best regards,
Lukas
Log in to reply.