Covered Topics

Please see the list of the topics I've covered. It's located near the bottom of the page. Thanks for stopping in!!
Showing posts with label LabVIEW. Show all posts
Showing posts with label LabVIEW. Show all posts

Sunday, August 15, 2010

Mouse Movement Emulator - An Automated Test Fixture


A while back, I posted a blog entry detailing a serial relay control fixture for automated testing. That device contained 48 relays that were individually controlled by RS-232 commands. A PC running LabVIEW software issued the control signals in the proper sequence, and collected and logged all data. One of the peripheral devices the serial relay fixture controlled was the mouse movement emulator described herein.

I designed this mouse movement emulator prototype - as seen in the picture - to generate signals for mouse movement, "left button clicks" and "right button clicks" without any human intervention required. The fixture consists of an optical mouse, two "dip" type relays, a vibrator motor to shake the mouse, and a resistor to reduce the current from a 12 volt supply to a safe level for the vibrator motor - which is rated for only 3 Vdc. The relays came from "in-house" parts stock; the vibrator motor, resistor, and aluminum chassis box were all bought from a local electronic supply house. A ceramic disc capacitor, visible in the picture, is connected across the motor's terminals. This capacitor, in conjunction with the current limiting resistor, forms a low-pass filter and helps supress electrical noise from the motor brushes.

The motor and relay control signals are transmitted through a 5-conductor cable which I made from separate pieces of hookup wire twisted together using an electric drill. The mouse signals are transmitted via the original gray colored shielded mouse cable. I threaded these two cables through a length of woven sheathing to keep them neat and tidy. A small section of the sheathed cable is visible in the lower left hand side of the picture. The cable is terminated in a male D-SUB connector which plugs into the serial relay control fixture.

Together with the serial relay control fixture and a PC running LabVIEW software, this device successfully exercises the mouse functions of the units under test (UUTs) WITHOUT a human being present to observe the test and/or operate the mouse.

Benifit for the project I was working on:
This unit made possible FULL automation of engineering design verification tests as well as manufacturing testing.

Friday, July 2, 2010

Serial Relay Control Fixture



During my career as an electronic technician, I built many different test fixtures for both engineering and production testing. One thing nearly all automated test set-ups need is some PC-driven interface for controlling power and signals during testing. Enter the serial relay control fixture.

The serial relay fixture detailed here is used in an automated test tower to control power and signals to and from each of up to 8 assemblies, or units being tested (UUTs). This device consists of a 12 volt power supply, six RS-­232 relay boards, connectors for each type of port, and quite a bit of inter­connect wiring - all contained in an aluminum housing. As is shown in the above photo, there is both an exhaust fan as well as a filtered air intake port for ventilation. The cover is reversed in the photo showing the opened box - when assembled, the fan is normally positioned near the power supply to quickly remove the heat it generates. Each of the serial relay boards is uniquely addressable and contains 8 relays. Each of the relays is a DPDT unit which can be individually controlled with RS­232 commands. Since there are six boards in the fixture, there are a total of 48 relays available for use.



Eight of these relays controlled power to each of the UUTs, most of the remaining ones switched signals between the UUTs and various pieces of gear. The RS-232 relay boards, a "commercial off-the-shelf" item, are PIC microcontroller based. These boards were designed such that up to 255 of them may be connected in parallel off the same RS-232 buss. Prior to being interconnected in this way, each one must be programmed individually by connecting it to a PC and assigning it a unique identifier number (address). Once this is done, each board can remember its address even if power is disconnected.

This fixture, as well as the complete refrigerator-size test tower it is a part of, is controlled via a Windows PC running LabVIEW software. The LabVIEW code performs two essential functions: it handles all the signals which control the sequence of the tests, and performs data acquisition via test gear equipped with GPIB or RS-232 ports. Each of the UUTs also communicates with another of the the PC's serial ports through a 16 port serial console switch - also controlled via the LabVIEW program.

While this serial relay control fixture was strictly used for control of an automated test tower, one could clearly use this same technology to accomplish other tasks - such as controlling industrial processes, or performing building automation functions.