• Blue_Morpho@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 days ago

    You can use Scratch, the drag and drop flowchart programming language for young children to read and write to the gpio ports. My son did an elementary school science fair project with it.

    A few years later I pulled out the same Pi and used it with Scratch to make a temporary cat litter box alarm when I needed a urine sample for the vet. I use esp32s for my projects but using the Pi took minutes instead of hours program.

        • Ghoelian@piefed.social
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 days ago

          What? You said it having 1GB of memory makes it an easier to program microcontroller. I’m just trying to figure out how that makes sense. The amount of memory doesn’t matter when programming it.

          • Blue_Morpho@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            ·
            edit-2
            2 days ago

            A typical microcontroller like a Raspberry Pico ESP32, or Arduino has 520K of RAM. Not Megabytes but Kilobytes. There’s no OS. There are no drivers. There’s no sound or video output. You run a development environment on your pc, it compiles the code to byte code and then you transfer that data to the rom built into the microcontroller using the development environment because in most cases the Microcontroller flash isn’t visible to Windows/Mac/Linux as a fat drive.

            Using a 1GB Pi as a microcontroller means you boot Linux, run Scratch/Python, C, type your code, and test it dynamically. You have video and audio out available. You are running a single simple program that would otherwise run on a 200 Mhz CPU with 520k ram. So a 2.4Ghz Pi with 1 Gigabyte ram is gigantic in comparison making development much easier.