Hello Guest it is March 02, 2024, 10:38:49 AM

Author Topic: opto interrupter wiring?  (Read 4909 times)

0 Members and 1 Guest are viewing this topic.

opto interrupter wiring?
« on: February 23, 2008, 01:46:15 AM »
I'm using Mach3 to bypass the onboard RS232 controller in a chinese router. I hoping to use the existing opto interrupter home switches (as well as the XY drivers, XY steppers etc). The breakout board I have has 10k pullup resistors on the inputs which are wired straight to the port pins.

If I wire up one of the opto interrupters like this:

I can see it working in Mach. But that seems way too simple. Am I going to fry anything if I run it like this?



Offline Chip

  • *
  •  2,055 2,055
  • Gainesville Florida USA
    • View Profile
Re: opto interrupter wiring?
« Reply #1 on: February 23, 2008, 09:00:00 AM »
Hi, Jon

Should work fine, Printer Port/Mach3 is looking for the 0 or 5 volt's,  Over 5 volt's can damage the p/port.


Offline jimpinder

  •  1,232 1,232
  • Wakefield, West Yorks, UK
    • View Profile
Re: opto interrupter wiring?
« Reply #2 on: February 24, 2008, 04:42:16 AM »
Yoiu may find the 5 volt pull up resistor on the input is too much. Most ports already have 5 volt internal pull up resistors.

I use much the same circuit for my rev counter but it didn't work at first. I soon found the input was never pulling down to zero (or close enough for the computer to register it). I removed the external pull up resistor (the opto does not need it) and it works fine.

In this case perhaps, miss out the breakout board and wire the input straight to the computer.
« Last Edit: February 24, 2008, 04:44:12 AM by jimpinder »
Not me driving the engine - I'm better looking.