Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Bondematt
Jan 26, 2007

Not too stupid
Some dash cams use super caps instead of batteries for their acceleration triggered recording. Keeps the RTC and acceleration sensor running, when triggered it records like 30 seconds after the hit. Not super useful, but at least tells you when it happened and you might be able to get the make/model/color.

Adbot
ADBOT LOVES YOU

PDP-1
Oct 12, 2004

It's a beautiful day in the neighborhood.

ryanrs posted:

I would also have accepted "We used a supercap to avoid scary lithium battery shipping labels".

e: 5.5mAh coin cell weighs 0.23 grams and restricts your Digi-key order to ground shipping only.
:negative:

Just use one of those 50 year lifetime, radioactive Betavolt batteries in its place and the scary lithium warning sticker goes away!

https://www.batterytechonline.com/materials/betavolt-battery-50-year-charge-cellphone-powered-for-decades

These actually seem pretty cool, there is some nickel-63 inside that sprays its radioactive decay products into a diamond crystal semiconductor where they ionize electron-hole pairs that are then swept apart by the internal field of a PN junction similar to how a solar panel works. That's what I could glean from a pop culture article anyway. Low power output but you'll never have to reset that RTC again.

kid sinister
Nov 16, 2002

ryanrs posted:

Actually seen them being used?

I think ElectroBOOM did a video on it.

AlternateNu
May 5, 2005

ドーナツダメ!

PDP-1 posted:

Just use one of those 50 year lifetime, radioactive Betavolt batteries in its place and the scary lithium warning sticker goes away!

https://www.batterytechonline.com/materials/betavolt-battery-50-year-charge-cellphone-powered-for-decades

These actually seem pretty cool, there is some nickel-63 inside that sprays its radioactive decay products into a diamond crystal semiconductor where they ionize electron-hole pairs that are then swept apart by the internal field of a PN junction similar to how a solar panel works. That's what I could glean from a pop culture article anyway. Low power output but you'll never have to reset that RTC again.

The little I've read on these things indicates they effectively store something like 3,300 MWh but only actually generate 100uW @ 3V. That's not even enough to power a cell phone.

mobby_6kl
Aug 9, 2009

by Fluffdaddy
Just received my aliexpress hotplate I ordered during a sale, it's got to be a record at 10 days from order: https://www.aliexpress.com/item/1005006053783156.html




Seems like there's a relatively small heating element in the middle, but it does spread out evenly pretty quickly. It might be about 5-10 degrees C off at the top end, but I haven't really calibrated the camera for emissivity so who knows. Not difficult to compensate for it anway.
  • Incredibly, the listing doesn't seem to actuall say it, but the pad is 80x60mm
  • The UI is just -/+ and off/on
  • It doesn't do any heating or cooling curves but I guess you could hack that in if you really wanted
  • It's AC powered directly so no need for extra power supply

IMO worth it over the smaller one like (like https://www.aliexpress.com/item/1005006380068665.html) and it's a good price which goes up quickly for larger ones.


Also received a bunch of WS2812 LEDs, this is my 3rd order because I don't pay attention/think things through :v:
First I missed that the LEDs came on little individual boards with a cap and resistor on each, I guess to let you solder them together with wires? Anyway, no good for me.
Then I ordered a bunch of surface-mount LEDs which is what I thought I needed, but then I realized that I wanted them to be about level with the top of a 7-segment dispaly, which would mean makeing a riser board or something
So the solution it turns out is WS2812D-F5 (or F8)

They're supposed to be like the one on the right so you can tell which side is +/- but one of them was :regd10: instead lol
PS. also they work just fine with 3.3v Vdd and data so that's gonna make my life much easier

mobby_6kl fucked around with this message at 17:12 on Apr 13, 2024

PDP-1
Oct 12, 2004

It's a beautiful day in the neighborhood.

AlternateNu posted:

The little I've read on these things indicates they effectively store something like 3,300 MWh but only actually generate 100uW @ 3V. That's not even enough to power a cell phone.

Yeah, the ones they're coming to market with now are basically RTC backup batteries. The 1W+ version is a future goal and I haven't heard if they are even able to make prototype versions of it.

Shame Boy
Mar 2, 2010

I don't think you can even buy them without an NRC license (or equivalent wherever you live) either which sucks cuz I would absolutely buy one just to add to my collection of Radioactive Things

e: Okay the one being sold has two loving curies of tritium in it which is a heckin' lot of tritium, way more than any exempt quantity anywhere. Thing is, every article about it says this:

quote:

The company reports that it has just been granted a Product Regulatory General License to manufacture, sell, and distribute its NanoTritium battery, making its P100a the first betavoltaic power source to be made available to customers who don't have a radiation license, haven't obtained regulatory approval or undergone special training.

Except I think that's actually just them straight-up lying?? Because googling "Product Regulatory General License" just turns up articles talking about this product and not what the hell a "Product Regulatory General License" actually is, what entity granted it, or what it allows you to do. To sell something with radioactive sources in it in the US anyway you either need to show it's an NRC exempt quantity made into an approved product type (like a smoke detector), or you need an NRC license to buy it. Tritium has large quantity exemptions specifically for self-luminous elements for clocks, watches and compasses (which this is certainly not) but the highest you can go even for that is 750 millicuries, and that's only for marine compasses manufactured before 2007, sooo

Shame Boy fucked around with this message at 21:46 on Apr 13, 2024

ryanrs
Jul 12, 2011

"We used a nuclear battery because the lithium shipping labels weren't scary enough."

Collateral Damage
Jun 13, 2009

I wonder if it would be enough to power something like a wireless keyboard or mouse. Would be nice to never have to charge that again.

kid sinister
Nov 16, 2002

Collateral Damage posted:

I wonder if it would be enough to power something like a wireless keyboard or mouse. Would be nice to never have to charge that again.

Oh man. That gives me a flashback. I bought Microsoft's first gen wireless keyboard and mouse. Either one took 2 AAs. The batteries in the mouse lasted 1 week. The keyboard lasted a month.

Collateral Damage
Jun 13, 2009

I built a custom wireless board a while back using a nice!nano controller (basically an Arduino Micro with a built in BLE module). It's powered by a 130mAh battery and a charge is good for about two weeks of daily use.

ryanrs
Jul 12, 2011

OK, so this isn't really micro power, but it's related if you power your circuits from a USB power bank. The Anker PowerCore Slim 10000 has low quiescent power draw. Specifically, the cheap $16, 3 port model (USB-C input only, micro USB input, standard USB A output).

You need to pull a current pulse of 100-150 mA every <120 seconds to keep the power bank turned on. But if you do this, it will run for over 2 weeks. Most power banks have atrocious idle power draw, because it doesn't matter for their standard use case. But this specific Anker model is cheap and good, and the engineers did pay attention to quiescent draw.


e: Hmm, maybe you could operate off a supercap and wake up the power bank every hour/day/week for a minute to recharge it? That could extend the time to months maybe. I should try this!

ryanrs fucked around with this message at 17:23 on Apr 14, 2024

roomforthetuna
Mar 22, 2005

I don't need to know anything about virii! My CUSTOM PROGRAM keeps me protected! It's not like they'll try to come in through the Internet or something!

kid sinister posted:

Oh man. That gives me a flashback. I bought Microsoft's first gen wireless keyboard and mouse. Either one took 2 AAs. The batteries in the mouse lasted 1 week. The keyboard lasted a month.
Related, I'm absolutely amazed by the logitech pebble mouse, which runs for like 8 months on a single rechargeable AA battery, how is that possible with radio transmitting and laser sensing and enough processing to make sense of things? I mean I know it's not actually 8 months straight, but I use it *a lot*, and even going for like 24 hours for those requirements seems impressive, like the lowest powered raspberry pi or arduino doing literally nothing can go for about 3 days.
(NB. this is using the dedicated USB radio receiver, I assume using bluetooth would make it drain a lot faster.)

ryanrs
Jul 12, 2011

ryanrs posted:

e: Hmm, maybe you could operate off a supercap and wake up the power bank every hour/day/week for a minute to recharge it? That could extend the time to months maybe. I should try this!

So this was the idea: 5V USB in, 3.3V out to your circuit.

USB > linear-charger > super-cap > linear-regulator > 3.3V

When the supercap voltage hits 3.6V, wake up the USB power bank by simulating a plug event, charge up the supercap, then disconnect the power bank and let it turn itself off.

Efficiency will be identical to a 5V to 3.3V linear regulator. All the power savings come from using the power bank in burst mode.

Quiescent current will be under 100uA, hopefully significantly so. But I'm not going to expend great effort on reducing it to <10uA, because there is a more efficient version of this design that uses a switching regulator to charge and discharge the super cap. This linear version is designed to be simple.

With a 3F super cap and a 1mA load, it will turn on the power bank every ~1 hr. Goal is 3-12 months runtime at 1mA using a $20 Anker USB power bank.


I really, really wanted this thing to be based on a 555, but even the CMOS versions use 200uA. It's that 3 resistor chain and the Control pin. I think that circuit architecture makes ultra low power fundamentally difficult. So instead I have to use a discrete comparator and 74LVC74 flip flop. But I really wanted to use a 555.

longview
Dec 25, 2006

heh.

PDP-1 posted:

I experienced an interesting bug this morning while messing around with a dual core STM32H745 microcontroller.

It has a set of peripherals called hardware semaphores that are used to coordinate use of shared resources between the processors. I'll skip the details of how they work unless someone cares, the important thing for now is that the hardware semaphores can have their state changed by simply *reading* from particular memory addresses.

It turns out that pointing your hardware debugger at one of those special memory addresses counts as reading it and changes the state of the semaphore, causing things to behave in unexpected ways that depend on exactly which semaphore you're trying to look at in that moment. Also, if you don't set a hardware breakpoint the debugger doesn't do any reads, so if you just run your program it works one way but if you pause it and step through line-by-line it does something totally different. Finally, if a particular semaphore is not shown in the active part of your debugger window on your PC screen it does not get read, but if you scroll the window down to where it gets shown then it begins getting read and changes state!

Pretty much a perfect Heisenbug.

As someone who is planning on using this exact chip later this year I appreciate the warning!
Any other experiences worth sharing?

I'm planning on using the big core as a sort of DSP pumping audio through I2S/SAI interfaces and basically running all the business logic and serial ports on the M4 core.

--

Bit back but the answer to why you float DC return in devices (but not at the source) is that if you chassis ground DC return in devices you're setting up ground loops. This can be an EMC issue, but the main problem is that now anything that is grounded is part of the power supply return.

nbd when it's in the steel cabinet on a metal rail, but you could easily end up in the case where mounting screws was the only DC return path, so you pull the screws and now your device is missing ground.
This either causes the thing to float at 24 V (not great, not terrible), or the entire power return could flow through e.g. a tiny ground line in a signal connector, which might just catch fire.

Bonding power supply return to ground (PE) is mandatory in at least some industrial DC IEC standards but I can't remember the exact rationale.
Leaving the secondary floating makes the voltage vs. chassis potentially undefined, so e.g. an insulation failure in the power supply could make your DC bus connect directly to the AC mains, that's one reason to do it at least.

longview fucked around with this message at 17:06 on Apr 16, 2024

Stack Machine
Mar 6, 2016

I can see through time!
Fun Shoe
At my previous job we had a cabinet full of fancy arduino clones for all the usual bit banging/interface noise. I miss that so I designed some DIP32-sized RL78 boards.



I'm not even sure 16-bit microcontrollers need to exist with so many options in ARM and AVR, but it's a thing you can buy.

Now to see if I can get the thing to talk to my UART at all.

Shame Boy
Mar 2, 2010

Stack Machine posted:

At my previous job we had a cabinet full of fancy arduino clones for all the usual bit banging/interface noise. I miss that so I designed some DIP32-sized RL78 boards.



I'm not even sure 16-bit microcontrollers need to exist with so many options in ARM and AVR, but it's a thing you can buy.

Now to see if I can get the thing to talk to my UART at all.

I still feel weirdly dirty every time I have something that's just a teeny bit too intense for what a lil' 8-bit fella can do and the next level up solution for basically the same fuckin' price is some dual-core ARM thing that runs at 200MHz+.

Like there's absolutely no real reason for this it just feels wasteful even though as far as I know the resources that go into making them are basically the same. Maybe it's a craftsmanship thing? Using a constrained chip makes me have to be very careful and clever with my design and programming, whereas throwing a raspberry pi pico at it means I can be a lot lazier, idk.

ryanrs
Jul 12, 2011

Extra complexity is free until you have to start releasing security patches.


For example, I've been looking at how to IoT-ize my various microcontroller projects. Until now, they've all talked over proprietary wireless or USB, where the security threat wasn't such an issue. But once wifi and ethernet is in play, I need to actually think about proper encrypted protocols.

For my USB/Internet protocol translators, I decided to use second-hand wifi access points running OpenWRT. They are plentiful and dirt cheap on ebay / craigslist / facebook. Many models have USB ports. And if it runs vanilla OpenWRT, then I am likely to receive security patches and improvements for a long time.

Stack Machine
Mar 6, 2016

I can see through time!
Fun Shoe

Shame Boy posted:

I still feel weirdly dirty every time I have something that's just a teeny bit too intense for what a lil' 8-bit fella can do and the next level up solution for basically the same fuckin' price is some dual-core ARM thing that runs at 200MHz+.

This one is in the $2 range and tops out at 32MHz. You can get a 250MHz STM32 for that, but the RL78 had a better supply range and I kind of wanted to play with a new architecture.

Stack Machine posted:

Now to see if I can get the thing to talk to my UART at all.

Welp, I only had to cut one trace so I'll mark it as a W.

Cojawfee
May 31, 2006
I think the US is dumb for not using Celsius
250mhz, what are you, the king of France?

PDP-1
Oct 12, 2004

It's a beautiful day in the neighborhood.

longview posted:

As someone who is planning on using this exact chip later this year I appreciate the warning!
Any other experiences worth sharing?

I'm planning on using the big core as a sort of DSP pumping audio through I2S/SAI interfaces and basically running all the business logic and serial ports on the M4 core.

Oh cool! I pretty much picked the chip for the same reason - the M7 will be living in an almost interrupt-less ivory tower doing very deterministic DSP-ish stuff on a stream of data while the M4 handles all of the communication to the outside world and general housekeeping. The cores talk to each other by passing messages through a pair of FIFO queues in shared memory with hardware semaphores used to coordinate access.

I'm only a bit over a week into programming this thing so I'm no expert yet, but be aware that a lot of stuff works different than it did on the old F4xx chips so plan for some extra dev time or get an eval board and start early. For example, SPI ports now have their own local Tx/Rx FIFOs and you can specify things like a wait time between when the chip select line goes low and when the clock/data lines start transmitting.

e:
Nerd pride on getting to blinky: LED1 is controlled by the M4, LED2 by the M7, and LED3 is controlled by the M4 passing commands through the shared memory FIFO that tell the M7 to toggle a pin.


Cojawfee posted:

250mhz, what are you, the king of France?
240MHz on one core, 480MHz on the other. Plus a double precision floating point processor! :coal:

PDP-1 fucked around with this message at 02:38 on Apr 17, 2024

ryanrs
Jul 12, 2011

multi-core superscalar microcontrollers, lol

ryanrs
Jul 12, 2011

PJRC Teensy took it too far, imo. I had to abandon them because their boards run at 600 MHz and use 100 mA. Low power consumption was a low priority for development, so out of the box, that's all you get. It's totally unworkable for anything that isn't plugged in.

ryanrs
Jul 12, 2011

USB Super Capacitor




BOM highlights:
LTC3127 Buck-boost switcher
MIC841L comparators + reference
SIL2308 Dual n-/p-ch mosfet


Turns out the switching version is smaller and has fewer components, although one of them is an expensive Analog Devices switching regulator.

The MIC841 is a cool little comparator chip. It has all the guts of a 555, except the resistor divider. It even includes the flip-flop! This circuit is really just a big relaxation oscillator. When the supercap hits 3.7V, the MIC841 turns on the USB power bank and starts charging the cap. When it hits 5.1V, it turns off the charger. It does this on 3uA, 1/100th the power of a CMOS 555.

Enough signals are brought out to pins to let you change the threshold voltages, explicitly request USB power, and get notified when the USB power bank is dead, but the supercap still has a little juice.

ryanrs
Jul 12, 2011

Today in the lab there was a loud BANG and the smell of burning wood. I was across the room when it happened, so I didn't see which device it came from. The smell was strongest around my Tek scope (no!), but the smell was more like the building was smoldering, not a modern(-ish) digital scope on fire.

Nope! A capacitor had blown up in my 30+ year old HP 6236B triple output power supply. It was a 0.1uF RIFA cap across the AC main. It smelled like burning wood because it's a paper capacitor.

I will be replacing it with a modern metallized polypropylene film X2 cap, even though Digikey still sells paper RIFA caps.

Only registered members can see post attachments!

ante
Apr 9, 2005

SUNSHINE AND RAINBOWS
Some electrolytic caps smell strongly of fish sauce

ryanrs
Jul 12, 2011

So why are RIFA caps still being manufactured? What's so good about them to offset the large physical size, high price, and explosive failures?

kid sinister
Nov 16, 2002

ryanrs posted:

So why are RIFA caps still being manufactured? What's so good about them to offset the large physical size, high price, and explosive failures?

Rifa is one of those brands known to fail, isn't it?

LimaBiker
Dec 9, 2020




ryanrs posted:

So why are RIFA caps still being manufactured? What's so good about them to offset the large physical size, high price, and explosive failures?

They lose less capacity than those DAIM or MEX x2 capacitors. So for their normal life span, their performance can be slightly better.
However, by now there should be better x2 capacitors that don't lose so much capacity due to self healing.

Fun fact: you can even get those Rifa/Kemet paper caps in SMD versions!

His Divine Shadow
Aug 7, 2000

I'm not a fascist. I'm a priest. Fascists dress up in black and tell people what to do.
I had an 80s rectifying stick welder do that to me a few years ago, made an incredible amount of smoke. I had a suitable RIFA replacement though and was up and running in 20 minutes. I find lots of RIFAs in old equipment, I replaced them all pre-emptively in another welder.

ryanrs
Jul 12, 2011

quote:

[Senator Collins:] Well, there are … regulations governing the materials they can be made of
[Interviewer:] What materials?
[Senator Collins:] Well, Cardboard’s out
[Interviewer:] And?
[Senator Collins:] …No cardboard derivatives…
[Interviewer:] Like paper?
[Senator Collins:]. … No paper, no cellotape. …

kid sinister
Nov 16, 2002
I was thinking back now and it was indeed RIFA caps in old Mac computers that are known to go bad. I said some wrong 4 letter brand previously.

LimaBiker
Dec 9, 2020




Fun fact: you can actually get brand new Rifa paper caps in SMD versions, for all your modern, miniturized smoke generating needs! https://nl.farnell.com/kemet/smp253ma4470mtv24/cap-film-suppression-4700pf-class/dp/3527162

This one's out of stock but there are others from both Rifa and Kemet.



They're actually surprisingly expensive. I want to buy a bunch and see how the newest, most modern paper caps fare. Hook them up to mains with a fast acting fuse in series and leave them for the next 1 or 2 decades to see what happens. But they're a bit too expensive just for a silly test.

Adbot
ADBOT LOVES YOU

kid sinister
Nov 16, 2002
Paper caps have always been junk. Back in the 40s and 50s it was the acids in the paper would throw off the values over the decades, eventually shorting.

Edit: and they were covered in wax, so they're gross and sticky.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply