Remix.run Logo
fidotron 9 hours ago

OTOH things which belong on microcontrollers are now being pushed back to microcontrollers for cost reasons, so there is a win to be found there.

chromacity 8 hours ago | parent | next [-]

Even before the hikes, SBCs were $50-$100 a pop, compared to pennies for basic MCUs and maybe $4 for high-performance ones. People were clearly willing to pay 100x more just for familiarity and the ecosystem ("hats", forums, etc). I don't know if 300x is going to make more hobbyists see the light, or just result in fewer of them being able to afford the hobby?

KPGv2 4 hours ago | parent | next [-]

> People were clearly willing to pay 100x more just for familiarity and the ecosystem

This is obviously logical. If I know how to program in Python or JS but not C and am familiar with SSH, I can do something with a SBC in a few minutes.

I get paid $200/hr. If I spent even one hour to learn what I need to deal with a microcontroller, the time cost is four times the cost of materials if I stick with what I know.

How many small projects do I need to do in my free time before it's financially smart to learn a whole new technology?

telotortium 4 hours ago | parent [-]

With LLMs, it's potentially a lot easier to use microcontrollers now, depending on how widely available the documentation is now.

charcircuit 6 hours ago | parent | prev [-]

That's an apples to oranges comparison. Might as well bring up how people pay thousands of dollars for FPGA boards.

chromacity 5 hours ago | parent [-]

No. Many hobbyists default to SBCs whether they need them or not. No one defaults to FPGA if they don't need it.

charcircuit 2 hours ago | parent [-]

My point is that the FPGA boards are several orders of magnitude more expensive than the actual chip. To be fair you should be comparing between the cost of the SoC and the microcontroller.

JKCalhoun 6 hours ago | parent | prev | next [-]

Yeah, never understood why I would want an entire OS running just to blink an LED. I was going to make a pro-Arduino comment but I guess my LED example warrants little more than an R/C circuit and a transistor, ha ha.

(Anyway, I still remember the thrill of writing assembly for a 68HC11 and getting a pair of hobby servos to respond.)

saidinesh5 3 hours ago | parent | next [-]

Mostly for the network stack. Economics, also, sometimes.

These days, with ESP32, Pi Pico W etc... things have changed a lot.

But before they got popular, Why deal with MCU + wiring some weird peripheral for wifi / ethernet when you get a Pi Zero W / Clone with built in wifi for the same price?

bombcar 5 hours ago | parent | prev | next [-]

Familiarity - it’s easy for us Linux dweebs to build a pi that can flip an LED, but programming an arduino is an entire new area.

jfim 4 hours ago | parent | next [-]

It's pretty trivial to do so on Arduino though.

  void setup() {
    pinMode(LED_BUILTIN, OUTPUT);
  }
  
  void loop() {
    digitalWrite(LED_BUILTIN, HIGH);  
    delay(1000);                     
    digitalWrite(LED_BUILTIN, LOW);   
    delay(1000);                      
  }
KPGv2 4 hours ago | parent [-]

Well first you have to learn the Arduino programming language. And the stdlib.

numpad0 29 minutes ago | parent | next [-]

They don't call it C++ because that sounds too difficult. But it's literally, not like a simplified subset that compiles into an IL using a formally proven tool, but as in literally compiled using GCC as, C++.

jfim 3 hours ago | parent | prev | next [-]

It's C++, and basically what Arduino gives you is

  int main() {
    setup();
    for(;;) loop();
  }
As well as a GUI to easily flash devices and view the output from the serial port, as well as import libraries that do all of the hard work like say making a serial port on any microcontroller pin or control external devices like light strips or displays.

I'd assume the average user on HN should be able to figure it out pretty easily.

grogenaut 3 hours ago | parent | prev | next [-]

it's literally the hello world of micros. get an arduino, plug it into the usb, install the ide, new -> example -> 01. Blink. Press Run. Cool you have now blunk a led. Now use AI to draw the rest of the owl.

telotortium 4 hours ago | parent | prev [-]

Good thing LLMs exist now

saidinesh5 3 hours ago | parent | prev | next [-]

With micropython or some of the js based frameworks for microcontrollers, it's really not that new/different.Especially with ESP32/Pi Pico W/their clones...

In fact it's a lot more straight forward to not have to deal with Network Manager config files or systemd unit files or read only rootfs headaches of Linux world.

NooneAtAll3 3 hours ago | parent | prev | next [-]

asking as a casual non-poweruser... how does one do that on linux exactly?

stackghost 2 hours ago | parent [-]

https://www.kernel.org/doc/html/v5.0/driver-api/gpio/index.h...

You can usually find libraries for your language of choice to speak GPIO and expose the pin's state as a variable in your code.

grogenaut 3 hours ago | parent | prev [-]

good news, now you can use all that dram you can't afford to vibe code an arduino program. Think of the savings and the learnings!

tempaccount420 an hour ago | parent [-]

You're probably joking, but this is interesting. If we throw more RAM at AI, it can help us optimize programs to reduce our RAM needs, I haven't thought about it like that

stackghost 2 hours ago | parent | prev [-]

For me it's primarily the ability to run a full TCP/IP stack. For hobby projects, I'd rather use a Pi or a Beaglebone with IRC or HTTP for data egress than, say, I2C or SPI. The ease of debugging alone makes it worth it.

teaearlgraycold 8 hours ago | parent | prev [-]

I’ve been having a lot of fun with the Pi Pico 2W. It can host an access point, a web server, be a USB host, and of course has GPIO. And not running an OS means it’s way simpler.