Hacker News new | ask | show | jobs
by brucehoult 38 days ago
I find it much easier to write a ten line program for an 8 pin CH32V003 (or ATTiny85 in past times) to do exactly the timing or SDC comparisons I want than to figure out the circuit and component values for a 555 or op-amp.

For that matter, a 16 pin CH32V003 can emulate a vast array of 7400 series devices as long as you don't need ns timing — no problem for µs. It's also cheaper.

1 comments

Using a cpu running software to emulate a handful of gates is just the furthest thing from interesting. It's the inverse of elegant.
Until you go to lay out your circuit board. There's a reason microcontrollers are used for tasks like debouncing switches.
I said uninteresting and inelegant. No one disputes that brute force is functional.
"There's a reason microcontrollers are used for tasks like debouncing switches."

Because people are too cheap (or fail that hard at basic analog electronic control) to get a proper single-pole single-throw switch with a pair of MOSFETs in a monostable mode, or use an S-R flip-flop latch to debounce, or even a very simple R-C filter circuit.

"Throw a microcontroller on it and call it a day" is the surest sign of someone not properly educated in electronic engineering.

I think it's like living under a waterfall.

If you live under a waterfall you'll use 1000 gallons of fresh water pumped at blasting high speed to wash a cup.

We live under a waterfall of cpus and gates in general, and organisms don't care if their environment is perverse. A thoughtless organism will happily consume 1000 units of a free resource just to get 1 unit of some other non-free resource.

And a lot of humans are the worst. Thinking beings who elect not to care about anything like that. Like spammers that operate simply because sending email is free for the sender. They get almost nothing from it, and it costs everyone else a lot, but it costs them even less than the tiny bit they gain, and the external costs don't matter to them the tiniest bit.

But the environment is perverse, created by economies of scale and Asian slave labor and the push for advancement for it's own sake which makes existing useful things artificially low value by being "obsolete".

A software version of that might be making apps with Electron. It doesn't matter how much cpu and ram and disk and general mass of tech stack it takes to make some trivial app. The developers precious time outweighs all other considerations. If they can make the app in a few minutes with no effort instead of a few hours, it doesn't matter how much of everyone else's resources they consume since their time is valuable and 1M other people's cpus are free.

All of that stuff is more expensive and uses more board space.
Which is why my bluetooth keyboard/mouse controller pad has that (specifically resistor/cap circuit under each key) riiiiiiiiiiiiiiight?