Measuring FAN Rpm
Imran
Posts: 20
Hi Guys,
Have got a 12VDC, 0.27A Fan, how can I measure the RPM of the fan with BS2.
Regards
·
Have got a 12VDC, 0.27A Fan, how can I measure the RPM of the fan with BS2.
Regards
·
Comments
Is this is three lead fan?· If so, it may already have a tachometer output.· Search for the model number of the fan to see how to use the wire.· Then, you'll need to condition the input for the BS2.· The fan runs at 12V,·so I would expect the tachometer output's·to be a 12V squarewave.· You'll need to reduce the voltage before it reaches the Stamp.· The other piece of the puzzle is number of pulses per revolution, which the same website should also tell you.· Then use the PBASIC "COUNT" command to count the number of pulses for a short period of time.· Then divide by the number of pulses per revolution and finally multiply up using your time period to get one minute.· Eg, 200 pulses for 1 sec = 200/2 (example fan from link below)=100.· Then because I used one second, multiply by 60 to get one minute.· 100*60= 6,000 RPM.· One other thing to keep in mind is that while the Stamp is counting, it can't do anything else, so you have to balance accuaracy vs. speed vs. other tasks.
An example for a Nidec three wire fan is here:· http://www.nidec.com/designoptions/options.htm· click on the link just below the diagram to see the most common option/use.
Another way to do this is to use an IR sensor/receiver combo as described in the Process Control text.· It uses an IR Transmitter/Reciever and an encoder wheel on the fan.· The text describes the exact hookup and some programming examples too.· It's a free download, so take a look.· Link:· http://www.parallax.com/html_pages/downloads/siccurriculum/documentation_sic_curriculum.asp· Look for Activity 6 beginning on page 114.
Direct to PDF:· http://www.parallax.com/dl/docs/prod/sic/Web-PC-v1.0.pdf·
A similar idea would be to use a seperate·IR transmitter and a seperate reciever, but set it up so that the transmitter is on one side of the blades and the reciever is on the other.· The blades will cut the beam, allowing you to count each·blade as it·passes.· Sunlight will affect both these ideas though.· Similair programming as above, balance accuarcy, speed and your other tasks.
If the fan is an a light-tight box, you could as try·a regular LED for a light source and a CDS or Phototransistor·to detect the light.· Use shrinkwrap w/a straw to narrow the focus.· Set the LED so the blades break the beam.· You'll need to use "RCTIME" command and add a small capacitor as described in the text above.·I'm not sure how precise this would be at measuring RPM, but it may be worth a shot.· Also, it may not measure high RPMs.· But it might be worth playing with, just to see what you can do with it.
I hope this helped!
Post Edited (Desy2820) : 4/5/2007 9:31:10 AM GMT
Regards
manual. See:
http://www.parallax.com/detail.asp?product_id=28176
to download it.
phil
Would using an optical transmitter/receiver option be better like the IR buddies sensor used as a break beam arrangement using the fan blades to cut the beam and divide by amount of blades to get a revolution.
· The 3-Lead Fans have an open-collector output…You must pull it HIGH using a 10K resistor. Now, bear in mind that since the fan is usually running @ 12V and the BASIC Stamp @ 5V you will want the pull-up to be to the 5V supply (usually VDD on the BASIC Stamp Boards). You can use the COUNT command to get the RPM at that point. I hope this helps. Take care.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support