121
General Mach Discussion / Re: Spindle RPM
« on: July 19, 2008, 09:43:21 AM »
http://uk.rs-online.com/web/search/searchBrowseAction.html?method=getProduct&R=4550919
This is the switch in the UK you can view the datasheets on line.
http://www.alliedelec.com/Search/SearchResults.aspx?N=0&Ntt=slotted+optical+switch+917b&Ntk=Primary&sid=11B3A79D9029&i=0
This is the closest I could see on the US site.
The switch doesn't do anything particularly clever it's a light source (often infrared LED) and a photodetector often a photo transistor either mounted in an IR transparent package or has small lenses to stop cross talk etc. As long as it will run on the voltage you need and will provide a sink for the data pin (usual to put a pull up resistor on the output) you may also need to put a current limiter resistor on the feed to the LED depending on what one you get. Oh and ensure it will run at the max frequency you intend but this is unlikely to be a problem.
The thing I worried about is would the parallel port read it quick enough to get an accurate reading or would there need to be some electronic scaling but Hood has answered this one and fortunately it'll bolt straight on. I'll be trying to connect mine to the smoothstepper board (on order) which has a dedicated input for spindle speed (I think).
This is the switch in the UK you can view the datasheets on line.
http://www.alliedelec.com/Search/SearchResults.aspx?N=0&Ntt=slotted+optical+switch+917b&Ntk=Primary&sid=11B3A79D9029&i=0
This is the closest I could see on the US site.
The switch doesn't do anything particularly clever it's a light source (often infrared LED) and a photodetector often a photo transistor either mounted in an IR transparent package or has small lenses to stop cross talk etc. As long as it will run on the voltage you need and will provide a sink for the data pin (usual to put a pull up resistor on the output) you may also need to put a current limiter resistor on the feed to the LED depending on what one you get. Oh and ensure it will run at the max frequency you intend but this is unlikely to be a problem.
The thing I worried about is would the parallel port read it quick enough to get an accurate reading or would there need to be some electronic scaling but Hood has answered this one and fortunately it'll bolt straight on. I'll be trying to connect mine to the smoothstepper board (on order) which has a dedicated input for spindle speed (I think).