Activity Forums Questions & Troubleshooting AnalogWrite causes OVL

  • AnalogWrite causes OVL

  • Alex_S

    Member
    November 2, 2021 at 5:54 pm

    (English version below)

    Hat jemand Erfahrung mit analogwrite?

    Ich betreibe ein Controllino Mega mit 24V.
    Ich möchte einen Ausgang als Analogausgang (PWM) benutzen.

    Problem ist: Bei Werten bis 40 summt das Controllino. Bei Werten ab 60 leuchtet OVL rot.

    Hier der Code:

    // Variablen
    int ao14_value;
    void setup() {
    // Serielle Ausgabe initialisieren
    Serial.begin(9600);
    Serial.println(" Initialisierung");
    // Ausgänge initialisieren:
    pinMode(CONTROLLINO_D14, OUTPUT);
    // Wert setzen
    ao14_value = 40;
    }
    void loop() {
    //Schreibe PWM Ausgang
    analogWrite(CONTROLLINO_D14, ao14_value);
    // Debug
    Serial.print("AnalogWrite D14 = ");
    Serial.println(ao14_value);
    delay(500);
    }

    Wo ist mein Denkfehler?

    ——

    Does anyone have experience with analogwrite?

    I am running a Controllino Mega with 24V.

    I want to use one output as analog output (PWM).

    Problem is: At values up to 40 the Controllino buzzes. With values from 60 OVL lights red.

    Where is my thinking error?

  • Alex_S

    Member
    November 2, 2021 at 6:07 pm

    Ich bin dem Problem auf der Spur.

    Ich den PWM-Ausgang an einen Finder-Dimmer angeschlossen. Dort einen 1K-Widerstand parallel.

    Wenn ich das Kabel vom Controllino löse, ist das summen weg.

    (Finder 15.11.8.230.0400)

    —-

    I am getting closer to the problem.

    I connected the PWM output to a Finder dimmer. There a 1K resistor in parallel.

    When I disconnect the cable from the Controllino, the buzzing is gone.

  • Alex_S

    Member
    November 2, 2021 at 6:47 pm

    Vielleicht sollte ich auch einen Kondensator dem Dimmer parallel schalten, damit das gepulste PWM-Signal sich glättet und wie eine Gleichspannung “aussieht”.

    Keine Ahnung, was so ein Dimmer für eine Eingangsabtastung hat.

    —-

    Maybe I should also put a capacitor in parallel with the dimmer so that the pulsed PWM signal smooths out and “looks” like a DC voltage.

    No idea what such a dimmer has for input sampling.

    • Jarda

      Member
      November 5, 2021 at 2:42 pm

      Dear Alex,

      D14 output is High side switch, so that means it doesn’t go to zero and you shall have significant load for proper operation.

      Also PWM can be problem with inductive load types without freewheeling diode.

      What type of load do you have please? 1kOhm in parallel to dimmer can work. What exact type of dimmer do you have please? If it has analog input, you shall have some rectification also to the dimmer.

      Thank you !

      BR

      Jarda

      • This reply was modified 2 years, 5 months ago by  Jarda.
      • Alex_S

        Member
        November 8, 2021 at 6:09 pm

        Dear Jarda,
        thank you for your answer.

        I’m sorry, it’s not possible to upload a photo of the dimmer.
        It’s called 15.11.8.230.0400 the manufacturer is Finder.

        https://www.findernet.com/en/worldwide/series/15-series-dimmers/type/type-1511-slave-dimmers/

        There you can find a datasheet. On page 15 there is a wiring diagramm.

        In my opinion, it is a default dimmer, with a 0-10V poti to control the dimmer, it work’s fine.
        I suspect that the dimmer can only handle real 0-10v, and not a PWM signal.

        What else can I test?

        Or is there a bug in my program?

        Should I make the PWM frequency smaller, and maybe a capacitor in parallel to the dimmer input to smooth the signal?

        Alex

        • Alex_S

          Member
          November 8, 2021 at 6:45 pm

          Okay, I wrote to the support of Finder, if there is a trick or a tip, e.g. use a pullup or pulldown resistor.

          Let’s wait and see if they answer me.

          • Alex_S

            Member
            November 12, 2021 at 11:39 am

            Ich habe die Antwort vom Hersteller “Finder” erhalten. Siehe unten.

            Es geht mit diesem Typ Dimmer nicht.
            Scheint also weder ein Programmfehler zu sein, noch ein Defekt des Controllino.

            —-

            I have received the answer from the manufacturer.

            It does not work with this type dimmer.
            So it seems to be neither a program error, nor a defect of the Controllino.

            —-

            Hallo,

            das 15.11 lässt sich nicht über eine PWM Spannung ansteuern. Dies wird nicht funktionieren!

            Wenn Sie nur eine PWM Spannung zur Verfügung haben, könnten Sie einen extra PWM zu 0…10V Wandler dazwischen schalten.

            Wir hoffen Ihnen hiermit weiter geholfen zu haben.

            Für weitere Fragen stehen wir Ihnen gerne zur Verfügung.

            Mit freundlichen Grüßen aus Trebur-Astheim

            • Lukas

              Member
              January 4, 2022 at 4:11 pm

              Dear Alex,

              thanks for letting us know.

              Best regards,

              Lukas

Viewing 1 - 3 of 3 replies

Log in to reply.

Original Post
0 of 0 posts June 2018
Now