tripipy icon indicating copy to clipboard operation
tripipy copied to clipboard

correct wiring? / weird values in GUI

Open MZLLYNX opened this issue 2 years ago • 2 comments

Hi,

thank you for the code Unfortunately, I have some issues.

  1. I guess, the correct wiring (with your sample code in trinamicDriver.py) to a TMC5130A-TA_BOB is:
def __init__(self, masterspi=True, spiChannel=0, mode=3, datarate=1000000, cslow=True, datacount=32,
            resetpin=2, drvenpin=3, clockpin=4, clockfrequ=None, pigp={}, motordef=None, loglvl=logging.DEBUG, **kwargs):

GPIO2 (Pin3) -> VCC_IO GPIO3 (Pin5) -> DRV_ENN GPIO4 (Pin7) -> CLK_16 GPIO10 (Pin19) -> SDI GPIO9 (Pin21) -> SDO GPIO11 (Pin23) -> SCK Ground (Pin25) -> GND GPIO8 (Pin24) -> CSN

Is that correct?

  1. When I start motors2.py, the GUI opens with no errors. But there are weird changing values shown. The value for time, XACTUAL, XTARGET, current rpm, VACTUAL and load/temp are changing fast with non-sense values. If I try to start the motor, nothing happens without any error output.

Are there any hints, how to fix this?

Thanks in advance.

MZLLYNX avatar Mar 30 '22 14:03 MZLLYNX