Debugging 101
Moderator: Modulators
- falc0nhoof
- Noise Person
- Posts: 8
- Joined: Sat Jan 11, 2020 3:10 pm
- Been thanked: 2 times
Debugging 101
As I'm cheap and have "some" knowledge soldering together guitar pedal kits/stripboard layouts I made the move to eurorack modules. As I'm putting them together I find my success rate is about 50/50. Some have worked fine straight away, while others I've found a simple fix (wrong cap, incorrect IC direction etc.)
For others ... no such luck. They're still relatively simple modules but I just can't get them to work.
Does anyone have any simple guides on how to debug a DIY project, be it modular or otherwise?
For others ... no such luck. They're still relatively simple modules but I just can't get them to work.
Does anyone have any simple guides on how to debug a DIY project, be it modular or otherwise?
- NoiseWiki
- Wiki Bastard
- Posts: 3815
- Joined: Thu Apr 04, 2019 3:38 pm
- Location: Los Angeles
- Has thanked: 1092 times
- Been thanked: 1251 times
- Contact:
Re: Debugging 101
Well other than what you've described I'd grab a volt meter and use the continuity check to try to make sure the connections were being made through the traces. Note that if both sides of a path connect you won't know which end is open.
The other is use the voltage meter to check if voltages are what you are expecting or present at specific points in the circuit.
The other is to carefully recheck each component to make sure they are correct value.
The other is use the voltage meter to check if voltages are what you are expecting or present at specific points in the circuit.
The other is to carefully recheck each component to make sure they are correct value.
- crochambeau
- Merzwow
- Posts: 623
- Joined: Fri Nov 22, 2019 11:21 am
- Location: Cascadia
- Has thanked: 252 times
- Been thanked: 190 times
- Contact:
Re: Debugging 101
Debugging/troubleshooting is a developed skill. If you're tired or frustrated walk away, don't worry, it won't fix itself; you can return to it later.
I say that right out the gate, because in my opinion a fresh and open mind is the most important tool in the process.
I believe there are books on this subject, so all I'm going to put here is a little freewheeling spitballing. It is by no means a complete document.
Defining your failure mode can be helpful in deciding the order of operations, but bear in mind that process takes place in a pond full of red herrings. Never conclude, always suppose - this extends to a "fixed" object. Conclusions cloud the mind.
Hint: it's usually something incredibly stupid or simple.
All parts can fail.
With polarized parts (actives/semiconductors & capacitors) orientation of polarity is important, especially with caps. Many types of electrolytic caps will operate in reverse (so long as the voltage potential is not too large) and only fail over time.
If you're doing a lot of discrete transistor work, get a tester. There are some part numbers in existence that are EBC and BCE depending on either one trailing alpha character (or maybe even era of manufacture, I'm speculating but I know what I've seen).
Anyway, hope that helps.
I say that right out the gate, because in my opinion a fresh and open mind is the most important tool in the process.
I believe there are books on this subject, so all I'm going to put here is a little freewheeling spitballing. It is by no means a complete document.
Defining your failure mode can be helpful in deciding the order of operations, but bear in mind that process takes place in a pond full of red herrings. Never conclude, always suppose - this extends to a "fixed" object. Conclusions cloud the mind.
- Trace power. Follow the power rails from inlet to destination (a voltmeter should be the most primitive tool under use in this process). Do not forget "common/ground/0v" as a power rail, it is equally important and often the reference from which every single stage and aspect (such as signal) operates.
- Trace signal. I like to use an oscilloscope for this (and tracing power), but most people are not always within reach of such an instrument - so an audio probe will work. An audio probe amounts to a NON-POLARIZED capacitor affixed to an audio cable or jack on one side, and a pointy metal probe on the other; there is also the common/shield/ground connection which should amount to a simple wire with alligator clip you can connect to the COMMON on the circuit under test. Then it's just a matter of plugging the audio output side into a functional amplifier of some sort and listening to various parts of the circuit.
I like to start in the middle (from the schematic or signal path standpoint), that way I have an idea of which direction a given fault lies.
Do note, again, that there are pitfalls to making any conclusions at this point. Example: the input node of an inverting summing amplifier built upon conventional operational amplifier technology will often read as "0 volts" and not produce a sound through our snazzy audio probe. You'll read signal up to a resistor and then nothing on the other side, but changing this resistor solves nothing - that's because this node is held at 0 volts by a flow of current, the intensity of which changes in relation to the signal - and is in essence invisible without the current to voltage conversion that will happen across a resistor. Simply jump that point and read downstream, etc..
Hint: it's usually something incredibly stupid or simple.
All parts can fail.
With polarized parts (actives/semiconductors & capacitors) orientation of polarity is important, especially with caps. Many types of electrolytic caps will operate in reverse (so long as the voltage potential is not too large) and only fail over time.
If you're doing a lot of discrete transistor work, get a tester. There are some part numbers in existence that are EBC and BCE depending on either one trailing alpha character (or maybe even era of manufacture, I'm speculating but I know what I've seen).
Anyway, hope that helps.
- falc0nhoof
- Noise Person
- Posts: 8
- Joined: Sat Jan 11, 2020 3:10 pm
- Been thanked: 2 times
Re: Debugging 101
I sort of posted this and forgot about it for a few months but I must say the two responses were pretty awesome.
First thing I did was get an oscilloscope and second thing I did was step away from the projects for a week. When i returned I found two glaringly obvious problems that I must have stared at for ages only to find it within 5 minutes of sitting down after a break.
For many of the SMD projects (I had about 5 non working eurorack pcbs by then), these were fixed by simply reflowing the joints on the board especially around the main firmware chip. So that only left 1 which I used the oscilloscope to trace back to a bust up electrolytic cap.
What a rush!
First thing I did was get an oscilloscope and second thing I did was step away from the projects for a week. When i returned I found two glaringly obvious problems that I must have stared at for ages only to find it within 5 minutes of sitting down after a break.
For many of the SMD projects (I had about 5 non working eurorack pcbs by then), these were fixed by simply reflowing the joints on the board especially around the main firmware chip. So that only left 1 which I used the oscilloscope to trace back to a bust up electrolytic cap.
What a rush!
- Indeterminacy
- Merzwowow
- Posts: 856
- Joined: Mon Jan 06, 2020 8:45 am
- Location: B-52D Tail Gunner
- Has thanked: 3 times
- Been thanked: 273 times
Re: Debugging 101
Finding out shit that defies logic theoretically but real world reality teaches you a lesson.
Fuck these fucking little pieces of shit.
Volume is a fantastic thing,
Power and volume - Pete Townshend
Power and volume - Pete Townshend
- NoiseWiki
- Wiki Bastard
- Posts: 3815
- Joined: Thu Apr 04, 2019 3:38 pm
- Location: Los Angeles
- Has thanked: 1092 times
- Been thanked: 1251 times
- Contact:
- crochambeau
- Merzwow
- Posts: 623
- Joined: Fri Nov 22, 2019 11:21 am
- Location: Cascadia
- Has thanked: 252 times
- Been thanked: 190 times
- Contact:
Re: Debugging 101
Bit by an octal packaged silicon rectifier?
Illustrates malformed or incomplete logic, yes. Lesson learned? That is on the student.Indeterminacy wrote: ↑Wed Dec 09, 2020 12:36 amFinding out shit that defies logic theoretically but real world reality teaches you a lesson.
- Indeterminacy
- Merzwowow
- Posts: 856
- Joined: Mon Jan 06, 2020 8:45 am
- Location: B-52D Tail Gunner
- Has thanked: 3 times
- Been thanked: 273 times
Re: Debugging 101
crochambeau wrote: ↑Wed Dec 09, 2020 8:07 am
Bit by an octal packaged silicon rectifier?
Illustrates malformed or incomplete logic, yes. Lesson learned? That is on the student.Indeterminacy wrote: ↑Wed Dec 09, 2020 12:36 amFinding out shit that defies logic theoretically but real world reality teaches you a lesson.
But when your signal out the waveguide/cable is spec on, you then have to go figure out what has happened
to the transmitted signal strength.
Boss you are not going to fucking believe this...........
Volume is a fantastic thing,
Power and volume - Pete Townshend
Power and volume - Pete Townshend
- crochambeau
- Merzwow
- Posts: 623
- Joined: Fri Nov 22, 2019 11:21 am
- Location: Cascadia
- Has thanked: 252 times
- Been thanked: 190 times
- Contact:
Re: Debugging 101
I had a similar experience (albeit on a smaller scale) with mice, cat food, and a tape machine.Indeterminacy wrote: ↑Wed Feb 17, 2021 1:04 pm
Boss you are not going to fucking believe this...........
- Indeterminacy
- Merzwowow
- Posts: 856
- Joined: Mon Jan 06, 2020 8:45 am
- Location: B-52D Tail Gunner
- Has thanked: 3 times
- Been thanked: 273 times
Re: Debugging 101
Be alert for things that may not be causing an issue but quite possibly may.
If it looks wrong it quite possibly is.
Possibly is the operative.
If it looks wrong it quite possibly is.
Possibly is the operative.
Volume is a fantastic thing,
Power and volume - Pete Townshend
Power and volume - Pete Townshend