515,100 active members
3,876 visitors online
Register for free
Login
IndustryArena Forum > WoodWorking Machines > DIY CNC Router Table Machines > Wiring NPN NC sensors to DB25-1205 BOB
Results 1 to 9 of 9
  1. #1
    Registered
    Join Date
    Mar 2018
    Posts
    64

    Wiring NPN NC sensors to DB25-1205 BOB

    Hi, I'm a bit confused about how to wire the often used NPN proximity switches.


    The setup:

    1x 12v Power Supply
    1x 5v Power Supply
    DB25-1205 chinese BOB
    6-36v Proximity Sensor NPN NC


    The BOB ist connected to +5v and -5v of the 5v supply. The sensors are connected with +12v and -12v of the 12v power supply.

    Only the signalwires from the sensors are connected to the Pins of the BOB. The signalwires are connected with diodes to block current flow towards the BOB.


    The Pins only change from 5v to ~1v if I connect the BOBs GND to both: The -12v Terminal and the -5v Terminal of the power supplies.


    Since the negative Terminals aren't really GND I'm wondering if this can damage anything?


    If the BOBs GND is only connected to the -5v terminal the Pins state don't change.

  2. #2
    Registered
    Join Date
    Apr 2005
    Posts
    249

    Re: Wiring NPN NC sensors to DB25-1205 BOB

    You are going to have to have the -ve connected.

    here is a video showing some information I found https://youtu.be/F7BjZElStfQ
    I'll get it finished sometime after I start it.....

  3. #3
    Registered
    Join Date
    Mar 2016
    Posts
    14

    Re: Wiring NPN NC sensors to DB25-1205 BOB

    Quote Originally Posted by millhouse_ View Post
    Hi, I'm a bit confused about how to wire the often used NPN proximity switches.

    The BOB ist connected to +5v and -5v of the 5v supply. The sensors are connected with +12v and -12v of the 12v power supply.

    Only the signalwires from the sensors are connected to the Pins of the BOB. The signalwires are connected with diodes to block current flow towards the BOB.

    The Pins only change from 5v to ~1v if I connect the BOBs GND to both: The -12v Terminal and the -5v Terminal of the power supplies.

    Since the negative Terminals aren't really GND I'm wondering if this can damage anything?

    If the BOBs GND is only connected to the -5v terminal the Pins state don't change.
    For the electrons from the 12v supply to get back to it from the BOB there has to be a common connection between them and this is through the -ve connections of the power supplies.

    So it is standard practice to connect all power supply -ve's together. Sometimes this is called grounding the PS but you do not have to connect this to building ground (earth).

    Regards,
    Arie.

  4. #4
    Registered
    Join Date
    Mar 2007
    Posts
    2070

    Re: Wiring NPN NC sensors to DB25-1205 BOB

    Hi millhouse_

    How many NPN N/C sensors are you trying to connect to one BOB input ?

    what's the part number of the sensor ?



    A while ago I reverse engineered the BOB from photos found on line

    Attachment 432444


    You can not simply parallel NPN N/C sensors - the BOB would only see a change when all sensor outputs open


    The BOB input is connected to pin 2 of an opto-isolator

    when the input is grounded current flows from +5V via a 330 ohm resistor and the opto-isolators LED

    ( the resistor limits the LED current to about 10 mA )

    John

  5. #5
    Registered
    Join Date
    Mar 2018
    Posts
    64

    Re: Wiring NPN NC sensors to DB25-1205 BOB

    Thanks for the infos. Only one sensor per Pin is connected.

    If it is no problem to connect to both -ve then it is working as it should.


    Sensors are LJ12A3-4-Z/BX


    @john-100 You do really great work. Very helpful.

    And thanks to breezy1849 too.

  6. #6
    Registered
    Join Date
    Mar 2007
    Posts
    2070

    Re: Wiring NPN NC sensors to DB25-1205 BOB

    Hi millhouse_

    this is what you should have

    Click image for larger version. 

Name:	ebay opto-isolated CNC BOB plus sensor.jpg 
Views:	0 
Size:	63.7 KB 
ID:	432452

    if you have the jumpers fitted on the BOB

    Vss is connected to the printer port GND & - 5V
    Vdd is connected to the +5V supply

    without the jumpers Vss & Vdd need to be connected to an additional 5V supply
    this has the advantage of the input terminals being totally isolated from the printerport

    John

  7. #7
    Registered
    Join Date
    Mar 2018
    Posts
    64

    Re: Wiring NPN NC sensors to DB25-1205 BOB

    This is how it looks now:


    The -ve from both power supplies are bridged now.

    All + & - from the sensors (brown/blue) are connected to a 12v Terminal at the z-axis.

    All black signal wires go to the control box in one 3x0.75mm^2 wire.

    The signal wires go from the blue terminal to the simple build with WAGO clamps and a diode between each pair. From there the signals go to BOB.

  8. #8
    Registered
    Join Date
    Mar 2007
    Posts
    2070

    Re: Wiring NPN NC sensors to DB25-1205 BOB

    Hi millhouse_

    is this how you connected the diode

    with the cathode connecting to the sensor output ?

    Attachment 432466


    John

  9. #9
    Registered
    Join Date
    Mar 2018
    Posts
    64

    Re: Wiring NPN NC sensors to DB25-1205 BOB

    Basically yes. But only the black wire is connected with the BOB. Blue and Brown are at the 12v Terminalblock behind the Z Axis and from there only one 2x 0.75mm^2 goes back to the controlbox and directly to the 12v PSU.


    With the bridged -ve's it works. The Pins switch between HIGH&LOW.


    Edit: You can see it at the blue terminal block. On the left there are the 3 signals and on the right 12v+- going to the 12v PSU.

Similar Threads

  1. Db25 1205 bob
    By brontoo26 in forum DeskCNC Controller Board
    Replies: 6
    Last Post: 09-08-2018, 08:03 AM
  2. LinuxCNC and DB25-1205 board
    By routalot in forum LinuxCNC (formerly EMC2)
    Replies: 11
    Last Post: 08-29-2018, 09:30 AM
  3. Db25-1205
    By davidmccormick6 in forum DIY CNC Router Table Machines
    Replies: 2
    Last Post: 01-20-2018, 05:40 AM
  4. Possible problem with BOB db25-1205
    By Lc1975 in forum Stepper Motors / Drives
    Replies: 8
    Last Post: 06-12-2016, 08:22 PM

Tags for this Thread

Posting Permissions

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