06-04-2007 08:17 AM
06-05-2007 06:44 PM
06-06-2007 06:44 AM
Would simply introducing a 5v power supply to the switch (with a resistor of course) so that when the switch closes, 5v passes through, but when open, nothing? Or does the TTL signal actually have a closed but 'zero' voltage value?
I can go with a TTL circuit, that's absolutely fine, just the reed switch seems so simple and applying a voltage would be easy.
Here is the scope of what I'm trying to do so that perhaps you can offer some direction:
One shaft will be spinning at 12,000 RPM. On each end of that shaft is a bearing in a housing. In each bearing are several rolling balls and a 'cage' that separates them and prevents the balls from contacting each other. On that cage will be small magnets recessed into it which will pass a magnetic sensor and activate it twice per revolution (per bearing). The cage speed should be around 5000 RPM, so it would be a 166hz signal from each bearing and a 200hz signal from the shaft (one sensor, one reading per revolution). As the physical and temperature constraints are VERY restrictive, a true rotary encoder is impossible on the cage and impractical on the shaft. It's also a very oily environment so an IR-reflective or interrupted solution is also not realistic. The only way to get a measurement off the cage is with a magnetic sensor of some type, hence the question about the reed switch.
I will need three 'channels' of RPM reading, and each location must be read and recorded only twice per hour.
As noted, my system has a PCI-6221 DAQ card which has several digital IO lines and two counters. At the frequency I'm trying to measure, is it realistic to use digital lines or just counters? Since I only have two counters, the three readings is a problem. I have a PCI-6602 which is not in the system which has 8 counters, though, and I could re-implement that if need be.
So:
1. Can I make a TTL signal with a reed switch and a power source (off topic a bit but a big part of what I'm doing)
2. Can I use a digital line along with my counters and just use the PCI-6221 or should I put in the PCI-6602 which has more counters
3. Since it's only two readings per location per hour, can I somehow 'share' a counter channel among all three locations (just a thought)
4. If connecting directly to the digital or counter inputs with a TTL signal, are there any additional pre-connection processing needed other than a pull-up resistor and the correct voltage?
Thanks for your input, it's greatly appreciated!
06-06-2007 10:25 AM
Ralph:
Not regarding your DAQ setup, but have you tested to make sure the switches can open and close that fast? I know reeds are pretty quick, but this may be pushing it. They may also exhibit contact bounce (multiple open and close states before settling down) and this will yield erroneous readings. If you have an oscilloscope available, I would suggest that you first verify the reeds will function at full motor speed before attempting anything with your DAQ hardware. You could tie one end to 5V with a pullup resistor and monitor that signal with the scope.
06-06-2007 10:30 AM
06-07-2007 09:20 AM
06-07-2007 11:16 AM
Alright Sandra! That helps a lot. I'll use the 6602 then. I have actually decided to go with an actual sensor, a Melexis US5581LUA hall effet magnetic sensor (http://rocky.digikey.com/scripts/ProductInfo.dll?Site=US&V=413&M=US5881LUA). It's an open-collector sensor that I should only need a pull-up resistor for, and is nice and tiny and fits where I need it to.
Please, be on the lookout for more interesting questions as I also have to connect flowmeters, load meters, and thermocouples to this system to monitor oil pressure, flow, and temperature during the course of the run.
*note* I have had -0- labview training and -0- signal conditioning training at any time, and this is my fourth or fifth VI in this sort of setup. I'm blown away by the learning curve on this system and software, and frankly my brain hurts. I think the boss is going to spring for LV and SC courses come September though.
Thanks again for the input on this, it's greatly appreciated!
06-07-2007 01:17 PM
Ralph:
You beat me to it, I was going to suggest Hall effects if the reeds were not fast enough.
Let us know how it goes.
-AK2DM