• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Mervis PWM connection to Meanwell driver

    Mervis
    2
    6
    2351
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      n1lp0int3r last edited by

      Hi,

      I'm struggling to program mervis to control a meanwell pwm driver.
      I have connected it to the DO_1.01 and it's not connected to the FBD.
      Reading the driver specifications it supports a frequency of 100Hz and so i've set the PWM_prescale to 4799, the PWM_cycle to 100, and the T to 10ms as you can see in the following image:

      0_1499035719768_mervis.png

      Changing the value of the percentage makes no diference on the light intensity.

      Can someone point me in the right direction?

      Thanks in advance

      T 1 Reply Last reply Reply Quote 0
      • T
        tomas_hora administrators @n1lp0int3r last edited by tomas_hora

        @n1lp0int3r You do not need to use the block, just write a proper value to the PWM variable instead. The value of PWM variable can be from zero to the value of PWM cycle, so in your case 0-100 which will equal to % of the PWM being in a HIGH state.

        1 Reply Last reply Reply Quote 0
        • N
          n1lp0int3r last edited by

          Hi @tomas_hora,

          I've tried that before and got the same result.
          Is it possible i need a pull down resistor?

          Thanks

          T 1 Reply Last reply Reply Quote 0
          • T
            tomas_hora administrators @n1lp0int3r last edited by tomas_hora

            @n1lp0int3r We are not quite sure about how it should be connected in order not to damage any of the electronics. So a couple of questions:

            • How did you do the wiring?
            • Is there a voltage between the DIM+ and DIM- clamps when everything except the 230V is disconnected?

            Also make sure the the value of DO is se to 0.

            1 Reply Last reply Reply Quote 0
            • N
              n1lp0int3r last edited by

              @tomas_nora I've connected DIM- of the driver to the DOGND of the unipi and the DIM+ of the driver to the DO1.1 of the unipi.

              Yes with the 230v on the AC input of the driver it outputs 10V (DC) on the DIM wires.

              I've followed the names that are present in this schematic of the driver:

              0_1499097752169_upload-e464812b-1911-4c2d-bd5d-0f15f9dbe32f schematics.png

              Thanks in advance.

              1 Reply Last reply Reply Quote 0
              • N
                n1lp0int3r last edited by

                Hi,

                Looks like all it was needed was a reboot. After the reboot everything started working fine.
                I'll leave the project image for future reference

                0_1499152382996_pwm_meanwell.png

                Just as a side note use 100 for the cycle. 255 (the default) with my drivers makes the light flicker when i set values between 0 and 255.

                Thanks for all the help.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post