Giter Club home page Giter Club logo

Comments (5)

shaunmulligan avatar shaunmulligan commented on June 8, 2024 1

Thanks @Chr157i4n , I actually realised I had misunderstood the data sheet and that I needed a separate STEP and DIR line for each motor, so I now have it working correctly 👍

from tmc2209_raspberry_pi.

Chr157i4n avatar Chr157i4n commented on June 8, 2024

Hello,
the problem with using two TMC2209 on one Raspberry Pi is the UART-Interface.
So driving both drivers/motor with the Step/Dir Pins is possible.
But changing settings in the two different drivers via UART is currently not supported in this libary.
https://www.trinamic.com/fileadmin/assets/Products/ICs_Documents/TMC2209_datasheet_rev1.07.pdf
It is mentioned in Chapter 4.3 and 4.4:
grafik
It should be possible to use different addresses for the different drivers.
But currently that is not implementet.

from tmc2209_raspberry_pi.

igoro00 avatar igoro00 commented on June 8, 2024

self.mtr_id (in __init__ in TMC_2209_uart.py) is the slave address. It's 0 (or 0b00) by default. If you change it to 0b11 (or 3) it'll only talk to the driver that has both MS1 and MS2 set high.

I'm using my stepper with this pcb that has screw terminals and dip switches etc.
image
I just ordered 2 more to test this out but in theory all I have to do is to make mtr_id configurable and create two more objects with different addresses.

from tmc2209_raspberry_pi.

shaunmulligan avatar shaunmulligan commented on June 8, 2024

@igoro00 did you ever manage to get this working? I have two drivers hooked up sharing the same serial connection but can't seem to get them both working simultaneously :(

from tmc2209_raspberry_pi.

Chr157i4n avatar Chr157i4n commented on June 8, 2024

I tested it and you should be able to set the register setting via UART in both drivers and move the motor successively.

For the test script test_script_06_multiple_drivers.py i am using the address 0 (nothing connected to MS1 and MS2) and the address 1 for the second driver (Vcc connected to MS1 and nothing connected to MS2)

Can you share some more information about your setup?

see also:
eb1732f

from tmc2209_raspberry_pi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.