Author Topic: Lowest cost way to get VBAT to an SMT32 from auto/boat 12V?  (Read 3818 times)

0 Members and 1 Guest are viewing this topic.

Offline jnzTopic starter

  • Frequent Contributor
  • **
  • Posts: 593
Lowest cost way to get VBAT to an SMT32 from auto/boat 12V?
« on: March 30, 2022, 10:45:09 pm »
I don't need it. But I kinda want it. The ability to completely unpower the STM32H7 and keep it's 4KB of backup ram powered.

The VBAT pin can be supplied from 1.2V-3.6V. The a vehicle 12V is really 14.6V nominal, 8V min before I can cut out, 18V normal max, automotive spikes questionable. Looks like the total drain on this circuit should be no more than 10uA.

I have very little space, can add little cost, and can waste very little power while sleeping/off.


What clever tricks could I get away with? Zener or other diode? I figure very large voltage divider it's great because of the large range.

« Last Edit: March 30, 2022, 11:26:40 pm by jnz »
 

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6929
  • Country: es
Re: Lowest cost way to get VBAT to an SMT32 from auto/boat 12V?
« Reply #1 on: March 31, 2022, 12:53:40 am »
Resistor + low power zener + 100nF cap should do the job.
Take the lowest nominal current zener you can get, ex. SZBZX84C3V3LT3G seems pretty stable at 100uA, so the resistor should be adjusted to ensure 100uA at lowest voltage (8-3.3V), ex. 39K:
8V = 120uA
12V = 223uA
14.4V = 284uA
Don't care about 14.4V, that's floating charge voltage, nominal is 12-12.5V, and a small 55Ah battery will take 28 years to discharge at 223uA
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 
The following users thanked this post: jnz

Offline lucazader

  • Regular Contributor
  • *
  • Posts: 221
  • Country: au
Re: Lowest cost way to get VBAT to an SMT32 from auto/boat 12V?
« Reply #2 on: March 31, 2022, 01:28:37 am »
A Still very low cost, but probably more relaible way would be to get a super cheap LDO.

Something Like this would work a treat:
https://www.digikey.com/en/products/detail/diodes-incorporated/AP7381-28Y-13/8537767
2.5uA Quiescent current.

There are cheaper ones down in the 4-6cent range if you dont care about where the chip comes from or whot he manufacturer is etc.
 
The following users thanked this post: jnz

Offline jnzTopic starter

  • Frequent Contributor
  • **
  • Posts: 593
Re: Lowest cost way to get VBAT to an SMT32 from auto/boat 12V?
« Reply #3 on: March 31, 2022, 05:07:44 pm »
If the best option is an LDO, then OK, but that won't mean JUST an LDO. It'll mean LDO and at least a cap.

I'm looking at 0402 sized parts here, so trying to decide between space and placement costs.

100uA is about the most I want to "spend" on this. The power off draw of a new vehicle is approx 10mA/h so adding 1% to that is fine with me.
 

Offline eugene

  • Frequent Contributor
  • **
  • Posts: 602
  • Country: us
Re: Lowest cost way to get VBAT to an SMT32 from auto/boat 12V?
« Reply #4 on: March 31, 2022, 05:59:40 pm »
Not being a smart ass, but how about using a dedicated battery? A large coin cell costs about the same as a voltage regulator, is simpler to implement, and would probably keep the memory powered for years before it needs to be replaced.
90% of quoted statistics are fictional
 

Offline jnzTopic starter

  • Frequent Contributor
  • **
  • Posts: 593
Re: Lowest cost way to get VBAT to an SMT32 from auto/boat 12V?
« Reply #5 on: March 31, 2022, 06:03:50 pm »
I don't have the footprint for a battery. STM32H7, total board size 20x40mm, and a lot of other stuff going on. Besides.... I have a battery! It's just 12V.
 

Offline Sal Ammoniac

  • Super Contributor
  • ***
  • Posts: 1811
  • Country: us
Re: Lowest cost way to get VBAT to an SMT32 from auto/boat 12V?
« Reply #6 on: March 31, 2022, 06:07:39 pm »
Not being a smart ass, but how about using a dedicated battery? A large coin cell costs about the same as a voltage regulator, is simpler to implement, and would probably keep the memory powered for years before it needs to be replaced.

+1
A separate battery is a better way to ensure the memory retains its state than powering Vbat from the vehicle’s battery because what happens if someone leaves the headlights on and drains the battery?
"That's not even wrong" -- Wolfgang Pauli
 

Offline Sal Ammoniac

  • Super Contributor
  • ***
  • Posts: 1811
  • Country: us
Re: Lowest cost way to get VBAT to an SMT32 from auto/boat 12V?
« Reply #7 on: March 31, 2022, 06:09:30 pm »
I don't have the footprint for a battery. STM32H7, total board size 20x40mm, and a lot of other stuff going on. Besides.... I have a battery! It's just 12V.

Do you have room for a small two-pin connector? If so, you can mount the battery off-board and run two wires to the connector on the board.
"That's not even wrong" -- Wolfgang Pauli
 

Offline lucazader

  • Regular Contributor
  • *
  • Posts: 221
  • Country: au
Re: Lowest cost way to get VBAT to an SMT32 from auto/boat 12V?
« Reply #8 on: March 31, 2022, 07:22:37 pm »
Super small and cheap LDOs are available.
We ahve used this one before, comes in a 1x1 package.
https://www.digikey.com/en/products/detail/on-semiconductor/NCP115AMX330TCG/9829207

Its pretty cheap if you have high volumes. the biggest downside for this particular part is the Quiescent curent is 95uA, much higher than the previously linked LDO.
I am sure there are lots of other tiny LDOs out there for cheap with very small packages.
 


Offline thm_w

  • Super Contributor
  • ***
  • Posts: 9881
  • Country: ca
  • Non-expert
Re: Lowest cost way to get VBAT to an SMT32 from auto/boat 12V?
« Reply #10 on: March 31, 2022, 09:22:36 pm »
Not being a smart ass, but how about using a dedicated battery? A large coin cell costs about the same as a voltage regulator, is simpler to implement, and would probably keep the memory powered for years before it needs to be replaced.

Generally a battery costs more than a cheap LDO or zener (<5c), and you want to avoid shipping products with batteries in them, if possible.
Profile -> Modify profile -> Look and Layout ->  Don't show users' signatures
 

Offline jnzTopic starter

  • Frequent Contributor
  • **
  • Posts: 593
Re: Lowest cost way to get VBAT to an SMT32 from auto/boat 12V?
« Reply #11 on: April 01, 2022, 12:18:49 am »
It doesn't matter at all if the battery goes dead. Just saves some boot up time and I don't need to interrogate for our other components again. The user won't notice a difference, but if I can keep some of the RAM alive, with little effort while shutting the entire board down completely, I'm happy to do it.

My only issue with the LDOs is you need to add $0.30 or so to the LDO cost. Two extra caps and placement of three parts. Although it doesn't look like I can get away from that.
 

Offline SiliconWizard

  • Super Contributor
  • ***
  • Posts: 17828
  • Country: fr
Re: Lowest cost way to get VBAT to an SMT32 from auto/boat 12V?
« Reply #12 on: April 01, 2022, 01:33:53 am »
My only issue with the LDOs is you need to add $0.30 or so to the LDO cost. Two extra caps and placement of three parts. Although it doesn't look like I can get away from that.

I'm curious what kind of design you are dealing with. Something with a STM32H7 (so somewhat powerful, not a cheapass gadget), for automotive environments, but for which a couple tens of cents would matter?

Regarding cost and PCB area, I'm all the more curious as a 12V input from a vehicle will require some significant protection if you don't want to fry your circuit at some point, and this protection will take more room and probably cost than a small LDO with two 0402 caps. But there's probably some info we're missing there.
 

Offline NiHaoMike

  • Super Contributor
  • ***
  • Posts: 9793
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Re: Lowest cost way to get VBAT to an SMT32 from auto/boat 12V?
« Reply #13 on: April 01, 2022, 02:20:03 am »
For such a small current, a resistor and zener would be the way to go. Immunity to voltage spikes is only limited by the voltage rating of the resistor.
Cryptocurrency has taught me to love math and at the same time be baffled by it.
Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
BTC: 18813fu8LQEdDwH9YLM1ABed3XwCfeSeFi
 
The following users thanked this post: jnz

Offline jnzTopic starter

  • Frequent Contributor
  • **
  • Posts: 593
Re: Lowest cost way to get VBAT to an SMT32 from auto/boat 12V?
« Reply #14 on: April 02, 2022, 10:53:28 pm »
I should know this, but it seems that zeners that are really stable at low currents are sold as voltage references the Ti LM4040 seems to use an external resistor but depending on the voltage seems like it’s only two parts placement and then I don’t need to find a super specific zener.

Supply chain has changed the way I build things :(
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

- - -
-->