|
|||||||
| Home | Forums | Rules | Articles | Store | Gallery | Blogs | Register | Donations | FAQ | Calendar | Search | Today's Posts | Mark Forums Read | Search |
| Equipment & Tools From test equipment to hand tools |
|
Please consider donating to help us continue to serve you.
Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving |
|
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
diyAudio Member
|
I've been looking at audio test equipment such as the Heathkit IG-18 and HP239A/339A, Bob C's analyzer, and something that comes to mind is that it would be much better to have computer control of these instruments. Anyone who has done tedious measurements at multiple frequencies knows how time consuming it can be. It would be excellent to have software scripts to do frequency sweeps, etc. I remember in the old Mac clinics that they would test distortion at 20 Hz, 1 k, and 20 kHz, then smoothly connect them. GPIB is the obvious choice, but is complex, I'd probably go for a very simple parallel interface and control it from Visual Basic on a PC or a microcontroller. I can see this as a huge time sink so I doubt that I'll do it anytime soon.
Anyone know of a bargain priced small signal relay? It has been a while since I looked for them. |
|
|
|
#2 |
|
diyAudio Member
|
Pete,
I've been using Agilent's VEE software. I purchased the student version for $75 (I don't know if they will make it available for that price to everyone - I'm an adjunct faculty at a University). Pete Millet gave me copies of his HP8903A control interface in native VEE. With that and stuff I made, I can run the 8903A along with a 3562A spectrum analyzer to get good consistent results for FFT plots. I'm happy to share my native VEE visual code. Ken |
|
|
|
#3 |
|
diyAudio Member
|
Thanks Ken, I'll be in touch if I ever move a computer controlled version along.
I'm leaning toward just getting a better sound card with ARTA which would obviously be computer based but I will get in touch if I ever do the computer controlled analog unit. |
|
|
|
#4 |
|
diyAudio Member
Join Date: Mar 2011
Location: St Louis, Mo
|
Pete, I share your sentiments but also estimate that the task of creating an effective computer-control interface will require as much effort as the instrument's original design.
I think you're aware the task logically divides into three efforts. For those following the thread, they are:
Dale p.s. - The surplus and closeout vendor "All Electronics" often seems to have a fair assortment of small-signal relays. The DIP-socket and "sugar cube" styles often sell for around US$1 (+/- 3 dB). Of course, sometimes you have to contend with non-standard pinouts or strange coil voltages but that's tolerable for preliminary experiments to investigate feasibility. |
|
|
|
#5 |
|
diyAudio Member
|
Hi Dale, that is a lot to read and you've made a lot of assumptions.
I've been doing digital design as my main profession for about 30 years and am fully aware of the issues you bring up. Relays: I took a look at relays and as I've found in the past it seems that Omron has the best offerings at reasonable prices from surplus houses and ebay. About a buck a piece, even less if you don't mind a 24V coil. The relays might end up being less expensive than some of the selector switches that are used in these complex instruments. Interface: The obvious solution is USB. However, my plan would be to use a very simple byte wide parallel bus inside the unit, employing ribbon cable with multiple connectors to go from board to board within the unit. It can VERY easily be adapted to a PC printer port where the front panel and scripted controls are a window on the PC. Probably a VB program just to keep it simple and easy to program. This bus could alternatively go to a very simple microcontroller inside the unit to provide USB and/or front panel encoders, display, etc. interfaces, even GPIB. A Basic Stamp comes to mind as very easy to program and there are eval boards with a proto area that would work fine. Octal registers would hold the control data clocked by a strobe that is only active when loading the register - no free running clock on the analog board. The bus would use a standard PC floppy connector and cable since prefab cables are available inexpensively for PCs or can be salvaged from junk PCs. Not the hardware interface just the cable. Let me explain how I got to computer control and it is good to use an example. I was thinking of doing a PC board for the HP239A, then thought how time consuming it would be to make up all the selector switches, and the general hand wiring. This combined with how time consuming it is to do tests with a manual instrument led me to computer control with just the parallel interface to a PC. The HP239A is already mostly switched for frequency selection so there is no need to compute values just replace selector switches with relays. There is one variable pot for fine frequency selection that could be replaced with a scaled version of the other resistive switch. It would be much more efficient to make the resistive elements just a binary weighted ladder but then the software would be a bit more complex. Everything would go on one circuit board to keep lead length short and simplify assembly. The interface for an oscillator would have frequency, and amplitude as controls - should be easy to program. I really, seriously dislike modern equipment where you have to go through levels of menus to get to a control. DIY you can tune the UI however you want. I disagree with your statement: "estimate that the task of creating an effective computer-control interface will require as much effort as the instrument's original design." as long as you follow a keep it simple approach. There are USB to parallel port adapter cables but I'm not sure if they'd work with whatever code I developed. I'd have no plan initially to have it work with Lab View but I'm sure someone could write a driver for it. Here is an AVR microcontroller development board with a USB interface: Just add a connector for the proposed parallel interface bus in the prototyping area. http://www.sparkfun.com/products/32 PIC with USB: http://www.sparkfun.com/products/8562 Last edited by PB2; 10th August 2011 at 04:37 AM. |
|
|
|
#6 |
|
diyAudio Member
|
I'm leaning toward using an old laptop as the display/controller for this project and remembered that even a fairly old P4 based one that we have here only has USB - no parallel or serial port. We actually have a perfectly good P2 based laptop from about 1997 that DOES have both printer and serial ports. The STAMP software environment runs on it and I'm fairly certain that VB 6 will also run under Win98, LOL!
Anyway, the printer port is fine for debugging but someday that PC will fail and a USB solution would be needed. I have a USB to serial cable (Parallax USB to Serial (RS-232) Adapter) that works with the newer laptop connected to a STAMP eval board that should be fine to handle a simple serial protocol for writing and reading to/from registers on the parallel bus. An advantage of using a simple text based serial port interface is that most programming environments support them without any sort of special driver. You could even hook up a dumb terminal to read and write registers. These STAMP boards can be found on ebay fairly cheap: "Three" Basic Stamp Homework Boards | eBay I decided to dive into the STAMP world a few years ago and quickly found that the lack of interrupts or multitasking makes it impossible to do any sort of complex task. I programmed it to decode an IR remote control stream but there was no efficient way to do this and simultaneously monitor a front panel encoder for example. I am confident that the STAMP can provide the basic interface from a serial port to a parallel bus but not much more. It would be nice to have the micro measure the frequency of the oscillator for example so that the control program can fine tune the frequency. This is easy to do with a PIC; there are many examples on the net but not with the STAMP. I tend to agree with this perspective on programming especially with larger computers such as PCs: Mike's MicroController WebSite I remember the days of Borlands compiled Turbo Basic and it would make much more sense for the code to be compiled for these micros rather than interpreted. Even VB is compiled. I also purchased a BX-24 that is pin compatible with the STAMP but programmed in a flavor of BASIC that is a subset of VB. I've not moved much further with the BX-24 and they don't seem as popular as they were in mid 2000. They are AVR based and I think you can program them in the native AVR environment also. Edit: Just stumbled onto this discussion of ZBasic for the AVRs which might be a better solution than BASICX: http://oakmicros.com/content/index.php A simple AVR proto board with AVR Studio IDE (free) probably makes more sense as it is more cost effective, and I have one around here also in case I decide to add more features but it is only programmed in C or Assembler. A free VB environment on the PC would be nice and I think it is VB 2010 Express that is free from MS, toward the bottom of the page: Compare Visual Studio 2010 Products | Microsoft Visual Studio However, I believe that VB6 is better but unsupported and not free. It's been some time since I did any VB programming. Last edited by PB2; 13th August 2011 at 02:53 AM. |
|
|
|
#7 | |
|
diyAudio Member
Join Date: Apr 2010
|
Quote:
5VDC Relays-The Electronic Goldmine Later you mentioned using 24V or other coil voltages, they got those too: Relays-The Electronic Goldmine For "high quality" contacts this looks interesting: RK1-24V High Frequency 24VDC Relay-The Electronic Goldmine As far as computer control, interfacing and whatnot, if you're willing to throw money at it there's National Instruments software which has a visual programming language. I've only used it in a couple of seminars, but it's impressively easy to come up with some neat and useful on-screen controls, interfaces and displays. It was made to quickly do exactly what you want to do. On the other hand, if you just wanted to spend money and get the job done, Audio Precision would be just about the only choice. Of course the big drawback of such a system is it takes away all the fun of doing it yourself. |
|
|
|
|
#8 |
|
diyAudio Member
Join Date: Mar 2007
Location: Canandaigua, NY USA
|
IMO, designing the instrument interface hardware makes it too hard a project, at least for most people. One should either get an AP system (hey, problem solved!), a good sound card, or go with GPIB/HPIB and dedicated instruments. I use the HP8903B for most things. Control is cheap and easy using the Prologix GPIB/USB converter. I write my control software with PowerBASIC, which is quite similar to VB in syntax, but offers vastly more in terms of structure and performance. Think power and low level capabilities of C++ but with the more reasonable syntax of basic. That also lets me set up tests with my HP meters and counter. If I had an arb generator, my life would be complete.
(PB2, if you remember those old Mac clinics, you're as old as I am! They were a big thing back in the day. I still have my hand plotted 4-point "printout" from when they did my scratch built Tiger amp.)
__________________
I used to be an audiophool like you but then I took an arrow to the knee. Last edited by Conrad Hoffman; 13th August 2011 at 04:51 AM. |
|
|
|
#9 | |
|
diyAudio Member
|
Quote:
I was thinking of the Omron G6S line of relays. You have to be careful of minimum current ratings. Your speaking of Labview it seems, that is not a free package and it would require writing a driver perhaps something only NI can do. On the other hand the Student version is inexpensive, does anyone know if the tools/documentation for writing a driver are included with the software? Last edited by PB2; 13th August 2011 at 06:54 AM. |
|
|
|
|
#10 | |
|
diyAudio Member
|
Quote:
I have designed, debugged, microcoded, and written test software for custom floating point and graphics processors. The digital interface design for this is totally trivial, IMO. I'm thinking now of doing a notch filter first to use as a distortion magnifier, as Bob calls it (not the same as his DM), in front of a PC sound card based system. This capability should make it possible to then test other parts of a complete system if I decided to go ahead with it. On the other hand, if I did a notch filter with auto tune such as Bob's then I've done most of a THD analyzer. Might be interesting to do the autotune in the micro - if possible. I'd try to get the residuals down in the notch filter with better OP amps. Computer control and having a state variable filter design makes it trivial to put a band-pass or low-pass after the oscillator, has anyone tried this? Obviously the bandpass has to have lower residuals than the oscillator. How did your Tiger amp do at the clinic by the way? Last edited by PB2; 13th August 2011 at 07:08 AM. |
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Excess Audio Test Equipment | 1audio | Swap Meet | 5 | 29th September 2011 09:13 AM |
| Audio Test Equipment | Akrib1s | Swap Meet | 0 | 21st April 2011 01:50 PM |
| Any hifi equipment which plays computer made CDR/MP3 audio? | Bull | The Lounge | 2 | 2nd May 2004 02:06 PM |
| Old test equipment f.s. | Cobra2 | Swap Meet | 0 | 4th March 2004 06:15 PM |
| New To Site? | Need Help? |