Activity Forums Questions & Troubleshooting Software & Firmware Problem Maxi Automatin between Controllino_AI9 and Controllino_AI10

  • Problem Maxi Automatin between Controllino_AI9 and Controllino_AI10

     Lukas updated 2 weeks, 2 days ago 2 Members · 2 Posts
  • mf66

    Member
    September 21, 2021 at 12:24 pm

    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

  • Lukas

    Member
    September 30, 2021 at 9:09 am

    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

Viewing 1 - 2 of 2 replies

Log in to reply.

Original Post
0 of 0 posts June 2018
Now