element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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
Arduino
  • Products
  • More
Arduino
Arduino Forum Weird issue with STM's LED2001 and PWM
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 4 replies
  • Subscribers 391 subscribers
  • Views 759 views
  • Users 0 members are here
  • led2001
  • frontpage
  • laser cutter
  • laser engraver
Related

Weird issue with STM's LED2001 and PWM

iceman1979
iceman1979 over 8 years ago

Hi All,

 

 

I am working on a laser diode driver design using the LED2001 ic from STM for use with these little laser engraver kits we are seeing coming from places like Banggood.com and Gearbest.com. The reason for the design was to get better linear control of the laser diode, particularly for use with engraving images. So far the testing has gone fairly well with the exception of the first time the driver has power applied to it and the PWM signal is sent to it.

 

For those interested in seeing the design, the Kicad source can be found here https://dl.dropboxusercontent.com/u/5570668/Laser%20Drivers/PWM_CC_LaserDriver.zip

 

The laser engraver machines come with a controller board that uses an Arduino Nano to driver the laser, stepper motors, and communicate with the PC. The Nano outputs a PWM signal of about 1khz which drives a mosfet that drives the laser module. My driver design is meant to replace the laser module's internal driver and to be driven directly from Nano's PWM pin. My design takes the 12v from the controller as power for the driver and the 5v PWM signal from the Nano to the dimming pin on the LED2001.

 

The issue I'm having is that when the laser driver gets power for the first time, it requires a pulse width of about 25% or more before the output comes on. Once it comes on through, the pulse width can go down to 1% and still control the laser. For testing i just fire at 100% for a second and then turn it off and as long as I don't remove power from the board it will give me linear control from 0-100% just fine. If I forget to pules the laser after power up and I go to engrave a picture, the picture will be messed up until the color of the pixels are dark enough to turn it on.

 

Any idea what might be going on here?

Thanks

John

  • Sign in to reply
  • Cancel
  • ajens23
    0 ajens23 over 8 years ago

    Do you still have those input capacitors for the LED2001 in the circuit?

     

    If so you may be waiting on them to charge up.

     

    What about adding an enable switch to the output to the laser diode?

     

    You could turn on the driver at full power for a second, drop it down to your start power, then engage the laser.

     

    Al

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • iceman1979
    0 iceman1979 over 8 years ago in reply to ajens23

    Yeah, they are still there. I'll test that by powering it up and leaving it for a while. This will give the fan time to spin up to full speed and charge the caps. After say, 10 minutes or so I'll try turning it on with the lowest "ON" setting (the GCODE command would be "M03 S1", max power would be M03 S255).

     

    Al Jensen wrote:

     

    Do you still have those input capacitors for the LED2001 in the circuit?

     

    If so you may be waiting on them to charge up.

     

    What about adding an enable switch to the output to the laser diode?

     

    You could turn on the driver at full power for a second, drop it down to your start power, then engage the laser.

     

    Al

    I'm afraid I'll probably have to do something like that. I had not thought about doing that but it is a good idea. I don't want to add an MCU to this so I'll have to think about how to implement some circuitry to hold the dim pin high while disabling the output until the caps are charged or a set time has passed. I think this design just got a bit more complicated lol.

     

    BTW, I know this chip was designed for LEDs but its output looks really clean and there is zero overshoot with this. Other then this little issue, it has been a really great driver for my 2w laser diode and the linear control it gives is really nice. Now, to go noodle on some circuits lol.

     

    Thanks for the great suggestions.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • ajens23
    0 ajens23 over 8 years ago

    Hi John,

     

    Best of luck with your laser, I have one here I cobbled into a nice little 24"x36" router table. It's supposed to be pushing 5W but I have no way to test. It cuts cardboard pretty good, beam width is not as nice as the original 2W laser.

    Anyway I only use mine for cutting have laser enable tied to the spindle Z axis so it comes on when the Z axis moves down, off on up. Works surprisingly well for such a primitive setup.

     

    Watch your heat, I have a 2# block of aluminum holding the diode holder and I'll put a bag of ice on top if I'm going to be cutting for more than 1/2 hour or so. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • iceman1979
    0 iceman1979 over 8 years ago in reply to ajens23

    Thanks!

     

    I made the design in response to issues we were seeing with the controllability of the stock laser modules and the design was  available over on a forum that was started just to provide US based support for these machines. The guys over on that forum asked me to make and sell kits and complete laser modules so I picked up a laser power meter image The laser power meter has come in real handy for seeing the true output of these modules.

     

    The heatsink and fan kit I picked up for these has done a superb job at keeping my 2W diode nice and cool. I do have a 6W diode I plan on running with this driver as well and I know it will generate some heat and I'll be keeping a close eye on that for sure.

     

    For cutting, this hasn't been a problem since I always cut at 100% power but it sure got me on one of my test images lol. Since people are wanting this to do both I'm going to have to figure out a solution lol and if I can figure out how to implement your suggestion I think it will do the trick image

     

    thanks

    john

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • 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 © 2025 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