Setting up threading on a Boxford 160TCL lathe
- rider-83
- Offline
- Elite Member
- Posts: 237
- Thank you received: 10
I have a Boxford 160TCL fitted with a new spindle servo motor, and am currently configuring LinuxCNC 2.9
Encoding:
The original encoder disc is still fitted to the rear of the spindle, but the sensor is missing for some reason.
What would be my best option here? Should I use some form of sensor with this original disc, or find a completely different and new arrangement?
Parallel Port:
Because I no longer have any further input signals available with my current LPT port, I'm going to add another to the spare PCI slot and set it at either 'x' or 'in' .
Any thoughts here would be appreciated.
Nick..
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23170
- Thank you received: 4860
The original sensors were probably something fairly standard.
I think I would use something like uk.rs-online.com/web/p/slotted-optical-switches/6666473/ which has logic output so save messing about with pull-ups etc.
As there are 5 in the pack, you might as well do the full ABZ set for rigid-tapping support.
Please Log in or Create an account to join the conversation.
- rider-83
- Offline
- Elite Member
- Posts: 237
- Thank you received: 10
+5v & GND on two legs, and the others would connect direct to the LPT?
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23170
- Thank you received: 4860
What would be my wiring requirements?
+5v & GND on two legs, and the others would connect direct to the LPT?
With the ones I linked to, yes.
Please Log in or Create an account to join the conversation.
- rider-83
- Offline
- Elite Member
- Posts: 237
- Thank you received: 10
The optical switches you advised from RS have arrived. I'm going to start playing around with my test PC.
I have the emitter LED connected to +5DC & GND to an external power supply.
The three other legs, I'm a little lost. My thoughts were the GND to a GND pin on the LPT, but I'm unsure of the other two. It looks from the wiring diagram that I apply a further 5v and collect the signal from the middle pin?
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23170
- Thank you received: 4860
I have the emitter LED connected to +5DC & GND to an external power supply.
You probably didn't want to do that without a resistor to limit the current. The data sheet does not show any current limiting resistor and says that the LED has a max current limit of 50mA. I would suggest aiming for 5mA, at which point the LED forward voltage is 1,1V.
5V - 1.1V = 3.9V at the LED, V=IR suggests that a 680R resistor would be about right.
If you have already switched it on like that then the LED might well be dead now. You might be able to see if it is lit up in infra-red with your mobile phone camera.
Yes, that's right. You can connect the 5V to the same 5V as the LED (not via the resistor). And check that the output varies between 0V and 5V with a multimeter before connecting to the parallel port.The three other legs, I'm a little lost. My thoughts were the GND to a GND pin on the LPT, but I'm unsure of the other two. It looks from the wiring diagram that I apply a further 5v and collect the signal from the middle pin?
You could consider stealing the 5V from a USB port, then you can be sure that the port and the sensor share a power supply reference.
(just cut an end off of a USB cable, the red and black cores will be 5V and 0V.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23170
- Thank you received: 4860
I have the emitter LED connected to +5DC & GND to an external power supply.
You probably didn't want to do that without a resistor to limit the current. The data sheet does not show any current limiting resistor and says that the LED has a max current limit of 50mA. I would suggest aiming for 5mA, at which point the LED forward voltage is 1,1V.
5V - 1.1V = 3.9V at the LED, V=IR suggests that a 680R resistor would be about right.
If you have already switched it on like that then the LED might well be dead now. You might be able to see if it is lit up in infra-red with your mobile phone camera.
Yes, that's right. You can connect the 5V to the same 5V as the LED (not via the resistor). And check that the output varies between 0V and 5V with a multimeter before connecting to the parallel port.The three other legs, I'm a little lost. My thoughts were the GND to a GND pin on the LPT, but I'm unsure of the other two. It looks from the wiring diagram that I apply a further 5v and collect the signal from the middle pin?
You could consider stealing the 5V from a USB port, then you can be sure that the port and the sensor share a power supply reference.
(just cut an end off of a USB cable, the red and black cores will be 5V and 0V.
Please Log in or Create an account to join the conversation.
- rider-83
- Offline
- Elite Member
- Posts: 237
- Thank you received: 10
I like the idea of the USB 5v. This PC unit has loads of them.
I was running out of 5v options from my power supply, and the solution was right there in front of me,
Thanks once again
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23170
- Thank you received: 4860
I've just found on the internet a separate data sheet from 'Sharp'. They are suggesting a 47ohm resistor. How does that sound?
It sounds low. V/R = 3.9 / 47 = 82Ma.
Are you sure it wasn't 470 ohms?
Please Log in or Create an account to join the conversation.
- rider-83
- Offline
- Elite Member
- Posts: 237
- Thank you received: 10
Please Log in or Create an account to join the conversation.