Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Connecting relay with arduino

    Scheduled Pinned Locked Moved Unsolved
    Duet Hardware and wiring
    3
    8
    314
    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.
    • denizbazzzundefined
      denizbazzz
      last edited by

      Hi everyone, first of all this is a great community and thanks a lot for sharing so much knowledge. For 2 years i'm using a duet 2 wifi. First i build a corexy printer from scratch. After a year i changed it to cartesian. For powering my system i'm using mixed voltage. For duet, motors, heated bed and extruder heater i use 24v and for my fans and leds i use 12v power supply. They are using common ground connection. Other than that i use an arduino (which is connected to 12v supply) to control other stuffs separately. So i put a button and a relay in my case to power on/off my system. I used the relay to cut 24v (+) wire. Then the poblem starts. When i push the button the relay activates but my paneldue starts to flicker and all 12v fans starts to work. The duet doesn't close. Does anyone has an opinion what causes this or how can i fix?
      PS. I dont want to disconnect the main power with relay because i want my arduiono powered.

      Thanks. And sorry if i make any grammer mistake(s). English is not my native language.

      1 Reply Last reply Reply Quote 0
      • denizbazzzundefined
        denizbazzz
        last edited by

        Any suggestion?

        JoergS5undefined 1 Reply Last reply Reply Quote 0
        • JoergS5undefined
          JoergS5 @denizbazzz
          last edited by JoergS5

          @denizbazzz It's difficult to understand how you exactly wired the things. Can you make a wiring diagram or a good image where one sees the wiring? And I did not understand when you push the button: is it to turn on the Duet or to turn it off?
          ("The duet doesn't close" - did Duet run at this moment?)

          1 Reply Last reply Reply Quote 0
          • denizbazzzundefined
            denizbazzz
            last edited by

            duet schem.jpg

            JoergS5undefined 1 Reply Last reply Reply Quote 0
            • denizbazzzundefined
              denizbazzz
              last edited by

              Ok i tried to draw on photoshop 🙂 The problem starts when i hit the button which cuts the relay that connects Duet 2 wifi 24Vin. When i push the button the leds on duet 2 wifi flickers and the wifi restarts, all the extruder fans start to run. I can't understand how is it possible if i cut the 24v (+) cable that powers duet2wifi and can run all the 12v parts and some leds on duet 2 wifi

              FelixHundefined JoergS5undefined 2 Replies Last reply Reply Quote 0
              • JoergS5undefined
                JoergS5 @denizbazzz
                last edited by JoergS5

                @denizbazzz is the relais of type SRD-05VDC? (printed on the blue relais boxes last line)

                as FelixH say please check the wiring to the 3 connections every relais has.

                1 Reply Last reply Reply Quote 0
                • FelixHundefined
                  FelixH @denizbazzz
                  last edited by FelixH

                  @denizbazzz said in Connecting relay with arduino:

                  Ok i tried to draw on photoshop 🙂 The problem starts when i hit the button which cuts the relay that connects Duet 2 wifi 24Vin. When i push the button the leds on duet 2 wifi flickers and the wifi restarts, all the extruder fans start to run. I can't understand how is it possible if i cut the 24v (+) cable that powers duet2wifi and can run all the 12v parts and some leds on duet 2 wifi

                  Are you sure you have done the connections right? Relays have NO and NC terminals, maybe you swapped them?

                  Other than that... this is one of the most overcomplicated setups I've seen. Why would you use a separate PSU to power the fans? they should be firmware/Gcode controlled. It'd be much easier to replace the fans on your printer... 🤷

                  EDIT: now that I think of it, how have you programmed your arduino? Are all the PIN declarations done correctly?

                  1 Reply Last reply Reply Quote 0
                  • JoergS5undefined
                    JoergS5 @denizbazzz
                    last edited by

                    @denizbazzz maybe the problem is in the Arduino code. If you show it here, we can discuss whether it is ok. Please give information at which pins the buttons and relais are connected.

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Unless otherwise noted, all forum content is licensed under CC-BY-SA