Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 5 of 5

Thread: TMC2100 Stepper Motor Driver

  1. #1
    Junior Member
    Join Date
    Nov 2014
    Location
    Long Beach CA
    Posts
    15

    TMC2100 Stepper Motor Driver

    Hi

    i wont control a Trinamic TMC2100 Stepper Motor Driver https://github.com/watterott/SilentS...MC2130_v10.pdf with a Teensy 3.1
    ok
    the Pins CFG1 and CFG2 high and low its not the problem.
    but my idea is for Pin open, using a relay , like a 374-1322-ND http://www.digikey.com/product-searc...=0&pageSize=25 this is rated a 3V and 18 mW. The output from Teensy 3.1 can handle 25 mA by 3V about 75 mW this is right ? i don't wont burn my Teensy :-)
    i like to use a TMC2130, but now one have a little board "ready to go" for this.

    Thanks for any comment


    Dirk
    Last edited by dirk; 05-21-2016 at 07:12 PM.

  2. #2
    Junior Member
    Join Date
    Nov 2014
    Location
    Long Beach CA
    Posts
    15
    ok
    i research a little bit more
    in the mean time i was thinking using a optocoupler whit tristate output.
    but i found in a arduino forum that the guys put for the third state the pin to input.

    Code:
    digitalWrite( pinNumber, LOW );
    pinMode( pinNumber, OUTPUT );  // now we're sourcing current, i.e. GND
    pinMode( pinNumber, INPUT ); // now we're tri-stated
    pinMode( pinNumber, OUTPUT );  // and back again
    is that not destroying the Teensy?

    Dirk

  3. #3
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    22,494
    First, always use a diode in parallel with the relay coil. When the coil turns off, a high voltage spike is created if you do not have the diode!

    Usually a NPN or N mosfet transistor should be used. Teensy connects to the transistor base or gate, using a resistor if NPN. The emitter or source connects to GND, and the collector or drain connects to the relay. The other side of the relay connects to power.

  4. #4
    Junior Member
    Join Date
    Nov 2014
    Location
    Long Beach CA
    Posts
    15
    Thanks Paul

    its this possible put the pin from output to input and its like a "open" port for the TMC2100?
    like here http://forum.arduino.cc/index.php?topic=12212.0 ?
    o the simplest way are one SN74LV125A a BUS Buffer with tristate output?

    Dirk

  5. #5
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    22,494
    Usually a NPN transistor is needed. Like this:

    http://www.electronics-tutorials.ws/...h-circuit.html

Posting Permissions

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