. .
Page 11 of 22 FirstFirst ... 91011121321 ... LastLast
  1. #101
    Quote Originally Posted by Doddy View Post
    Andy,

    I think you understand a fair bit on the old electronic side. I was casually browsing this thread and one thing is niggling me. Opto isolators typically have a low CTR - usually significantly less than 1, often less than 0.5. That does mean that cascading optos is going to end (eventually, depending on CTR and number of optos in chain) with the latter optos not switching effectively. Really, the opto should be switching a high-z logic device rather than the relatively high current LED input on the successive circuit.

    You link a rating of the output at 100mA - that /could/ just be the Ice(max) for the PT in the opto, rather than an actual expected switching current (reading the 4n25 data sheet this is the case).

    I'm not suggesting this is your problem, but bear it in mind and measure the switching voltages along the opto-cascade,
    Hi Doddy,

    Thanks - that is quite high praise, but I'm still very much stumbling my way around so don't assume too much!

    I hadn't really considered the CTRs of the optoisolators, however is this relevant if I'm effectively connecting each drive in parallel with oneanother? My intuition is only really concerned about the fact that I have the Optoisolator from the drive, and then the one in the OSSD output which as I understand is effectively acting as a transistor to ground. Upstream of the drive is merely the current limiting resistors and the +24V rail. My ~40mA came from the sum of 10mA per drive based on the current limiting resistors, and if the CTR<1 then I shouldn't have damaged anything staying under 70mA.

    I suspect I've totally missed the point here though :) Please educate me further!

  2. #102
    Managed to reprogram one of the drives last night (its a faff now they're in the cab) to be Enable Active low, and instantly was able to get my first self-powered movements on that axis (huzzah!! - I'll post a video once I have all three axis working and this enable issue resolved, because as usual the garage is a tip).

    I didn't change the enable wiring, and noticed that the drive was enabled whatever happened (one of the other unconnected drives faulted out which dropped the OSSD output, but it had no effect on the active low drive). Therefore, the problem isn't that I've got my logic states messed up, or at least that's not exclusively the problem.

    My next step is to try experimenting with wiring setups to try and get the enable functioning. First I'm going to try Vsarak's two suggestions above, first utilising the 5V rail and another output (schematic B), and second, using a differential connection from a spare axis output (schematic A).

    The third step would be to try the NPN connection recommendation in the EM806 manual (which I now realise is effectively what I've been trying to do). The only difference here is that the resistors are placed on the ENABLE - line rather than the ENABLE + line - would that really make a big difference? See attached.

    Click image for larger version. 

Name:	EM806 NPN.JPG 
Views:	206 
Size:	56.0 KB 
ID:	27311
    Last edited by AndyUK; 04-02-2020 at 01:49 PM.

  3. #103
    Quote Originally Posted by AndyUK View Post
    I suspect I've totally missed the point here though :) Please educate me further!

    I'm trying not to mis-direct this thread (tangent?, what tangent...), but to explain my logic....

    If I redraw your schematic (lesson #1, "Eagle" is not good for this)

    Click image for larger version. 

Name:	Screenshot 2020-02-04 at 20.07.06.png 
Views:	196 
Size:	44.5 KB 
ID:	27314

    and zoom into a bit of text that I torturously added

    Click image for larger version. 

Name:	Screenshot 2020-02-04 at 20.07.39.png 
Views:	211 
Size:	60.9 KB 
ID:	27315

    If you /assume/ that the opto-isolator on the UB1 OSSD output has a forward current through the LED (I1) of 10mA (not unreasonable, and likely a design goal). Also, /assume/ the CTR is 0.5 for that device. That means that the switching current (Iossd) would be I1 * CTR = 5mA.

    Now, Kirchoff's law says basically that the sum of the currents at a node equals zero. So, if 5mA is flowing into the OSSD input, then the sum of currents through the 4 separate '806 drivers must also equal 5mA. Give them the benefit of the doubt and say that all '806's are created equal, then your forward current through each '806 LED is that 5mA, divided equally by 4, or 1.25mA. Not the 10mA that you believe you have. Then you're at the mercy of the circuit design in the '806 behind the internal opto-isolator. That 1.25mA is multiplied by the local CTR and further diminished. Also, the CTR is impacted by the forward current - it's less at 1.25mA than if driven by 10mA, and so the internal switched voltage swing is further diminished, and may, or may not impact on the performance of the ENA input.

    The bit of maths around Vossd is easily verified by yourself - measure the voltage, wrt ground, at the OSSD output when you have a fault condition. If the OSSD output was an ideal switch you'd expect it to be 0V. I expect it to be rather higher (calculated around 20V), based on the less-than-ideal switching behaviour of the opto-isolator (and if I have to correct my auto-correct for opto/onto once more....).

    I'm cautious of playing too much behind a calculator - measure the voltage yourself. Reality beats theory any day. The one thing that worries me about my theory is that I would expect the behaviour to be accurately described in the owner's manual of the UB1. And the manual doesn't describe my perceived behaviour - so I could be wrong here.

    I've tried to look online for a high-res image of the UB1 for information on the opto-isolator chosen - to no avail. If you can check and advise? It could be an intelligent selection of a device with an unusually high CTR. Pretty sure they are not buffered devices as they look to be 4-pin devices.


    EDIT:

    Here's an idea. Short the OSSD output to ground (or just the wire from the OSSD output). Either that will work as expected (inhibit each driver) or not. That's a quick way to fault-find the circuit.
    Last edited by Doddy; 04-02-2020 at 09:33 PM.

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


  5. #104
    Wow thanks for that Doddy, I see what you mean now :)

    Click image for larger version. 

Name:	20200204_222111.jpg 
Views:	242 
Size:	285.8 KB 
ID:	27317
    What I think are the optoisolators (4pin IC directly above each output) have 838 written in small font above a larger central "P185". Bottom row is "GB JG".

    Also, how the hell did that board get so dusty?

    Measured the voltage but wrt 24V not ground (oops). Withe all drives on and connected, OSSD output off (i.e. fault condition drive should be disabled) I get 0V reading (so the OSSD pin is at 24V). With the OSSD output on (drives should enable) I get a reading of 23.3V (so OSSD pin is at 0.7V).

    Connected a single drive to 5V and the OSSD pin without resistors, worked perfectly. Enabled and disabled the drive like a champ exactly as expected in both active low enable mode and active high enable mode (enabled in opposite situations obviously). Will try connecting all drives simultaneously next, and I guess worst case will just run them through a spare relay operated by the OSSD pin?
    Last edited by AndyUK; 05-02-2020 at 09:15 AM. Reason: Added photo

  6. #105
    Likely a TLP185 or equivalent. CTR = 100-400%. Your measured voltage is fine and indicates the behaviour should be as you expected. Disregard all my random ramblings about optos.

  7. #106
    Quote Originally Posted by Doddy View Post
    Likely a TLP185 or equivalent. CTR = 100-400%. Your measured voltage is fine and indicates the behaviour should be as you expected. Disregard all my random ramblings about optos.
    As someone who likes to design and build the odd circuit of his own, I have found your 'ramblings' extremely informative.
    An optimist says the glass is half full, a pessimist says the glass is half empty, an engineer says you're using the wrong sized glass.

  8. #107
    Quote Originally Posted by Kitwn View Post
    I have found your 'ramblings' extremely informative.
    Seconded, this train of thought has more than doubled my knowledge of Optos.

  9. #108
    Quote Originally Posted by Doddy View Post
    If I redraw your schematic (lesson #1, "Eagle" is not good for this)
    Sorry to side track Andy...

    Doddy have a look at Fusion 360, they've been working on updates for the PCB design side more recently, I don't know if schematic support is available as I haven't had time to explore just yet...Autodesk owning Eagle i'm now thinking probably not.
    .Me

  10. #109
    Lee, the work auto desk have done is to integrate the eagle board design together with 3d models of components to post forward into F360 for correlation between electrical and mechanical design. Think of it as a 3D viewer for Eagle, but with obvious advantage for designing the mechanicals around the electrical design.

    It’s neat when it works but a complete buggeration from a component library manager POV.

    Unfortunately it doesn’t make schematic capture any better (though in fairness autodesk have developed Eagle more in the last couple of years than any of the previous owners)

    Sorry!, Andy, thread hijack

  11. #110
    Quote Originally Posted by Doddy View Post
    Lee, the work auto desk have done is to integrate the eagle board design together with 3d models of components to post forward into F360 for correlation between electrical and mechanical design. Think of it as a 3D viewer for Eagle, but with obvious advantage for designing the mechanicals around the electrical design.
    Apologies, Lee - I think I understand where you was coming from. The latest update from AutoDesk for Fusion360 starts to integrate the functions, including schematic capture, from Eagle into the design editor. This is starting to make sense from the changes to the licensing introduced by AD recently - I'm guessing they're looking for convergence between F360 and Eagle - perhaps into a single product. Not sure I like this, and the integration at this time is a bit clumsy, but I'll hold my breath to see how this develops.

Page 11 of 22 FirstFirst ... 91011121321 ... LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. BUILD LOG: 8x4 router build. Steel base & Aluminium gantry gantry
    By D-man in forum DIY Router Build Logs
    Replies: 57
    Last Post: 13-12-2019, 10:43 AM
  2. BUILD LOG: Build Log: 4'x4' Moving Gantry CNC Router
    By GeorgeW21 in forum DIY Router Build Logs
    Replies: 14
    Last Post: 20-01-2019, 09:33 AM
  3. BUILD LOG: Ar last!!! Started my Gantry 3-Axis CNC Build
    By MikeyC38 in forum DIY Router Build Logs
    Replies: 74
    Last Post: 16-06-2018, 11:29 PM
  4. Any sugestions how to build my gantry
    By masinecc in forum Gantry/Router Machines & Building
    Replies: 8
    Last Post: 20-09-2015, 05:17 PM
  5. BUILD LOG: Flying Gantry Build Diary
    By geoff.sim in forum DIY Router Build Logs
    Replies: 8
    Last Post: 29-05-2008, 02:53 AM

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
  •