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

PWM to 10V via e0heater always gives 10V

Scheduled Pinned Locked Moved
CNC
9
29
1.9k
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.
  • undefined
    larsw @alankilian
    last edited by 27 Jul 2021, 16:22

    @alankilian said in PWM to 10V via e0heater always gives 10V:

    @larsw said in PWM to 10V via e0heater always gives 10V:
    It should be connected with a pullup to 5 Volts.

    This is the PWM control input to the converter and it's designed to be driven from a microcontroller, so it's input range is 0 to 5 Volts according to what I can get out of the data sheet you linked to in your first post.

    Actually no - the converter has two PWM input modes - 4,5V to 10V or 12V to 24V. Selectable by a jumper (The documentation calls this a jump needle - had me quite confused). I have jumped it for 12-24V.

    Does anyone know what "Fengfeng value" might mean" I'm not hitting anything on the google machine.

    Nice to know I was not the only one.. Fengfeng value means peak value. That also took me quite a while to get translated.

    undefined 1 Reply Last reply 27 Jul 2021, 16:24 Reply Quote 0
    • undefined
      alankilian @larsw
      last edited by 27 Jul 2021, 16:24

      @larsw said in PWM to 10V via e0heater always gives 10V:

      Actually no - the converter has two PWM input modes - 4,5V to 10V or 12V to 24V. Selectable by a jumper (The documentation calls this a jump needle - had me quite confused). I have jumped it for 12-24V.

      OK, that's cool. I was getting confused by the data sheet and couldn't quite get that information from it.

      Then you can just pull up to the heater supply voltage.

      SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

      undefined 1 Reply Last reply 27 Jul 2021, 17:09 Reply Quote 0
      • undefined
        larsw @alankilian
        last edited by 27 Jul 2021, 17:09

        @alankilian Perfect. Still same resistor range?

        undefined 1 Reply Last reply 27 Jul 2021, 17:58 Reply Quote 0
        • undefined
          alankilian @larsw
          last edited by 27 Jul 2021, 17:58

          @larsw Yes, the pullup resistor value is not critical at all.

          i generally use 4.7 KOhms for a quickly changing signal (like this) and a 47 KOhm for slowly changing signals like switches.

          SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

          1 Reply Last reply Reply Quote 0
          • undefined
            cjm @larsw
            last edited by 27 Jul 2021, 20:02

            @larsw Understood - and the reason this is not working is because the "Negative of the PWM input signal" is connected to Ground as you measured and confirmed in your answer to @fcwilt. This is unlike other similar boards where both positive and negative PWM inputs are fully isolated from ground, in which case this connection works fine.

            However, with your board, @alankilian's approach is a good one.

            undefined 2 Replies Last reply 28 Jul 2021, 09:49 Reply Quote 1
            • undefined
              larsw @cjm
              last edited by 28 Jul 2021, 09:49

              @cjm Fantastic - I'll try this in the weekend when I get my hands on the machine again.

              undefined 1 Reply Last reply 30 Jul 2021, 07:28 Reply Quote 0
              • undefined
                cjm @larsw
                last edited by cjm 30 Jul 2021, 07:28

                @larsw A point to note is that if the photos of your converter board on the web are correct, it uses an opto-isolator with a choice of two series resistor values (selected by the jumpers) to match either 5V or 12V-24V.

                The pull-up resistor used in @alankilian’s approach is in series with the opto-isolator’s input resistor and so has to have a low enough value to pass sufficient current to turn on the opto-isolator.

                The 2K or 4K values mentioned by @alankilian connected to the heater supply voltage should be fine.

                However, some opto-isolators have low efficiency so, if you find you’re not getting reliable results, you might want to try setting the board’s jumper to 5V mode.

                undefined 1 Reply Last reply 30 Jul 2021, 08:02 Reply Quote 1
                • undefined
                  dc42 administrators @cjm
                  last edited by 30 Jul 2021, 08:02

                  @cjm I agree, from the photo it appears that it has an opto isolator for the input. So why is there continuity between the PWM input ground and the output ground?

                  Duet WiFi hardware designer and firmware engineer
                  Please do not ask me for Duet support via PM or email, use the forum
                  http://www.escher3d.com, https://miscsolutions.wordpress.com

                  undefined 1 Reply Last reply 30 Jul 2021, 13:26 Reply Quote 0
                  • undefined
                    alankilian @dc42
                    last edited by 30 Jul 2021, 13:26

                    @dc42 I think I found a picture of the back of the board, and indeed, both the input and output GND connections are to the same net!

                    Ref: Link.
                    (And in this photo, PWM might also be shorted to ground Ha ha)
                    Untitled.png

                    SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

                    undefined 1 Reply Last reply 2 Aug 2021, 12:27 Reply Quote 0
                    • undefined
                      EducatingSavvas @larsw
                      last edited by 31 Jul 2021, 19:52

                      @larsw I tried to use a similar type for an older CNC controller of mine and didn't have any luck. I eventually found and used this type which worked:

                      PWM to Analogue Converter.jpg
                      Available from the usual places.

                      undefined 1 Reply Last reply 29 Aug 2021, 21:27 Reply Quote 0
                      • undefined
                        zapta
                        last edited by 31 Jul 2021, 21:32

                        As a side note, this board reminds me of a similar project by egon.net https://forum.duet3d.com/topic/21680/designing-a-pwm-to-analog-mini-board-for-fans

                        1 Reply Last reply Reply Quote 0
                        • undefined
                          larsw @cjm
                          last edited by 2 Aug 2021, 12:07

                          @cjm I tried the pull resistor (4.7k) and it worked perfectly.

                          Only issue now is, that the 0-10V output max'es out at 8.6V, but I read somewhare that the converter - even though the specs says VIN 12V to 24V needs least 14,6V to reach 10V in output signal, and my powersupply is 12,8V.

                          8,6V is close enough - my spindle reaches to max speed at 9V.

                          undefined undefined 2 Replies Last reply 2 Aug 2021, 13:24 Reply Quote 0
                          • undefined
                            dc42 administrators @alankilian
                            last edited by 2 Aug 2021, 12:27

                            @alankilian they've made a mistake with that design IMO, by sharing the ground plane with both ground pins even though the input is optically isolated.

                            I would be tempted to cut the 4 fingers that join each of the pins I have marked to the ground plane, and connect them together with a wire instead.

                            c1181d16-601c-41c9-9a7d-ce7ab260405c-image.png

                            Duet WiFi hardware designer and firmware engineer
                            Please do not ask me for Duet support via PM or email, use the forum
                            http://www.escher3d.com, https://miscsolutions.wordpress.com

                            1 Reply Last reply Reply Quote 0
                            • undefined
                              alankilian @larsw
                              last edited by 2 Aug 2021, 13:24

                              @larsw said in PWM to 10V via e0heater always gives 10V:

                              @cjm I tried the pull resistor (4.7k) and it worked perfectly.

                              Only issue now is, that the 0-10V output max'es out at 8.6V, but I read somewhare that the converter - even though the specs says VIN 12V to 24V needs least 14,6V to reach 10V in output signal, and my powersupply is 12,8V.

                              8,6V is close enough - my spindle reaches to max speed at 9V.

                              That's GREAT news!

                              Thanks for keeping up with our ideas and letting us know you got it working.

                              If you want to get to 9 Volts, you can try adjusting the potentiometer on the board.

                              SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

                              undefined 1 Reply Last reply 3 Aug 2021, 10:46 Reply Quote 0
                              • undefined
                                cjm @larsw
                                last edited by 2 Aug 2021, 22:10

                                @larsw Good news! Glad to hear it’s all working now…

                                1 Reply Last reply Reply Quote 0
                                • undefined
                                  larsw @alankilian
                                  last edited by 3 Aug 2021, 10:46

                                  @alankilian said in PWM to 10V via e0heater always gives 10V:

                                  Thanks for keeping up with our ideas and letting us know you got it working.

                                  I hope somebody else can use these findings. The converter seems to be pretty common.

                                  If you want to get to 9 Volts, you can try adjusting the potentiometer on the board.

                                  This is with the potentioneter at max, but as I said - good enough.

                                  1 Reply Last reply Reply Quote 0
                                  • undefined
                                    baird1fa @EducatingSavvas
                                    last edited by 29 Aug 2021, 21:27

                                    @educatingsavvas
                                    I just wired up one of these and it works too.

                                    One thing to note is that using less than 3000hz seems to result in the generation of a 0-10v signal that the VFD sees as oscillating and then it changes frequencies a lot. It ramps up and down 10’s of hertz.

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