. .

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Quote Originally Posted by dudz View Post
    Contacted the Ebay Member with the sensors. Replyed that I can go direct to the parallel port without the BOB. I guess I just change the "Port" setting in Mach3 "ports and pins" ?

    Click image for larger version. 

Name:	1.jpg 
Views:	5372 
Size:	27.9 KB 
ID:	9048
    It doesn't say in the listing (Edit: Just spotted the datasheet in the eBay listing, which does say open-collector), but the inductive sensors are probably an open collector output, in which case you need a pull-up resistor from the signal to +5V. Use something like 4.7k, exact value isn't critical.

    You're much less likely to have problems with noise if you use a breakout board and run the sensors at a higher voltage. Connecting to the parallel port directly can work, just make sure you connect it up correctly on the first go otherwise the port could be damaged.
    Last edited by Jonathan; 13-06-2013 at 10:49 AM.
    Old router build log here. New router build log here. Lathe build log here.
    Electric motorbike project here.

  2. The Following User Says Thank You to Jonathan For This Useful Post:


  3. #2
    m_c's Avatar
    Lives in East Lothian, United Kingdom. Last Activity: 8 Hours Ago Forum Superstar, has done so much to help others, they deserve a medal. Has a total post count of 2,957. Received thanks 366 times, giving thanks to others 8 times.
    allmyworthwhilepostsaregoing
    Last edited by m_c; 20-05-2014 at 10:43 PM.

  4. The Following User Says Thank You to m_c For This Useful Post:


  5. #3
    dudz's Avatar
    Lives in Dunedin, New Zealand. Last Activity: 09-02-2025 Has a total post count of 295. Received thanks 2 times, giving thanks to others 79 times.
    Quote Originally Posted by Jonathan View Post
    in which case you need a pull-up resistor from the signal to +5V. Use something like 4.7k, exact value isn't
    Ok, So it "may" work if I add the pull up resistor while still using the +5v power and the USB BOB?
    Other than that I would need to use 43V (my PSU is set at) and use a resistor to lower the power into the Sensor ?
    Last edited by dudz; 13-06-2013 at 01:30 PM.
    Swedish Storbro Luna - 3 axis CNC mIll - 250 - 2500rpm / 1.1 tonne

    3 axis CNC/router / Alu profile frame....25mm Alu Cutting bed X=500mm Y=300mm Z=110mm.....Supported 25mm X rails ....Supported 20mm Y rails....Supported 20mm Z rails.....2.2kw Chinese WC spindle..... CSLAB CSMIO/IP-M 4-axis Ethernet Motion Controller....M542 Drivers..SY60STH86-3008BF Motors...running....Mach3 / Cambam / Emachineshop.

  6. #4
    m_c's Avatar
    Lives in East Lothian, United Kingdom. Last Activity: 8 Hours Ago Forum Superstar, has done so much to help others, they deserve a medal. Has a total post count of 2,957. Received thanks 366 times, giving thanks to others 8 times.
    8901234567
    Last edited by m_c; 20-05-2014 at 10:40 PM.

  7. The Following User Says Thank You to m_c For This Useful Post:


  8. #5
    dudz's Avatar
    Lives in Dunedin, New Zealand. Last Activity: 09-02-2025 Has a total post count of 295. Received thanks 2 times, giving thanks to others 79 times.
    So after the resistor is in place from the output wire to the +5v, if the switched wire goes to Gnd, does that mean the 5v will go to ground also ? (sorry for my lack of understanding)
    Last edited by dudz; 13-06-2013 at 02:56 PM.
    Swedish Storbro Luna - 3 axis CNC mIll - 250 - 2500rpm / 1.1 tonne

    3 axis CNC/router / Alu profile frame....25mm Alu Cutting bed X=500mm Y=300mm Z=110mm.....Supported 25mm X rails ....Supported 20mm Y rails....Supported 20mm Z rails.....2.2kw Chinese WC spindle..... CSLAB CSMIO/IP-M 4-axis Ethernet Motion Controller....M542 Drivers..SY60STH86-3008BF Motors...running....Mach3 / Cambam / Emachineshop.

  9. #6
    dudz's Avatar
    Lives in Dunedin, New Zealand. Last Activity: 09-02-2025 Has a total post count of 295. Received thanks 2 times, giving thanks to others 79 times.
    Ok, I understand now. I wasnt sure if the resistor was enough to stop the voltage going to Gnd and damaging something.
    Swedish Storbro Luna - 3 axis CNC mIll - 250 - 2500rpm / 1.1 tonne

    3 axis CNC/router / Alu profile frame....25mm Alu Cutting bed X=500mm Y=300mm Z=110mm.....Supported 25mm X rails ....Supported 20mm Y rails....Supported 20mm Z rails.....2.2kw Chinese WC spindle..... CSLAB CSMIO/IP-M 4-axis Ethernet Motion Controller....M542 Drivers..SY60STH86-3008BF Motors...running....Mach3 / Cambam / Emachineshop.

  10. #7
    m_c's Avatar
    Lives in East Lothian, United Kingdom. Last Activity: 8 Hours Ago Forum Superstar, has done so much to help others, they deserve a medal. Has a total post count of 2,957. Received thanks 366 times, giving thanks to others 8 times.
    abcdefghij
    Last edited by m_c; 20-05-2014 at 10:41 PM.

  11. The Following User Says Thank You to m_c For This Useful Post:


  12. #8
    Quote Originally Posted by m_c View Post
    The resistor is sized so that when the output switches to ground, there's only a few milliamps flowing through it.

    I just ran the figures, and with a 4k7 resistor connecting 5V to ground, it's only allowing slightly over 1mA through, so you could use a lower resistance value.
    Using a standard 1/8W resistor, you could go as low as 200ohm before resistor overheating becomes a problem. I'd personally opt for something in the 1-2K range, but it's not critical.
    Resistor overheating isn't the limiting factor. With 200 ohms you'd have 5/200=25mA. The parallel port can (apparently) only source/sink about 14mA, hence to avoid damaging the port if connecting directly I'd use something higher. So I'd agree to sticking with at least 1k just to be on the safe side.
    Last edited by Jonathan; 13-06-2013 at 11:45 PM. Reason: Grammar
    Old router build log here. New router build log here. Lathe build log here.
    Electric motorbike project here.

  13. The Following User Says Thank You to Jonathan For This Useful Post:


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Proximity switch NPN or PNP
    By Matt81 in forum General Electronics
    Replies: 9
    Last Post: 19-04-2014, 11:38 AM
  2. Proximity Wiring Problem
    By Bruce in forum General Electronics
    Replies: 7
    Last Post: 13-01-2014, 07:21 PM
  3. Proximity Switches
    By kingcreaky in forum General Electronics
    Replies: 20
    Last Post: 23-10-2013, 01:30 PM
  4. Proximity sensor help required
    By plasticsales in forum General Electronics
    Replies: 12
    Last Post: 21-08-2013, 07:02 PM
  5. Proximity Sensors as Limit Switches ?
    By Lee Roberts in forum General Electronics
    Replies: 5
    Last Post: 03-10-2009, 07:04 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •