• ExcessShiv@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    3 days ago

    Why the hell make it with a microprocessor when something simple like brightness levels and simple blinking patterns can be made with much simpler digital electronics without the need for any programming whatsoever leaving the whole hacking-issue out of the equation.

    • fruitycoder@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      4
      ·
      2 days ago

      Because you could design all of those feature in analog, and make custom boards for every change or have one board you update every few years based on supply, cost, and maybe power performance, but make and adjust features on a minute by minute basis if want to.

      The driver, power source, etc can all be more easily separated from the logic too. It could be tiny, or massive. Same software, same controller.

      • ExcessShiv@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 days ago

        Its a flashlight, not exactly a field in raging development.

        Honestly I’m thinking it’s because it’s cheaper to have programmers doing simple FW programming for things than it is to have engineers design the required circuits. There are so many things with microprocessors in today that just does not actually need it but it was the lazy option. It opens stupid avoidable avenues of vulnerabilities.

        • anomnom@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          2
          ·
          edit-2
          2 days ago

          Cheaper components and manufacture to use a dedicated microcontroller to run PWM to dim the LEDs than something like a 555 and transistors to change its logic/capacitor path to vary brightness.

          They even may use the same micro for charging lipo batteries, not sure since there are dirt cheap chips for that too.

          The fact that people have bothered to modify such basic firmware is pretty funny though.

        • Monument@lemmy.sdf.org
          link
          fedilink
          English
          arrow-up
          3
          ·
          2 days ago

          My girlfriend asked why I carry a gun around the house? 
          I looked her dead in the eye and said, “the motherfucking decepticons”. She laughed, I laughed, the toaster laughed, I shot the toaster, it was a good time.

          …. I don’t know. It’s just what came to mind when I thought of household appliances being hijacked.

      • JustEnoughDucks@feddit.nl
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 days ago

        Or you use one GreenPak device and OTP it based on the model and have it cheaper and more reliable, any supporting circuits like drivers, FETs, bulk capacitance, etc… Would have to be designed per-model anyway on MCU based design.

          • JustEnoughDucks@feddit.nl
            link
            fedilink
            English
            arrow-up
            2
            ·
            8 hours ago

            SLG46826V-DIP SLG47115V-DIP SLG47004V-DIP

            These are the breakout boards of their respective chips.

            These chips are the 3 “multiple time programmable” chips in their line (if I have the right ones, I put them in my mouser list a while ago). Which means that once you program them, they aren’t burned in with those settings and can be reused.

            There is also a “debug mode” where you don’t program them at all but program all the settings after boot so that the settings are cleared again after the chip is repowered. I have never used it, but that is what the renesas rep told us during our technical call at work.

            They are super handy at getting rid of all of the logic needed for amplifiers, CC/CV circuits, etc…