. .
Page 2 of 3 FirstFirst 123 LastLast
  1. #11
    m_c's Avatar
    Lives in East Lothian, United Kingdom. Last Activity: 9 Hours Ago Forum Superstar, has done so much to help others, they deserve a medal. Has been a member for 9-10 years. Has a total post count of 2,908. Received thanks 360 times, giving thanks to others 8 times.
    8901234567
    Last edited by m_c; 20-05-2014 at 10:40 PM.

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


  3. #12
    dudz's Avatar
    Lives in Dunedin, New Zealand. Last Activity: 3 Days Ago Has been a member for 9-10 years. Has a total post count of 278. Received thanks 2 times, giving thanks to others 69 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.
    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.

  4. #13
    dudz's Avatar
    Lives in Dunedin, New Zealand. Last Activity: 3 Days Ago Has been a member for 9-10 years. Has a total post count of 278. Received thanks 2 times, giving thanks to others 69 times.
    Ok, I understand now. I wasnt sure if the resistor was enough to stop the voltage going to Gnd and damaging something.
    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.

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

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


  7. #15
    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.

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


  9. #16
    m_c's Avatar
    Lives in East Lothian, United Kingdom. Last Activity: 9 Hours Ago Forum Superstar, has done so much to help others, they deserve a medal. Has been a member for 9-10 years. Has a total post count of 2,908. Received thanks 360 times, giving thanks to others 8 times.
    xyz123abc.
    Last edited by m_c; 20-05-2014 at 10:42 PM.

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


  11. #17
    dudz's Avatar
    Lives in Dunedin, New Zealand. Last Activity: 3 Days Ago Has been a member for 9-10 years. Has a total post count of 278. Received thanks 2 times, giving thanks to others 69 times.
    Some specs from the BOB Manual

    Click image for larger version. 

Name:	pins.JPG 
Views:	361 
Size:	102.2 KB 
ID:	9053 Click image for larger version. 

Name:	pins3.JPG 
Views:	576 
Size:	121.5 KB 
ID:	9055

    Click image for larger version. 

Name:	pins2.JPG 
Views:	332 
Size:	113.1 KB 
ID:	9054 Click image for larger version. 

Name:	pins4.JPG 
Views:	570 
Size:	120.9 KB 
ID:	9056


    The Sensors are NPN.
    Last edited by dudz; 14-06-2013 at 08:53 AM.
    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.

  12. #18
    m_c's Avatar
    Lives in East Lothian, United Kingdom. Last Activity: 9 Hours Ago Forum Superstar, has done so much to help others, they deserve a medal. Has been a member for 9-10 years. Has a total post count of 2,908. Received thanks 360 times, giving thanks to others 8 times.
    mycncuksucks
    Last edited by m_c; 20-05-2014 at 10:42 PM.

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


  14. Quote Originally Posted by m_c View Post
    Looking at that, the inputs require 7mA at 5V, which somewhat complicates things if using a NPN sensor, as the inputs obvisouly have resistors installed to drive the Optos.

    I've got to head to work now, but if nobody has replied by later, I'll figure out some values to use the sensors you have.
    assuming 1.2v forward voltage on the opto means that the existing series resistor is (5 - 1.2)/.007 =542, so probably 560R. the suggested series resistors of 1,5k for 12v and 3k for 24v give currents of 6.9mA and 6.4mA respectively.

    dropping the 'on' current to 5mA will need a pull up resistor of 220R and the 'off' current through the 220R would be (5-.4)/220=21mA and 0.1W dissipation, needing a 0.25W resistor. I guess 5mA through the opto will be ok and not have noise immunity issues.

    It would be better to use a higher supply rail, e.g. 12 or 24v and use the suggested 1k5 or 3k resistors 'off' current/power being 7.7mA/0.1W or 7.9mA/0.2W respectively.

  15. The Following User Says Thank You to irving2008 For This Useful Post:


  16. #20
    dudz's Avatar
    Lives in Dunedin, New Zealand. Last Activity: 3 Days Ago Has been a member for 9-10 years. Has a total post count of 278. Received thanks 2 times, giving thanks to others 69 times.
    Ok... I have a spare PC PSU. 12V (Model LC B200SFX)

    If I use this to power the sensor, I connect the PSU -0V to the sensor and to the Gnd terminal on the BOB as shown "right ?" plus the +12V to the sensor input. Using the 1K5 to limit the input to the BOB.
    Do I still need a pull up resistor ?..... Its getting a bit confusing for me.
    Last edited by dudz; 14-06-2013 at 05:41 PM.
    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.

Page 2 of 3 FirstFirst 123 LastLast

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
  •