-
It works
05/07/2023 at 02:49 • 0 commentsHaving connected my power rails correctly this time, I was able to connect an oscilloscope and check to see if it was functioning. Well, signal went in, signal came out. The compression (threshold) knob did appear to influence the level. That was about as far as I was going to get with that.
I assembled all the components and putting things together. Usually I adhere my boards to the back of the pots with a strip of automotive molding tape. It holds much much better than even the heavy duty double sided tape, I've found. Except this time there was a problem. Big gap on one side.
I had previously met a guy, marcus, at the makerspace and he was there working on his violins. I asked if he had any scrap about the 1/4 inch and to my surprise he did. He gave me a piece, I cut an even smaller piece with a hacksaw and used the tape to use it as a riser for the other side of the board. I managed to assemble everything without breaking anything and set of to go home to test it.
To my surprise, it worked mostly as expected. When pushed too far it more or less becomes an overdrive, but there are certainly some functional spots below that. I tested it with the percussion on a casio keyboard I had and it seemed to thicken it up nicely. I also tested it on guitar. It gave some usable tones although certainly more on the agressive side. Strangely enough, there was low enough noise it could be used going into an overdrive.
Knowing that it worked, I ate dinner than started submitting the project, because when better to do an entire project than the very last day its due?
-
It doesn't work
05/07/2023 at 02:39 • 0 commentsAfter assembling the whole board, I connected it to the power supply to be astonished to see it reading 150ma at 9v. Hm. Seems a bit high. I took out the op amp and checked without it - there was no significant draw. So there was something wrong with the op amp I thought. Well, I have a bunch of them? I decided that the best path of action would be to lift up the pins from each quadrant of the op amp and only plug in the other three. I cycled through all four only to find that the draw remained the same. Most puzzling. I double checked my schematic, my layout and my components. Everything was where it was supposed to be. Hm. I had damaged one of the pins in the process and replaced the ic with another. Similar results. Then I noticed it, I had connected my 9V line to the 4.5v rail. Oh.
-
Assembling the board
05/07/2023 at 02:34 • 0 commentsThis is very similar to assembling any pcb, it's just a matter of putting the parts in the correct places. With stripboards I find it's best to build bottom up. That is to say the lower a component is, the higher the priority that it needs to be placed. This is especially true if you're not using a helping-hands and have to balance the board on a desk to solder it. I was this time so I started with all the resistors.
There was a section I had where I routed one resistor underneath another that was jumping a trace cut. Probably not the most elegant solution but it can save a couple rows, and make your life easier in the future when you have to figure out how to get it all to fit.
I assembled all of the passives without trouble and then moved onto the actives. I started with the transistors. My transistors are of dubious quality so I tested both of them before adding them to the board. Both tested around 200hfe. Which is good, but I've always found it strange that 2n3904's seem to pretty reliably make those numbers when the datasheet only calls for 30. It's as though the datasheet is just the words "it's a transistor alright".
I thought about soldering in the LM324 directly, but this time thought better of it which would save me in the next part.
-
Making the stripboard
05/07/2023 at 02:28 • 0 commentsActually assembling a stripboard is a somewhat therapeutic process. I started with cutting the board to the size needed. To do this you score along a line of holes, as well as the bakelite on the exact other side. Then you can usually just snap it using your hands or against the edge of a table. I broke the board to the size needed and then sanded all the edges flat. Then I rounded off the edges and corners. It's absolutely not necessary for this part of the process, but something about it makes me happier with the end product.
Next is the important part. Placing the cuts. Now if you're really clever you can probably flip the drawing of the layout in your mind and know where to place all of the cuts. I am not really clever. I just go back into diylc and make a copy of the board and all the components on it below the original. Then I delete all of the components and comments making sure not to delete the cuts. Then I select the now barren clone, right click and select Transform>mirror horizontally. I suppose you could do vertically as long as you can keep track, but I seem to like horizontal better.
Then it's just a matter of marking out all of the locations of the cuts on the copper side of the board with a marker. Marking them out makes it much much harder to accidentally slip a position and put a cut somewhere you didn't intend. Originally, I would make these cuts with a hobby knife. It's not the most reliable method and it doesn't look the best. Instead, it's better to wrap a drill bit that's slightly larger than the copper row with tape to make a handle. You can then spin it on top of your markings and with light pressure it will drill just enough to take off a round little cone of the copper trace. Get all of these done and your board is ready for assembly.
-
Designing a Layout
05/07/2023 at 02:19 • 0 commentsGenerally when I build a circuit myself there are two ways I design the boards. If a design has a relatively high complexity I use kicad to design a pcb and engrave the boards myself. This circuit was below the complexity where that seemed to matter.
It was a matter of using a program called diylayout creator (it used to detect as a virus for some reason so, you know, heads up). Building a circuit with diylc is more of a challence of seeing just how small you can get the circuit. It's a lot like playing that old game where you have to move the blocks around to get another block out. You just have to start somewhere and keep moving things around until you get it all to fit.
Generally speaking, quad op amps make for poor stripboard layouts. the power rails being right in the middle of the ic wastes a few lines just getting power there. With two dual ics you have the option to flip one upside down and have them both share the same ground or power bus. Either way, I managed to whittle down my width to about 22 rows, or just over 2.2 inches. Unfortunately this wouldn't fit in the 1590b size box that I had been planning on using.
Luckily, I had a 125b box on hand that I'm much more fond of using - that extra bit of space makes it so much easier to fit jacks and such things on - the depth makes it so you can have several components overlap if you need to. I was also in luck, - forgotten to me the enclosure had already been drilled for knobs and such in exactly the amount I needed.
Once I had settled on a board design I needed to start on actually making the board.
-
Creating the Circuit
05/07/2023 at 02:11 • 0 commentsI'm not really sure how I went about doing this, or even why. But I decided that I needed a functional compressor with a minimal parts count So I did. Bipolar transistors are not happy being used as compressive elements it seems, I basically formed this section by banging on ltspice until I had a functional circuit come out. There were a lot of different iterations of "what if I did this, or what if I did that" and I tried them all, one after another to get what's there.
The design aesthetic I decided upon while designing this was minimum of parts to get it to function. All of the op amps are inverting topology because it meant that I could just direct connect a 4.5v or 0v line to each non inverting input, thus saving myself the extra resistor that would have come with a non inverting topology.
When I got the circuit really close to what I thought it should be I made the decision to import and run some drum loops though the ltspice simulation. What I found was that the release of the envelope wasn't nearly fast enough and that it hadn't fully relaxed itself between beats. I had to cut the envelope capacitor from a 10uf to a 1uf.
I was concerned about how much distortion would be on the output. My simulations with sine waves had shown that it should top out around 7 percent when running near the detection threshold, but real audio seemed to show that it needed more mellowing than I had thought, hence the decision to add more dry signal to the final blend.