Hacker News new | ask | show | jobs
by nunuvit 1075 days ago
All you have to do is read the datasheet and multiply a few numbers to calculate worst-case power. Remembering to do that should be second nature, like remembering to close any parentheses you open. It's a great tool for understanding in greater detail, but it's not the way to avoid breaking stuff.
4 comments

"You won't make mistakes if you remember not to make mistakes" is nice in theory, but just not how people work in real world. Just like trivial syntax errors are very common while you're doing things. It's better to embrace the common human failures and have a second layer of protection.
I explained in my other comment how it's a great tool for other jobs, but the wrong tool for this job. You won't learn how not to break things by ignoring the proper tool.
You're not going to learn how not to break things this way, but it will help you spot non-critical mistakes while you're learning in different ways.
That's exactly what I'm saying.
if I was to give a kid a breadboard and a bag of components I wouldn't want them to avoid breaking stuff; what I would want is for the child to be able to interpret the event and gain knowledge from the mistake.

This idea can shift the paradigm from "oh, the LED doesn't work", to "Oh, the LED doesn't work, the color around that rectifier area has shifted; why?" , and I think that can help to build intuition.

So teach them to check the power and the paint will help them realize when they forget to do so.
what precisely is wrong with visual feedback?
Nothing. It's great. But it's the wrong tool for the job. Like teaching someone to stop a car by using the speedometer to estimate when to let go of the accelerator pedal, instead of introducing them to the brake pedal.
You are supposed to study datasheets before you start a car?

Please. There's nothing wrong with "hands-on first" approach. And the tortured metaphors completely kill your argument...

It's too late to edit my original comment. I was responding to the part about when you're breaking a lot of stuff all the time.

Checking limits is for preventing breaks. Visualizing heat is for troubleshooting when they happen anyway. You should do both.

> All you have to do is read the datasheet

Have you read many datasheets? Parsing a datasheet can be pretty complex, even if it’s well written (of which many are not). There’s quite a few figures spread across many sections, and a beginner might not even realize they should be looking for the absolute maximums section. Sometimes datasheets aren’t even that explicit about certain failure modes, you could lock up a logic chip by accidentally leaving a pin floating, for example.

I can certainly see some value in a breadboard with instant feedback for when you’ve fucked up. Ideally you’re using a power supply with an adjustable current limit to begin with but this is a cool way to quickly draw your attention to an issue.

It takes 5 minutes to show someone how to read maximum values off a datasheet, and it makes the visualization 100x more useful.
> All you have to do is read the datasheet and multiply a few numbers to calculate worst-case power.

True story: When I was in college the lab mate I had reversed unknowingly reversed power and ground on a chip on a breadboard. I turned off the circuit and reached for the chip and got a blister on my finger.

Maximum power is infinite in that case (well not infinite, but pretty damn high!) I don't recall seeing a data sheet on power consumption when power and ground is reversed...

No offense, but this comes across as "This was the way I was forced to learn it, and dang it everyone else should do the same." But my experience says, I wouldn't have got a blister on my finger if I had that.

Current was flowing through the "body diode" which is intrinsic to the construction of ICs (it's normally reverse biased). The forward voltage was likely around 0.6v, maybe a little higher with a lot of current flowing through it. So roughly that times however many amps the power supply could supply with the resistance of the leads/rails. It doesn't actually take that much power to make a DIP package extremely hot though, lacking any sort of heat sink.
I can't edit the comment now, but I worded it wrong. The quote only applies to exceeding maximum values. The visualization is much more useful if you've calculated worst-case. I use a thermal camera all the time.