this post was submitted on 08 Jun 2026
586 points (99.2% liked)
Technology
85226 readers
5747 users here now
This is a most excellent place for technology news and articles.
Our Rules
- Follow the lemmy.world rules.
- Only tech related news or articles.
- Be excellent to each other!
- Mod approved content bots can post up to 10 articles per day.
- Threads asking for personal tech support may be deleted.
- Politics threads may be removed.
- No memes allowed as posts, OK to post as comments.
- Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
- Check for duplicates before posting, duplicates may be removed
- Accounts 7 days and younger will have their posts automatically removed.
Approved Bots
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
"it was actually a PY32F002B, powered by a 24 MHz Arm Cortex M0+ processor. The chip also carried 24KB of flash storage and 3KB of static RAM"
To process a single button.
Well the PY32F002B (costing a few cents) even though it has a 32-bit (entry level) ARM core @ 24MHz is literally cheaper than older and less powerful microcontrollers.
Granted, if you don't do anything else than react to a push button it's still cheaper to use discrete electronic components than a microcontroller, but given that this device has a LiPo battery (meaning there's battery control involved) and judging by the picture a USB-C connector, there's probably a bit more digital logic in it, by which point a 3 cent microcontroller plus a cheap SMD crystal and some caps is cheaper than using discrete components.
The domain of embedded systems has evolved to the point that it's the best option for almost everything in consumer electronics, mainly because at the lower end there are so many stupidly cheap and easy to use choices were you don't run an OS in it but instead just a single block of single-threaded code directly on the bare metal accessing registers directly.
It's crazy to think that this is basically more powerful than the Apollo Guidance Computer that got people onto the moon. It costs 3 cents, and we use it for shit like this and then throw it away. What spectacular waste.
Temperature control, likely something to keep track of how much is left in the device, and I’m betting I’m forgetting something.
I doubt discreet electronics can cut it at that point.
Yeah, as per the analysis I did in another post, even a 555 and a couple of transistors to just blink an LED is more expensive than putting a microcontroller like this one there.
It's so you can have a spinny animation when you hit the button.
Because an existing SoC at scale is cheaper than a custom ASIC.
You see this all the time, custom keyboard running ARM+Linux, SmartNICs using RISC-V cores/FPGAs instead of ASIC accelerators. Even Microsoft refuses to commit to ASICs for network processing in their DCs and use FPGAs instead.
A vape is a battery connected to a button connected to a heating coil. You might want a single transistor. You don't need a software platform.
Sure, if you weren't competing with every other vape out there that has things like variable voltage settings (at least 3), a pre-heat feature, the ability to turn on/off with 5 presses, or to turn off automatically after 5-10 minutes without use, a low battery indicator, a charging indicator, a broken coil indicator...
Hmm, seems like you need a lot more than a battery, heating coil, button, and single transistor.
With the major caveat that dispos dont offer more than 2 of those features at best. Almost all those features you specify are on reusable devices. There are going to be some that do have those additional features, but at a price point that makes them nearly as or more costly than a reusable device.
The only IC you need for a disposable really, is a BMS, and a temp sensor (technically a timer so it also doesnt over draw, but timer ICs are built into everything) so it doesn't willfully light itself on fire in unusual circumstances.
All that to say: there is effectively 0 difference between most disposables released today and reusables, with the sole exception that you cant refill or recharge them. There should be no device with a battery deliberately intended to be thrown away, for anything, save for medical uses.
You’re sooooo right, check my response to that guy. I was into vaping years ago and loved mechanical vaoes, which were legit just a battery, heating coil mounted to a platform, button, and conductive tube. Super simple devices, so easy!
Except they’re INSANELY DANGEROUS! I loved them but I’ve had friends treat them carelessly and they WILL start on fire or even explode if not vented. You need a thorough understanding of Ohm’s law, batteries’ amperage limits, how to rewrap batteries with nicks in the wrap, and to never leave them unattended even with manual locking rings.
The person you replied to mentions adding a transistor which would do nothing. Add some more bits and just like you said, you’re competing with fully functional vapes with all those features and they’re cheap as hell. The chips cost nearly nothing, so that’s the route they go. Those vapes aren’t impervious to blowing up, but they’re much safer than simple mechanical vapes.
I used to be into vaping and a big mechanical vape fan. I still have all of my old mech vapes! Those were what you’re thinking of—a button, a conducive body, and a coil or two mounted to a post. You pop an 18650 in, no transistor or resistors needed. You adjust your wattage by changing the way you wrap your coils, and your wire gauge. Generally I’d like to run around .2 ohms, which pushes about 18-20 amps out of the 18650s.
These are NOT devices you want in the hands of regular people lawl. I’ve had friends in years past love how my setup was and get similar vapes for themselves. I’ve seen a burned-down backpack (RIP, all of his adderall XR), a table almost catch fire, and burnt carpet. No explosions because I told people “don’t get one of these, but if you’re not going to listen to me, for the love of glob make sure it’s vented.”
Anyway, yeah no way anyone should have these except electronics enthusiasts. Even with locking rings, they can just start firing if the person using it isn’t super careful. Nice batteries rated for 30a pulse are 2USD more than the garbage batteries that love to vent or explode.
You add in a transistor, that’s not gonna do anything. You add in a couple more things for protection and your cost is higher than it would have been by getting one of the chips in OP’s article, and you don’t have a nice interface for adjusting wattage and checking battery level and charging via USB and all that fun shit.
There is also a battery management system as well.
M0 processors are dirt cheap, especially in bulk.
They probably have a BMS library that takes a few Kb of flash.
The time it would take to make the design cost effective wouldn't be worth it.
Slap a less than a dollar mcu and be done with it.
i disagree with the single transistor. overcharge prevention requires something more (i am not a batteriologist don't ask me what. i'd do it with a tesla coil because that'd look cooler)
I was assuming it was disposable (as so many are) and therefore no charging circuit.
Disclaimer: I don't smoke anything, so I don't know any details.
Wouldn't a button connected to a heating coil be a fire hazard? Is there no automatic shut-off based on temperature? If you add enough safety features, it might end up costing about the same as an embedded SoC.
All it would need is a thermal fuse/cutoff, like those in portable heating appliances (air fryers, grills etc.). I wonder what's needed to include a 10 second on & 30 seconds disabled timer, maybe it's cheaper
An RC circuit charging up to some threshold voltage. You can even make it adjustable with a variable resistor.
555 timer and a transistor or two, I think?
Digipart is showing me price for PY32F002B with a minimum purchase of 5000 as less that $0.10 (not the factory price, just the cheapest store).
The price for the cheapest NE555 (random manufacturer implementation of a 555) variant in Digipart is $0.13
(Granted, you also need at least a crystal and 2 caps, plus 1 power filtering cap per power line for the microcontroller, but those are all cheap)
It's ridiculous how modern microcontrollers are so stupidly cheap that even though they can run a lot more digital logic (in the form of software running in them) they almost always beat using older and much simpler digital parts even for something as simple as this.
Even microprocessors are getting stupidly cheap: somebody recently pointed me out the Allwinner F1C100s, which is about the smallest microprocessor that can run Linux, and it costs $2 in bulk to the point that some embedded engineer has made a business card with one running Linux which he just gives away.
Economies of scale have been doing really funky things to chip prices, then. Yet another demonstration that the universe Does Not Make Sense.
They also do some BMS stuff, and some support limited graphics and UI. Depedns on the moddle
You’re 100% correct. I have mechanical vapes—no safety cutoff, just an 18650 in a conductive tube with wire coils attached to posts. They’re amazing, and they’re extremely dangerous. Turning one into a protected vape with basic features like wattage adjustment? Way cheaper and easier to go SoC!
There is a little more to it, pressing the button 5 times turns it on and off. Three times often lets one cycle through power settings. But yeah, anything more than a very minimal programming is frankly suspicious.
It could be a lot is used to get the charge right idk.
that's more powerful than my first computer
can it play Grover Teaches Typing?
You don't need a CPU at all for this trash