. .

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Doddy's Avatar
    Lives in Preston, United Kingdom. Last Activity: 4 Weeks Ago Has been a member for 9-10 years. Has a total post count of 1,364. Received thanks 188 times, giving thanks to others 66 times. Referred 1 members to the community.
    Your first schematic confuses me a little - because you show one transistor on the BoB and one on the machine. If the one on the BoB is intended to represent the output stage of the BoB (fairly common thing to do) - the problem is that it's not likely to represent the actual output stage of the cheap Chinese BoB (they use push-pull outputs rather than open collector) - the net result of this is I wouldnt recommend that diagram (I apologies - the earlier answer answered against the schematic, but I don't think the schematic represents quite what you're likely to achieve with the BoB).

    The second schematic ("this is another diagram I found on the net") makes no assumption or assertion about the implementation or design of the output stage of the BoB, but instead just shows that (5V TTL...) driving a transistor. Two signals - Step/DIr, each with their own base resistor and transistor. That circuit implements the open-collector drive as shown in the BoB on the earlier diagram. This second schematic is "better".

    The behaviour is, as the input (5V TTL) rises "high" (5V) then the transistor conducts, and the voltage on the collector ("12V from motherboard") will be shunted to ground. So, 5V in = 0V out.

    When the input (5V TTL) drops "low" (0V) then the transistor stops conducting, and the collector->emitter is high resistance, and the 12V from the ("12V from motherboard") remains unaffected.

    So 5V in = 0V out; 0V in = 12V out.

    Note, and this is important if you don't want to blow the transistors up. The "12V from motherboard" I expect is either the Step or Dir input to the existing stepper driver - it's not connected directly to 12V, but rather through an internal resistor on the stepper driver to 12V. It's that resistor that presents the voltage drop when the transistor is conducting. So don't connect the circuit to a 12V supply, but do connect it to a Step/Dir input (... that might read 12V on a meter).

    Just to demonstrate (a picture is worth a thousand words), I've sketched out your schematic in a circuit simulator (LTSpice)...

    Click image for larger version. 

Name:	Screenshot 2021-01-19 at 20.55.22.png 
Views:	7293 
Size:	52.2 KB 
ID:	29408

    The circles - the one on the left in the "BoB" is a 5V voltage source, that starts at 0V and spikes to 5V after 1 second, then returns to 0V....

    The one on the right represents the machine's 12V supply. The resistor is the aforementioned internal resistor.

    Simulating this for 5 seconds gives the following waveform...

    Click image for larger version. 

Name:	Screenshot 2021-01-19 at 20.55.31.png 
Views:	7088 
Size:	52.8 KB 
ID:	29409

    The lower, green trace is the 5v signal from the BoB. The upper blue trace is the resulting voltage measured on the input to the Stepper driver.
    Last edited by Doddy; 19-01-2021 at 10:00 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Mach3/Linuxcnc
    By jolyonjenkins in forum Machine Control Software
    Replies: 3
    Last Post: 02-08-2020, 11:01 PM
  2. Replies: 12
    Last Post: 24-04-2020, 11:01 AM
  3. What do I need to run LinuxCNC???
    By gatesy in forum LinuxCNC (EMC)
    Replies: 22
    Last Post: 02-12-2015, 07:42 PM
  4. Mach3 vs LinuxCNC/EMC What do you use and why?
    By Lee Roberts in forum Machine Control Software
    Replies: 46
    Last Post: 26-11-2013, 01:02 AM
  5. How many LinuxCNC/EMC users do we have?
    By birchy in forum LinuxCNC (EMC)
    Replies: 16
    Last Post: 30-12-2012, 08:08 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
  •