USB for i/o?
05 Mar 2013 11:25 #30894
by tenaja
USB for i/o? was created by tenaja
I understand why USB is not used for controlling motion. This topic is NOT related to that.
However, with simple On/Off i/o (such as Coolant, and even Spindle with rudimentary On/Off systems), the delay of the physical action far exceeds any delay that the usb would add. If you HAD to have confirmation, you could (for instance) tie an input switch to a pressure sensor in the coolant. (And that would also serve as a safeguard.)
So, is there currently a way to do that? I know you can bit-bang the serial FTDI chips; has anyone tied one to an M-code?
The reason I'm asking is I have one of those micro boards, and it only has one parallel port. The one slot it has is home for a video card.
Thanks...
However, with simple On/Off i/o (such as Coolant, and even Spindle with rudimentary On/Off systems), the delay of the physical action far exceeds any delay that the usb would add. If you HAD to have confirmation, you could (for instance) tie an input switch to a pressure sensor in the coolant. (And that would also serve as a safeguard.)
So, is there currently a way to do that? I know you can bit-bang the serial FTDI chips; has anyone tied one to an M-code?
The reason I'm asking is I have one of those micro boards, and it only has one parallel port. The one slot it has is home for a video card.
Thanks...
Please Log in or Create an account to join the conversation.
05 Mar 2013 16:05 #30902
by cncbasher
Replied by cncbasher on topic USB for i/o?
yea the usb can be used for general I/O such as switches and relays see posts for Arduinio
Please Log in or Create an account to join the conversation.
06 Mar 2013 05:09 #30941
by Rick G
Replied by Rick G on topic USB for i/o?
You can also look at hidcomp...
hidcomp.sourceforge.net/
And Simple remote pendant...
wiki.linuxcnc.org/cgi-bin/wiki.pl?Simple_Remote_Pendant
Just to name a few.
Rick G
hidcomp.sourceforge.net/
And Simple remote pendant...
wiki.linuxcnc.org/cgi-bin/wiki.pl?Simple_Remote_Pendant
Just to name a few.
Rick G
Please Log in or Create an account to join the conversation.
05 Feb 2014 12:41 #43567
by rmattioda
Replied by rmattioda on topic USB for i/o?
Can a USB I/O work for an auto touch plate ?
Please Log in or Create an account to join the conversation.
05 Feb 2014 21:13 #43583
by andypugh
I think that the variable delay in sensing the touch imposed by the non-realtime IO would be a problem.
If you have absolutuely no IO lines left then perhaps you could use the serial port handshake lines: www.linuxcnc.org/docs/html/man/man9/serport.9.html
Replied by andypugh on topic USB for i/o?
Can a USB I/O work for an auto touch plate ?
I think that the variable delay in sensing the touch imposed by the non-realtime IO would be a problem.
If you have absolutuely no IO lines left then perhaps you could use the serial port handshake lines: www.linuxcnc.org/docs/html/man/man9/serport.9.html
Please Log in or Create an account to join the conversation.
06 Feb 2014 00:42 #43588
by rmattioda
Replied by rmattioda on topic USB for i/o?
A couple questions that concerning the addition of a auto touch plate which enables the machine to touch the plate and set the touch off to Z.0.
1. I am going to use a parallel port for the touch plate signal and I will be using a third one due to the fact that I have the second one dedicated to an MPG, if PCI slots allow can Linuxcnc handle 3?, I would assume so by connecting in the HAL file.
2. When hooking up the wiring to the Parallel port for signal input I.E. I am dedicating pin 1 of the port to the Probe in, what is used as the common? Is it the 5 volts that are used for the limits, relays,..etc
Would this be the info you left the link for Andy?
Thanks
1. I am going to use a parallel port for the touch plate signal and I will be using a third one due to the fact that I have the second one dedicated to an MPG, if PCI slots allow can Linuxcnc handle 3?, I would assume so by connecting in the HAL file.
2. When hooking up the wiring to the Parallel port for signal input I.E. I am dedicating pin 1 of the port to the Probe in, what is used as the common? Is it the 5 volts that are used for the limits, relays,..etc
Would this be the info you left the link for Andy?
Thanks
Please Log in or Create an account to join the conversation.
06 Feb 2014 01:30 #43590
by ArcEye
Unless you have changed your hal files, parport.1 pins 8, 13 and 15 are all free, so you don't need a 3rd parport, unless you are taking that straight to the pendant, not via a BOB
Yes you can have a 3rd parport, PCI slots permitting, the voltage will be whatever the parport is (5v or 3.3v) unless you are using an indirect buffered connection with a higher voltage.
The lower the voltage the more chance of line noise and false readings, so running directly to a parport pin may not be the best option.
If you have noise problems, a simple 12v walmart supply running through the probe, holding closed a small 12v relay which triggers the signal, can be a bomb proof switching method that should eliminate any line noise (unless your probe contacts are 'dirty' and don't break cleanly).
Replied by ArcEye on topic USB for i/o?
I will be using a third one due to the fact that I have the second one dedicated to an MPG
Unless you have changed your hal files, parport.1 pins 8, 13 and 15 are all free, so you don't need a 3rd parport, unless you are taking that straight to the pendant, not via a BOB
Yes you can have a 3rd parport, PCI slots permitting, the voltage will be whatever the parport is (5v or 3.3v) unless you are using an indirect buffered connection with a higher voltage.
The lower the voltage the more chance of line noise and false readings, so running directly to a parport pin may not be the best option.
If you have noise problems, a simple 12v walmart supply running through the probe, holding closed a small 12v relay which triggers the signal, can be a bomb proof switching method that should eliminate any line noise (unless your probe contacts are 'dirty' and don't break cleanly).
Please Log in or Create an account to join the conversation.
06 Feb 2014 10:47 - 06 Feb 2014 10:48 #43596
by rmattioda
Replied by rmattioda on topic USB for i/o?
I am using a breakout board with terminal block and socket with a ribbon to the MPG, do you have a pin out handy that would show me where I could grab the voltages?
Using pin 8 going from pin to pin I never could find the 5 vdc
Thanks
Using pin 8 going from pin to pin I never could find the 5 vdc
Thanks
Last edit: 06 Feb 2014 10:48 by rmattioda.
Please Log in or Create an account to join the conversation.
06 Feb 2014 15:25 #43599
by ArcEye
There are plenty of pin out diagrams on the net.
The thing to realise is that pin 8 is normally an OUT pin and that the state of any pin is uncertain until a driver has taken control of the port.
So you need to test with lcnc running, possibly easiest through the HAL Configuration dialog and not get hung up on measuring voltages.
Replied by ArcEye on topic USB for i/o?
I am using a breakout board with terminal block and socket with a ribbon to the MPG, do you have a pin out handy that would show me where I could grab the voltages?
Using pin 8 going from pin to pin I never could find the 5 vdc
There are plenty of pin out diagrams on the net.
The thing to realise is that pin 8 is normally an OUT pin and that the state of any pin is uncertain until a driver has taken control of the port.
So you need to test with lcnc running, possibly easiest through the HAL Configuration dialog and not get hung up on measuring voltages.
Please Log in or Create an account to join the conversation.
Time to create page: 0.091 seconds