element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Personal Blogs
  • Community Hub
  • More
Personal Blogs
John Wiltrout's Blog Incorporating a PWM Control Module into a New Test Device
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: jw0752
  • Date Created: 26 Jun 2019 2:34 AM Date Created
  • Views 2661 views
  • Likes 12 likes
  • Comments 23 comments
  • test_equipment
  • pwm
  • power_supply
Related
Recommended

Incorporating a PWM Control Module into a New Test Device

jw0752
jw0752
26 Jun 2019

Several weeks ago I purchased a couple of Modules that were advertised as able to provide 1 Hz to 150 kHz signal with a 0% to 100% duty cycle control.

 

image

 

The modules were able to be powered with 3 volts to 30 volts and would output a signal of this same magnitude. The output was rated at 5mA to 30mA depending on the supply voltage. The accuracy of the device at 2% for the Frequency and 1% for the Duty Cycle is acceptable for the type of experiments that I do in my lab.

 

I played with the modules for a while and then I didn’t think too much more of them until a couple days ago when I needed to run some experiments on a few servo motors. I found the module easy to work with and helpful in my experiment so I decided to see if I could design it into a new piece of lab equipment for the shop.

 

After some thought I decided to build a variable DC power supply very similar to the ones I have put together before. The power supply would provide the foundation for the new piece of equipment and the PWM module would provide new PWM features for special applications and the convenience of having the module hard mounted and powered.

 

I wanted to have the following outputs on the device:

 

  • DC 0 to 27 volts from the power supply

 

  • 5 volt signal output from the PWM module

 

  • A MOSFET controlled output that would link to the signal from the PWM module and allow a Load attached to the DC output of the power supply to be pulled to ground for a low impedance inverted output.

 

  • An earth ground / chassis ground terminal which is useful in some applications.

 

A block diagram of the proposed build was drawn out.

 

image

 

A schematic was also roughed out but rather than post the preliminary schematic, here is the finished schematic. I have put the power supply board, the volt amp meter, and the PWM module in as black boxes.

 

image

 

Fortunately I already had a suitable enclosure for the unit with a front panel that had been cut for a dual bench power supply. The meter hole in the front panel for the right side would need to be enlarged for the PWM module but otherwise only minor modifications would be needed to the front panel. Here is what the inside of the chassis looked like at the beginning of the build.

 

image

 

And here is the preliminary front panel from the back side:

 

image

 

When the unit was ready for testing I could not get the power supply to work properly. It seems I had switched the plugs for the voltage control and the current control. It was also noted that higher power output using the MOSFET caused the V/A meter’s screen to flash and not display the voltage of the DC output. A couple of 1000uF capacitors solved this problem. One was placed across the DC output and the other was put on the power supply to the meter module. When I wire a build I always plan for routing and cabling of the wire after the unit is tested and debugged.

 

image

 

Here are pictures of the finished unit:

 

 

image

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

image

 

image

 

image

 

Since my scope probe is between ground and the drain of the MOSFET the duty cycle is inverted. You can see the unit is showing 12.3 Volts at 50 Hz and 16.6% Duty cycle while the scope is telling us that we have 12.8 volts at 49.9 Hz and a calculated duty cycle of 16.9%. These numbers are in good agreement for the level of precision that I need. Sorry about the reflections on the oscilloscope screen. I am still too lazy to get a screen print and transfer it. Fortunately I usually work with my shirt on.

 

The simplicity of the overall project, the modules, and the fact that the case was all prepped made this build go very quickly with a start to finish time of two days.

 

I will be getting in some more servo motors for testing later this week and I am looking forward to giving the unit a proper test.

 

If you go looking for the PWM Modules on line be aware that they come in two versions. One version has a push button that allows the output to be turned on and off. The other version is a dollar or so cheaper but lacks this feature.

 

Thanks for reading my blog.

 

John

  • Sign in to reply

Top Comments

  • colporteur
    colporteur over 6 years ago in reply to jw0752 +6
    Is it acceptable to click 'Like' on a post about yourself? I'm not sure if that narcissistic or not...hummm. Thank you for the kind words. My writing is both a curse and a blessing, at times I'm not sure…
  • jw0752
    jw0752 over 6 years ago +6
    Since I have been having quite a bit of fun with this PWM Generator I decided to make a simpler version with just a 5 volt power supply and the module as well as output binding posts. This will give me…
  • colporteur
    colporteur over 6 years ago +5
    I loved the narrative! You start with an idea, it morphs into something else, that fulfills the learning goal and adds additional value. I have a few of those myself and guess what, they make great stories…
  • jc2048
    jc2048 over 6 years ago

    Another interesting piece of test equipment.

     

    Have you considered putting an H-bridge on the output? That would give you complementary push-pull outputs and extend the range of things you could do with it.

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jw0752
    jw0752 over 6 years ago in reply to shabaz

    Hi Shabaz,

     

    Yes the 10 hobby servo motors have arrived and I have been able to use the new unit to test them for where their end lockup points are.

     

    image

     

    Another application that I have for this device is to test the handpiece cords of Dental Cavitron Units. If you may recall from previous posts a Dental Cavitron is a device that has a point that vibrates at either 25kHz or 30kHz and is used by the dental hygienist to clean scale from ones teeth.

     

    image

     

    When I have one of these devices on the repair bench it is useful to know if the cord and handpiece is working and at what frequency. The combination of wire coil and special insert have a resonant frequency that works best. Most of the modern cavitron units have the ability to auto tune to some extent. By using the new PWM Power Supply I can power up one of these handpiece cords with an insert and check the tuning to see where the resonant frequency is. Here is a short video of how this works.

     

    You don't have permission to edit metadata of this video.
    Edit media
    x
    image
    Upload Preview
    image

     

    Once I have the power to the tip high enough (about 7 Watts) and I am close to the resonant frequency I touch the tip to the glass and listen to the intensity of the sound. As I use the PWM Power Supply to move the frequency back and forth I can locate the point where the sound is loudest and this is the approximate resonant frequency. Here is a photo of the output of the PWM Power Supply as displayed on the oscilloscope.

     

    image

     

    Thanks for checking out the blog.

     

    John

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • shabaz
    shabaz over 6 years ago

    Hi John,

     

    Very interesting device! I can imagine it being very handy for working out hobby-servo-motor settings, with the PWM capability.

    Excellent build as always.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jw0752
    jw0752 over 6 years ago in reply to DAB

    Hi DAB

     

    Thanks

     

    John

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 6 years ago

    Very good build John.

     

    Well done.

     

    DAB

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
<>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube