1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

Need help with Digispark Halting Problem

Discussion in 'Arduino' started by biboymusic, Feb 1, 2018.

  1. biboymusic

    biboymusic Member

    Joined:
    May 23, 2010
    Messages:
    89
    Likes:
    2
    Location:
    General Santos City
    I've been building Vaping Mods using 555 timer (PWM) driving a mosfet. It works like charm, very powerful and very decent battery life.

    PWM-555.jpg

    The schematic above is so good it can handle upto 200watts of power. All good.

    However, I wanted to move up my project a bit, using a Digispark. Knowing it got hardware PWM, very small size and very low power consumption, it really fits the bill. Since most box mods run on dual 18650, I power the digispark through the Vin (accepts upto 12V). I've added wonderful functions like, prolonged firing protection, 3 clicks to lock etc. Tested it, all good but later realized at very high load like a 0.20Ohms coil, the Digispark halts and stops working. It won't fire, you need to remove the battery and power it up again. The 555 schematic above didn't have this issue.

    Can someone help me on this? I'm suspecting that the linear regulator of the Digispark can't handle the Voltage dive when firing hi loads, which is non-existing using the 555 PWM version.

    Thank you so much.

    P.S. My friend ericgibbs maybe you could shed me some light on this. Thanks.
     
  2. biboymusic

    biboymusic Member

    Joined:
    May 23, 2010
    Messages:
    89
    Likes:
    2
    Location:
    General Santos City
    anyone?
     
  3. jpanhalt

    jpanhalt Well-Known Member Most Helpful Member

    Joined:
    Jun 21, 2006
    Messages:
    6,280
    Likes:
    555
    Location:
    Cleveland, OH, USA
    The two views of the "schematic" you post are different. Please post a schematic for the version you actually built.
     
  4. dave miyares

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    2
    Likes:
    -10


     
  5. Ian Rogers

    Ian Rogers User Extraordinaire Forum Supporter Most Helpful Member

    Joined:
    Mar 28, 2011
    Messages:
    9,802
    Likes:
    958
    Location:
    Rochdale UK
    If the Mosfet hasn't a flywheel diode ( or even if it has ) I would recommend you fit one.. The coil will be dumping energy back through the circuit...

    Also did you code the digispark?? I used similar techniques with a Pic... I had to make all variables non volatile and use the watchdog as the wobble from the power supply was causing my program to freeze as well...
     
  6. biboymusic

    biboymusic Member

    Joined:
    May 23, 2010
    Messages:
    89
    Likes:
    2
    Location:
    General Santos City
    PWM-digispark.jpg

    I'm away from home so I made a really rough sketch on the circuit that I actually built. The circuit works, and functions the way I wanted it to be and only fails on higher loads (lower resistance coils around 0.36 and below). The digispark freezes and resets. The schematic on the OP is the 555 version that doesn't have issue with any load you throw at it.


    Yes, I did code the digispark. Even if the variables were non-volatile, the digispark stops sending PWM to the Mosfet then resets. Did try the flywheel diode technique but still has the same issue. 555 Timer has higher minimum voltage requirement than the digispark but it didn't have this issue.

    The only thing I tried that worked is to supply the digispark with a separate battery source and joined the grounds of the both power source. But that would be very impractical.

    Thank you!
     
    Last edited: Feb 3, 2018

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice