3 ms·
> Vonada's engineering maxims are pretty scary to me- an amateur hobbyist soldering various chips together to build simple projects like "a rotary encoding cont
by tzs 3y ago
> Vonada's engineering maxims are pretty scary to me- an amateur hobbyist soldering various chips together to build simple projects like "a rotary encoding controlling a binary counter visualized with LEDs"
Fortunately for probably most hobby projects you don't have to worry about most of those things.
A lot of those maxims concern failures of the lumped element model.
The lumped element model is a model where all the capacitance occurs in capacitors, all the resistance is in resistors, all the inductance is in inductors, and so on, and wires are zero resistance conductors of current that do not couple magnetically or inductively with anything.
If clock speeds aren't too high, there is enough gap between the highest 0 logic voltage and the lowest 1 logic voltage, wires aren't too long, voltages and currents aren't too high or too low, and you don't do anything like put loops in your wires (other than when you are intentionally trying to make an inductor) the deviations of reality from the lumped element model shouldn't cause any problems.
As you deal with higher frequencies reality starts to noticeably diverge from the lumped element model. You have to start worrying about things like capacitance between leads on your components, inductance between wires, and wires acting like transmission lines.
Keep going up in frequency and you can get to a point where you have to use software that can solve (exactly or numerically) Maxwell's equations for the fields around things and take into account interactions with those fields.
Hobbyist projects can do things that get past where the lumped element model is all you need, such as WiFi or Bluetooth which operate at several GHz, but usually those functions are handled by modules that the hobbyist buys that are (hopefully!) designed by people who know how to deal with high frequencies. E.g., you buy an RF module that does the scary radio stuff, and you control it from a microcontroller that is running an order of magnitude or more slower than the RF module, and whatever inputs and sensors and non-radio outputs you have are probably at least an order of magnitude slower than your microcontroller.
Those non-RF parts of the project are likely to be well in the realm where lumped element works.
Most of the rest of the maxims concern things that are mostly going to be a problem for big projects where you might be worrying about things like synchronizing things across dozens of subsystems and with very tight tolerances.
- dfox 3y agoIn digital circuits the “frequency” when the lumped model breaks down is determined by the slew-rate (ie. spectral content of the edges), not the bitrate/clock frequency. In the electronics hobbyist community there are many cases when you can run into that issue head first while just connecting modules together (because the whatever IC on the module has significantly faster slew-rate than you need). Another example are MCUs with somewhat high internal clock rates and their power requirements, even 20-ish year old dsPIC requires somewhat involved supply decoupling topology to work at all (and the quality of decoupling for ESP32 has direct effect on signal quality and how much of RF noise it spews out).
- dekhn 3y agoThe one situation where this seems to come up is that I'm using PWM duty cycle to control a constant current LED driver. Because my light is far too bright at full intensity, the driver has a PWM pin that lets attenuate that. however, because I'm taking extremely fast images (sub-millisecond exposures), if I use a low PWM frequency (<1MHz) I see image artifacts. I am trying 1MHz PWM (generated by my arduino) on a solderless breadboard, and I see flaky behavior when I increase the PWM beyond 250KHz or so. Things look fine on my scope, but the LED itself often doesn't behave as expected.