Author Topic: Trying to design an abnormal power up circuit  (Read 857 times)

0 Members and 1 Guest are viewing this topic.

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 12975
Re: Trying to design an abnormal power up circuit
« Reply #25 on: Yesterday at 03:20:56 pm »
Not quite.  Reverse D3, then its good.
 

Offline EasyGoing1Topic starter

  • Regular Contributor
  • *
  • Posts: 68
  • Country: us
Re: Trying to design an abnormal power up circuit
« Reply #26 on: Yesterday at 05:33:35 pm »
Yes, desert temperatures and small signal Schottky diodes aren't a good mix.  Try if it works OK with 1N4148 for D1 and for the diode clamp from ground to the C1-R1 junction.

All I had on hand were 1N4001 but the circuit works. However, with the 470nf cap in there, I could not get a voltage on the divider so I removed it, then ran the diode to ground before the 200k resistor. That was the only change I made, but it does work and it works well.

This is what worked:

« Last Edit: Yesterday at 05:40:14 pm by EasyGoing1 »
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 12975
Re: Trying to design an abnormal power up circuit
« Reply #27 on: Yesterday at 05:41:12 pm »
The 470nF cap was to prevent 12IN keping EN active when the MCU tries to shut it off.  It only lets through a short pulse to start up the buck module so you shouldn't expect to measure a DC voltage on the divider.   The code in the MCU must takeover keeping EN active as soon as it starts.  However 470nF was a best guess for how long it needs to get going.  If the startup pulse is too short, increase C1 till the MCU starts successfully, then increase it another 50% to have a safety margin.
 

Offline EasyGoing1Topic starter

  • Regular Contributor
  • *
  • Posts: 68
  • Country: us
Re: Trying to design an abnormal power up circuit
« Reply #28 on: Yesterday at 06:02:26 pm »
The 470nF cap was to prevent 12IN keping EN active when the MCU tries to shut it off.  It only lets through a short pulse to start up the buck module so you shouldn't expect to measure a DC voltage on the divider.   The code in the MCU must takeover keeping EN active as soon as it starts.  However 470nF was a best guess for how long it needs to get going.  If the startup pulse is too short, increase C1 till the MCU starts successfully, then increase it another 50% to have a safety margin.
OK, I bumped it to 680nF and it worked so the next size up that I had was a 1µF. I'd have to put the scope on it to measure the time that it stays on but its probably around 10ms or less based on what the meter shows me. I had to add a resistor to drain the cap... this is the final circuit:

 

Offline EasyGoing1Topic starter

  • Regular Contributor
  • *
  • Posts: 68
  • Country: us
Re: Trying to design an abnormal power up circuit
« Reply #29 on: Yesterday at 06:17:40 pm »
increase C1 till the MCU starts successfully, then increase it another 50% to have a safety margin.

It's a nice circuit. It's simple yet effective and the short burst on is a nice touch. I can't foresee it ever causing a problem for the Pico since the voltage applied to EN is actually under 3 volts (like 2.6-ish). So much nicer than using the SS Relay.

OK, now I have questions:

1) Am I correct in assuming that once the cap charges, the full 12 volts will be applied to that 50k resistor feeding the base of the transistor?
2) The 1N4001 seems to be working (though I'm not sure what to expect if they weren't working). Do you foresee a problem sticking with this diode?
3) How did you find the datasheet for the buck converter based on only having the data from the Amazon page?
4) How did you know that the resistor on pins 2 and 6 was the one causing EN to default high?

Edit: I just confirmed that when in the off state, it only draws .3µA from the 12 Volt source feeding the buck. Life is good  ;D
« Last Edit: Yesterday at 07:33:34 pm by EasyGoing1 »
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 12975
Re: Trying to design an abnormal power up circuit
« Reply #30 on: Yesterday at 08:40:28 pm »

  • The 50K resistor always gets the full 12IN voltage - the cap doesn't affect it.
  • 1N4007 is slow and has a lot of junction area (its rated 1A continuous) so may let too big a reverse recovery spike through to the MCU.  Replace with 1N4148 or 1N914 or other fairly fast small signal silicon PN diode.
  • Generally you google: SMD code "<code>" <package>
    where <code> is the code on the chip and <package> is what package its in e.g SOIC-8 or SOT-23-6 (not your chip) and if you are lucky you'll find a site that lists what the chip may be in the search results. If no result and the code is >3 characters, drop one character from the end of the code and try again.
    When you've got a candidate chip, google its datasheet see if the function and pinout make sense and and look at the datasheet's package markings section to check for a match.
  • The datasheet has a sample circuit + explanation of its operation - see the section I quoted in Reply #9, then the pinout tells me which pins the EN pullup must connect to.
 

Offline EasyGoing1Topic starter

  • Regular Contributor
  • *
  • Posts: 68
  • Country: us
Re: Trying to design an abnormal power up circuit
« Reply #31 on: Today at 12:12:59 am »

  • The 50K resistor always gets the full 12IN voltage - the cap doesn't affect it.
  • 1N4007 is slow and has a lot of junction area (its rated 1A continuous) so may let too big a reverse recovery spike through to the MCU.  Replace with 1N4148 or 1N914 or other fairly fast small signal silicon PN diode.
  • Generally you google: SMD code "<code>" <package>
    where <code> is the code on the chip and <package> is what package its in e.g SOIC-8 or SOT-23-6 (not your chip) and if you are lucky you'll find a site that lists what the chip may be in the search results. If no result and the code is >3 characters, drop one character from the end of the code and try again.
    When you've got a candidate chip, google its datasheet see if the function and pinout make sense and and look at the datasheet's package markings section to check for a match.
  • The datasheet has a sample circuit + explanation of its operation - see the section I quoted in Reply #9, then the pinout tells me which pins the EN pullup must connect to.

Thank you again for the time you took to help me figure this out. Your logical approach to the problem was clearly necessary. I'm really happy with how well it works. It's exactly what I wanted.

Mike
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf