• HugeNerd@lemmy.ca
    link
    fedilink
    English
    arrow-up
    86
    ·
    1 day ago

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

    • Lovable Sidekick@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      11 hours ago

      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.

      • Corkyskog@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        1
        ·
        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
      link
      fedilink
      English
      arrow-up
      2
      ·
      11 hours ago

      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.

    • Aceticon@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      16
      ·
      21 hours ago

      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.

      • KairuByte@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        10
        ·
        20 hours ago

        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
          link
          fedilink
          English
          arrow-up
          3
          ·
          20 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
      link
      fedilink
      English
      arrow-up
      39
      ·
      1 day ago

      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.