Shamelessly stolen from you know where

  • Zoabrown@lemmy.world
    link
    fedilink
    English
    arrow-up
    14
    ·
    7 hours ago

    “Linux never succeeded” is such a funny take when it’s quietly running most servers, phones (Android), and a ton of embedded stuff. The real Linux rule is: if it works, nobody notices 😄

  • Treczoks@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    9 hours ago

    For running a vibrator, you’d probably can do with an ESP32 or RPi2040. No need for the big guns (pun intended).

    • Bassman1805@lemmy.world
      link
      fedilink
      English
      arrow-up
      13
      arrow-down
      1
      ·
      7 hours ago

      If the only race track you consider is “personal desktop computer usage” then sure.

  • Aceticon@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    38
    arrow-down
    1
    ·
    1 day ago

    Not even the more expensive microcontrollers run Linux.

    The kind of thing you would see in such a simple device like a dildo are the cheaper smaller ones with RAM sizes and Flash Memory sizes in the KB range and costs less that $1 in bulk.

    Mind you, you can squeeze a Linux kernel into a really small amount of memory, but why for a production device pay more for a larger than needed microcontroller and then use most of its storage for a Linux kernel leaving little space for the actual functional code when you don’t need support for things like filesystems or networking?

    Microcontrollers are a whole different world from microprocessors.

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

        You can force it to happen (because the Linux kernel is quite modular and you can make it way smaller by switching off a lot of things) but as I said, what’s the point when all you need is to literally run a single application that only toggles I/O ports or does a bit of comms with an external integrated circuit via I2C, Serial or SPI?

        In a production design for something as simple as a dildo - so basically a motor controller - there really is no point in paying for a more powerful and more expensive microcontroller, adding cost to the final product, just to stuff a Linux kernel there to run a single application that doesn’t need things like filesystem or networking support.

        (For example, here is an example of about the most low end microcontroller you can use. Notice the 128 bytes of RAM and 2KB Flash storage. You can stuff enough code in there to activate a motor in one of several specific simple cycles depending on the position of a switch but not much more. Of course that kind of stuff is programmed in C either directly on top of the hardware - by literally changing microcontroller registers - or most likely on top of a manufacturer specific low level library)

        Further if you do need functionalities of an OS such as multiple task/application support, there are alternatives that tend to be better for those kinds of use, such as various RTOSes.

        Now, as many pointed out, there’s plenty of reason to do it for the challenge or the fun of it - the ethos of any good hacker in the traditional sense of the word - just not for a production design of a device for which tens/hundreds of thousands of units will be made where adding Linux raises the needed capabilities of the microcontroller and hence the hardware cost while not actually helping to deliver the needed functionality.

        • zod000@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          2
          ·
          7 hours ago

          While you were probably fully correct in the past, with how they are forcing everything to be “smart” now, it is entirely possible that everything from vibrators, to toasters, to refrigerators could be running Linux on a cheap chipset.

          • Aceticon@lemmy.dbzer0.com
            link
            fedilink
            English
            arrow-up
            2
            ·
            edit-2
            7 hours ago

            In my experience, pretty much everything does indeed have a microcontroller nowadays (because software is so much easier to make, test and change than electronics, plus a lot of what took several digital components in the old days are just a few lines of code in a microcontroller, so putting a microcontroller there is cheaper also in hardware terms), but most things use tiny ones like the one whose info I linked in my previous post (if you get your hands on a broken mouse, open it up and google the part codes of the integrated circuits you find inside), with maybe a bit more memory since that specific ATTiny is very much on the lower end.

            The reason why it’s something like that rather than something bigger, is that something like that costs $0.38 each, in bulk, whilst something that’s big enough to run Linux costs around $10+, plus something like that has a smaller physical footprint, needs all of 1 capacitor and 1 resistor externally for it to work and can work directly from some pretty shit power sources, further reducing overall costs, whilst microprocessors demand a lot more supporting electronics and proper power regulation to work.

            When the cost of putting a big one there are nothing next to the overall device costs, manufacturers can easilly just upgrade it to “smart” enough to justify Linux (which goes beyond merelly digital controllers and displays or even WiFi connectivity and into Android TV levels of complexity) with little risk, but when we are talking about much cheaper stuff, they’ll only make a “smart” version if there’s explicity demand for such “smarts” that’s willing to play a lot more. Notice how, when comes to dildos if you look at the Lovense which probably the most complex around, as somebody else pointed out it still uses a microcontroller that’s not running Linux and is way too small for having Linux to be worth it even if possible - in fact per its datasheet doesn’t even support WiFi but only Bluetooth LE, which means it doesn’t even have an IP stack, as Bluetooth is basically Serial-over-radio, which means it’s actually the software on the other side of that Bluetooth link that does the heavy lifting.

            I think your idea of “everything” in Electronics is pretty much just big ticket Consumer Electronics, yet most Electronics out there by number of units is actually the small stuff that costs a few dollars in parts to make, and almost all dildos fall into the second category, not the first.

            • zod000@lemmy.dbzer0.com
              link
              fedilink
              English
              arrow-up
              2
              ·
              7 hours ago

              You are correct on most things here, but your example pricing is WAY off. You can get Linux capable microcontrollers for less than two dollars retail, and most certainly much cheaper in bulk. I want to be clear that I in no way support putting this sort of tech into these devices. I do think that with the current trend of wanting to add “AI” to consumer devices and/or siphon up as much user information as possible, inexpensive embedded Linux being very common wouldn’t shock me at all.

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

                Can you give me an example of a microcontroller that can run Linux in production (so, not just be made to run Linux experimentally, but which actually is used in applications were it’s worth it to run Linux on it) AND which costs less than $2 in bulk?

                Because the only ones I can think of, the lower end of the Esp32 range, can run Linux but it’s just not worth it for the kind of applications they end up in.

                • zod000@lemmy.dbzer0.com
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  4 hours ago

                  The esp32-s3 is specifically one I was thinking of, its less then $2 for purchasing a single chip. You keep moving goal posts here, so I’ll just leave it. Have a good one.

        • oatscoop@midwest.social
          link
          fedilink
          English
          arrow-up
          3
          ·
          10 hours ago

          what’s the point when all you need is to literally run a single application that only toggles I/O ports or does a bit of comms with an external integrated circuit via I2C, Serial or SPI?

          None, but sometimes you need far more functionality. A micro-controller is cheaper and less power hungry than a full fledged SOC, which is why you find them in things like e-ink tablets.

          I’m not saying it’s common, but given the swath of “high end” internet connected adult toys I wouldn’t be shocked if there’s a handful running linux.

      • Aceticon@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        12 hours ago

        Yeah, Linux is till amazingly modular and it’s a fun advanced hobbyist project to just get it to run in the smallest thing possible (“Linux in a potato”).

        It’s not however logical to increase hardware requirements (and hence costs) in the design of a production device just to have Linux there when all you’re running is a single task in a single thread to control a motor, something you can otherwise probably fit in something like this.

    • laserm@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      ·
      23 hours ago

      For the lolz probably. There doesn’t have to be a rational reason for everything…

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

        The only experience I have with those (I’m an EE but don’t practice it professionally so have only have done embedded circuits for fun) is things like the ESP8266 and ESP32 and those come with an RTOS, though at least the latter should be powerful enough to fit Linux. You can actually program for those in C on top of Arduino or on top of the manufacturer libraries which are a bit more high level than for simpler microcontrollers without WiFi support as they come with an IP stack rather than only exposing low level hardware functionality.

        (It is actually a lot of fun making a proper web application on one of those to allow remote control of some hardware from an Android app - if you make it a REST interface - or even from a browser - if you make it serve web pages. I believe most “controllable from your mobile phone” lights out there use one of these microcontrollers or similar on the lamp side).

        The Nordic nRF51822 somebody else mentioned doesn’t even have WiFi support, only Bluetooth LE and has less memory.

  • abbiistabbii@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    157
    ·
    1 day ago

    > “Linux never succeeded.”

    > Almost all Supercomputers run Linux.

    > Most Web Servers Run Linux

    > Is the basis for Android

    lol wat

    • unexposedhazard@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      84
      ·
      1 day ago

      Also:

      At this rate steam on linux will hit like 10% in a few years.

      The general desktop marketshare of linux is slightly higher than the steam. Its at like 4.5% already

      • Hudell@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        38
        ·
        1 day ago

        One other factor that also influences Linux’ market share is that a lot of people just don’t use PCs anymore and rely only on smartphones. I assume that Linux users are less likely to stop using PCs completely than Windows Users are (or rather, that people who don’t even get into PCs would have been less likely to become Linux users if they did)

        So it’s not just direct conversion from Windows to Linux, but also a higher retention of users somewhat.

        • tempest@lemmy.ca
          link
          fedilink
          English
          arrow-up
          12
          ·
          1 day ago

          Exactly. People are talking about jumping ship from Windows to Linux after the recent update while regular people have moved to phones 10 years ago

    • LwL@lemmy.world
      link
      fedilink
      English
      arrow-up
      13
      ·
      1 day ago

      I am reminded of that one time we went to lunch with one of our scrum masters and he actually said “why does linux even still exist anymore”.

      I didn’t even get into all of that i just told him i switched my home pc to linux a few months ago lol

  • hayvan@piefed.world
    link
    fedilink
    English
    arrow-up
    29
    arrow-down
    1
    ·
    1 day ago

    The microcontroller probably runs Zephyr, not Linux. It’s fine, Zephyr is also sponsored by Linux Foundation.

    • tauonite@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 day ago

      Probably some SDK-powered bare metal, don’t think an RTOS is needed for a vibrator (and certainly not a feature-packed one like zephyr). Could be, though

      • hayvan@piefed.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 day ago

        Depends on the features. Just an imbalanced motors, battery holder, and a switch could be enough. Anything else is extra.

  • anton@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    15
    ·
    1 day ago

    Hopefully not, the only reason it would need linux is if it connected to wifi and I don’t know who wants that.
    Anything up to bluetooth should work with just a Microcontroller running nothing more complex that a small rtos.