An easy way to conceptualize active filters is thinking about audio speakers. A speaker crossover has a low-pass, high-pass and band-pass effect breaking a signal into three components based upon frequency. In the previous part of this series I took that idea and applied it to a Universal Active Filter built with a single chip opamp based chip known as the UAF-42. By the way, it’s pretty much an older expensive chip, just one I picked out for demonstration.
Using a dual-ganged potentiometer, I was able to adjust the point at which frequencies are allowed to pass or be rejected. We could display this behavior by sweeping the circuit with my sweep frequency function generator which rapidly changes the frequency from low to high while we watch what can get through the filter.
In this installment I’ll test the theory that filtering out the harmonics which make up a square wave results in a predictable degradation of the waveform until at last it is a sine wave. This sine wave occurs at the fundamental frequency of the original square wave. Here’s the video but stick with me after the break to walk through each concept covered.
Today I am experimenting with a single chip Universal Active Filter, in this case I made a small PCB for the UAF-42 from Texas Instruments. I chose this part in particular as it facilitates setting the filter frequency by changing just a pair of resistors and the somewhat critical values that are contained on the chip have been laser trimmed for accuracy. This type of active filter includes Operational Amplifiers to supply gain and it supports various configurations including simultaneous operating modes such as Band Pass, Low Pass and High Pass make it “Universal”.
UAF421 Universal Active Filter
UAF421 Universal Active Filter using a dual ganged potentiometer.
Looking at the block diagram you can see where I have inserted a dual-ganged potentiometer to change both resistors simultaneously which should allow a straight forward adjustment for our purposes here.
Looking into the components of a simple RC filter which can easily implement a simple Low Pass or High Pass filter, we see that the math is fairly straight forward and swapping the components with each other is all that is needed to change the type of filter. Continue reading “Universal Active Filters: Part 1″→
This year’s CES has dredged up some memories. I had assumed that as one becomes old they are supposed to become used to memories of a young vigorous person that shared their body and memories leaving little else except some scars and some old stale socks lying around plus 2 or 3 pictures to prove it was in fact not a series of hallucinations. Turns out you don’t get used to it, you just endure.
30 Years ago was our CES: Commodore had the reputation of showing something new every CES and this was a time when a Home Computer meant a Consumer Computer. I have written before about how we endeavored to make sure other’s failures didn’t become ours and we did in fact make it, just in time, to the ’85 CES with what became our flagship computer, at least for the next 4 days.
To the Very Last Minute
1985 Commodore CES Booth
Commodore 1985 CES Booth: an “elegant” grey and yellow battleship parting the CES seas. (Marketings’ idea)
Putting 85 CES together. Pics courtesy of [Terry Ryan]
When I say made it just in time I am counting people hand carrying the last ten or so homebrewed and MOS cooked 80 column chips either the night before or that very morning. The C128 computers where waiting lined up and open in the room seen below; cases agape much like a row of baby birds waiting on whatever engorgement MOS had come up with for us as the seconds counted down.
And then finally we stood on the second floor of our booth (yes they built a 2 story structure for us in a couple of hours the night before) surveying the now working computers; C128’s and the never released LCD machine, when the last “issue” before the doors opened arrived; a Marketing person (panting) telling us of “yet another C128 failure” though she couldn’t actually point to any previous computers that had failed. We wouldn’t let her continue with her complaint until she retracted the previous general statement of failure, more on principle than actual meanness.
As with most highly technical in-the-field fixes this one was something to remember. My last act of “the ’85 CES show” became the simple motion of walking up to the “failed” computer station and pressing the key changing the C128 back to 40 column mode, especially important since it only had a 40 column monitor attached to it.
End of Line
Then something happened: We were done. I felt sub-processes actually end that had been consuming both CPU and I/O for months, I was suddenly unencumbered by the next “must fix”. I didn’t have a next task to pop from the stack… the phrase “End of Line” came to mind.
I was 24, in Las Vegas and had just delivered one of the major products for the best computer company in the world to the only show that mattered to us. I started walking towards the door with the uncommonly bright Las Vegas sun streaming through the windows. There were lines of people around the block waiting to enter, but the exit was completely unobstructed.
I buried myself in Las Vegas in a way that only youth, testosterone, and adrenaline can enable.
Making the Rounds
I won’t report here much of what all was done over the next days as I understand that for some things the statute of limitations never truly runs out, but inspired by [Mike’s] reporting of visiting the suites of the companies I will relate one small tale here: I had grabbed my best friend and fellow hardware designer who was the father of the 1581 disk drive, also successfully released on this day, and headed out. With the 6’8” [Greg Berlin] (grandson of the designer of the Curtis Wright P-40 Warhawk) in tow we started hitting the floors of the local hotels looking for the suites of the “important” companies that never managed to personally invite us. We had a secret weapon that opened doors as if bribed; not in Greg’s towering presence but in the simple phrase: “we’re from Commodore”.
Doors fully opened that had previously opened only 12-14 inches only to stop on the shoe of the doorman, and 5.25” floppies were stuffed in our pockets like the $20 bills of a VIP trying to impress his date. The suite that comes to mind was that of Electronic Arts (EA). With backslaps and copies of this year’s (and a few of last year’s) C64 game floppies shoved in our pockets we were welcomed like old friends; appointments were made and more than a couple of chugging contests were held. They lost or at least didn’t better us as we were young and full of testosterone.
As we made ready to leave the good folk of EA, after making sure that we would swing by their booth the next day (we did), they asked if there was anything they could get for us. This may sound like a strange or gratuitous question but I had already spied the case of Michelob (a beer from the early days of 1 micron silicon) and was pointing to it before the question was fully uttered. EA grabbed the case with no hesitation as I turned to face the door so he could set the case of teardrop shaped bottles on my shoulder for me.
Back out into Las Vegas we went with Electronic Art’s beer on my shoulder… It was a good CES.
You might notice that many of my writings start with “Back in the day”. Not wanting to disappoint I will say that back in the day we used to use wire wrap technology when we needed a somewhat solid, somewhat reliably assembly. Given a readable schematic a good tech could return a working or near-working unit in a day or two depending on the completeness and accuracy of the schematic.
Properly done a wire wrap assembly is capable of fairly high speed and acceptable noise when the alternative option of creating a custom PCB would take too long or not allow enough experimentation. Wire wrap is also used in several types of production, from telco to NASA, but I am all about the engineer’s point of view on this.
My first wire wrap tool and wire wrap wire came from Radio Shack in the mid 1970’s. I still have the wire, because frankly its kind of cheap wire and I use it when it’s the only thing I can reach quickly when I need to make a jumper on a PCB. The tool is still around also, given the fact that I can’t find it at the moment the one shown here is my new wire wrap tool which is good for low quantity wrapping, unwrapping and stripping.
The skinny little wrap tool is okay for hobbyist as the wraps are fine with a little practice. But I do recommend investing in high-quality wire. A common wire available is Kynar® coated, a fluorinated vinyl that performs well as an insulator.
Before I go too much further, here’s the video walkthrough of wire wrap, its uses, and several demonstration. But make sure you also join me after the break where I cover the rest of the information you need to start on the road to wire wrap master.
One of the acronyms you may hear thrown around is DDS which stands for Direct Digital Synthesis. DDS can be as simple as taking a digital value — a collection of ones and zeroes — and processing it through a Digital to Analog Converter (DAC) circuit. For example, if the digital source is the output of a counter that counts up to a maximum value and resets then the output of the DAC would be a ramp (analog signal) that increases in voltage until it resets back to its starting voltage.
This concept can be very useful for creating signals for use in a project or as a poor-man’s version of a signal or function generator. With this in mind I set out here to demonstrate some basic waveforms using programmable logic for flexibility, and a small collection of resistors to act as a cheap DAC. In the end I will also demonstrate an off-the-shelf and inexpensive DDS chip that can be used with any of the popular micro-controller boards available that support SPI serial communication.
All of the topics covered in the video are also discussed further after the break.
I became aware of harmonics and the sound of different shaped waveforms early in my electronics career (mid 1970’s) as I was an avid fan of [Emerson Lake and Palmer], [Pink Floyd], [Yes], and the list goes on. I knew every note of [Karn Evil 9] and could hear the sweeping filters and the fundamental wave shapes underneath it.
I remember coming to the understanding that a square wave, which is a collection of fundamental and (odd) harmonics frequencies, could then be used to give an indication of frequency response. If the high frequencies were missing the sharp edges of the square wave would round off. The opposite was then true, if the low frequencies were missing the square wave couldn’t “hold” its value and the top plateau would start to sag.
Like parents standing on the porch waiting to see their children off to their first day of school we waited for what comes next in a release to production. Among our children: The C116 ($49 Sinclair killer), the C264 ($79 office computer), and the V364 – The computer with an interactive desktop that could speak (courtesy of [John Fegans] who gave us the lion’s share of what made the C64 software great).
Something happened then, and by something I mean nothing. Nothing happened. We waited to assist in production builds and stood ready to make engineering change notices, and yet nothing happened. It was around this time that [Mr. Jack Tramiel] had left the company, I know why he left but I can’t tell due to a promise I made. Sadly, without [Tramiel’s] vision and direction the new product releases pretty much stopped.
Meanwhile in Marketing, someone came up with the idea to make the C264 more expensive so that they could then sell it for a prohibitively high price in. They changed the name, they told us to add chips, and they added software that (at best) wasn’t of interest to the users at that price. They wanted another C64, after all it had previously been the source of some success. Meanwhile the C116 and the V364 prototypes slowly melded into the random storage of a busy R&D lab. We literally didn’t notice what had happened; we were too busy arguing against abominations such as the C16 — a “creation” brought about by a shoving a TED board into a C64 case (the term inbred came to mind at the time).