this post was submitted on 08 Jun 2026
742 points (99.3% liked)

Technology

85245 readers
4699 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related news or articles.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. 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.
  9. Check for duplicates before posting, duplicates may be removed
  10. 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
[–] HugeNerd@lemmy.ca 121 points 1 day ago (7 children)

"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.

[–] LovableSidekick@lemmy.world 4 points 12 hours ago* (last edited 12 hours ago) (2 children)

Yes, where "process" means measuring instantaneous changes in airflow as the user inhales (or doesn't), and regulating a heating coil accordingly by running actual program code - which requires a controller to run it and memory to store it in. I mean when you click "Reply" on this page all it has to do is process one button, but that involves a lot.

[–] kevinsky@feddit.nl 1 points 1 hour ago* (last edited 1 hour ago)

All that logic is still a choice though. You could also just instruct the user to not press the button unless they're inhaling and just actually have it be an on and of button. That's how vapes used to work. Worst thing that could happen there is that you burn the wick, which is only a problem because it's not serviceable.

[–] Corkyskog@sh.itjust.works 1 points 10 hours ago

Some of them have games like snake you can play in class on them. I mean that's what I assume its for, any adult would use their phone.

[–] Melobol@lemmy.ml 2 points 12 hours ago* (last edited 12 hours ago) (1 children)

There were couple series of: full lcd screen, bt connected to smartphone for notifications and a speaker versions. Plus the rechargeable battery and usb c charging port (obviously).
It was selling about 35 bucks.
Forgot the game one: had controller buttons and 3 games: pacman, tetris and a lying shooter inbuilt. With full lcd and speaker. (Thus wasnt bt connected tho) Price was similar.

[–] Sylvartas@lemmy.dbzer0.com 1 points 3 hours ago

Forgot the phone one too. Or was it a phone "case" ?

[–] Aceticon@lemmy.dbzer0.com 20 points 22 hours ago* (last edited 22 hours ago) (2 children)

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.

[–] merdaverse@lemmy.zip 6 points 15 hours ago* (last edited 15 hours ago)

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.

[–] KairuByte@lemmy.dbzer0.com 11 points 21 hours ago (1 children)

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.

[–] Aceticon@lemmy.dbzer0.com 4 points 21 hours ago

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.

[–] stardreamer@lemmy.blahaj.zone 51 points 1 day ago* (last edited 1 day ago) (1 children)

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.

[–] wewbull@feddit.uk 31 points 1 day ago (6 children)

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.

[–] I_Has_A_Hat@lemmy.world 27 points 1 day ago (2 children)

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.

[–] QueriesQueried@sh.itjust.works 4 points 22 hours ago

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.

[–] Rai@lemmy.dbzer0.com 3 points 22 hours ago

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.

[–] Croquette@sh.itjust.works 29 points 1 day ago

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.

[–] Rai@lemmy.dbzer0.com 9 points 22 hours ago

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.

[–] stardreamer@lemmy.blahaj.zone 9 points 1 day ago (2 children)

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.

[–] lyralycan@sh.itjust.works 7 points 1 day ago (3 children)

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

[–] wewbull@feddit.uk 2 points 16 hours ago

An RC circuit charging up to some threshold voltage. You can even make it adjustable with a variable resistor.

[–] nyan@lemmy.cafe 6 points 1 day ago (1 children)

I wonder what’s needed to include a 10 second on & 30 seconds disabled timer, maybe it’s cheaper

555 timer and a transistor or two, I think?

[–] Aceticon@lemmy.dbzer0.com 2 points 22 hours ago* (last edited 22 hours ago) (1 children)

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.

[–] nyan@lemmy.cafe 1 points 16 hours ago

Economies of scale have been doing really funky things to chip prices, then. Yet another demonstration that the universe Does Not Make Sense.

[–] Ithral@lemmy.blahaj.zone 3 points 1 day ago

They also do some BMS stuff, and some support limited graphics and UI. Depedns on the moddle

[–] Rai@lemmy.dbzer0.com 1 points 22 hours ago

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!

[–] HeyThisIsntTheYMCA@lemmy.world 3 points 22 hours ago (1 children)

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)

[–] wewbull@feddit.uk 2 points 16 hours ago (1 children)

I was assuming it was disposable (as so many are) and therefore no charging circuit.

[–] HeyThisIsntTheYMCA@lemmy.world 1 points 4 hours ago* (last edited 4 hours ago)

Huh. The disposables I am occasionally "forced" to get (put it in a 510 thread gramma) have charging ports. I usually have to charge once or twice to get through the full gram.

That being said, the good local dispo just rebranded and gave me a bunch of 510 batteries with the old name on them. These batteries are fantastic and look about the same size as the server in the article

[–] teyrnon@sh.itjust.works 2 points 22 hours ago

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.

[–] Sabata11792@ani.social 15 points 1 day ago* (last edited 1 day ago)

It's so you can have a spinny animation when you hit the button.

[–] HeyThisIsntTheYMCA@lemmy.world 4 points 22 hours ago* (last edited 22 hours ago)

that's more powerful than my first computer

can it play Grover Teaches Typing?

[–] Hiro8811@lemmy.world 4 points 1 day ago

You don't need a CPU at all for this trash