Skip to content

Commit

Permalink
Merge pull request #40 from Chr157i4n/dev
Browse files Browse the repository at this point in the history
version 0.3.4
  • Loading branch information
Chr157i4n authored Nov 13, 2023
2 parents 310d5e1 + 61f6f36 commit 6c49e3b
Show file tree
Hide file tree
Showing 5 changed files with 516 additions and 177 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# Changelog

## version 0.3.4
- fixed do_homing()
- added minspeed to do_homing()
- added TMC_2209_math.py

## version 0.3.3
- added correct StallGuard min_speed calculation
- added correct StallGuard min_speed calculation

## version 0.3.2
- add pylint github action
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,20 +91,20 @@ if not, check the connection of the pin.
#### [test_script_03_basic_movement.py](tests/test_script_03_basic_movement.py)
This script should move the motor 6 times, one revolution back and forth.

#### [test_script_04_stallguard.py](tests/test_script_04_stallguard.py)
#### [test_script_04_stallguard.py](tests/test_script_04_stallguard.py)
In this script the stallguard feature of the TMC2209 is beeing setup.
A funtion will be called, if the driver detects a stall. The function stops the current movement.
The motor will be moved 10 revolutions. If the movement is finished unhindered, the script outputs ```Movement finished successfully```.
If you block the motor with pliers or something similar, the the motor will stop and the script outputs ```StallGuard!``` and ```Movement was not completed```

#### [test_script_05_vactual.py](tests/test_script_05_vactual.py)
#### [test_script_05_vactual.py](tests/test_script_05_vactual.py)
VACTUAL allows moving the motor by UART control. It gives the motor velocity in +-(2^23)-1 [μsteps / t]

#### [test_script_06_multiple_drivers.py](tests/test_script_06_multiple_drivers.py)
#### [test_script_06_multiple_drivers.py](tests/test_script_06_multiple_drivers.py)
Multiple drivers can be addressed via UART by setting different addresses with the MS1 and MS2 pins.
Simultaneous movement of multiple motors can be done with threaded movement.

#### [test_script_07_threads.py](tests/test_script_07_threads.py)
#### [test_script_07_threads.py](tests/test_script_07_threads.py)
In this script, the movement of a stepper with threads is shown. This can be used to do other task while moving a motor, or to move several motors simultaneous.

\
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = TMC_2209_Raspberry_Pi
version = 0.3.3
version = 0.3.4
author = Christian Köhlke
author_email = christian@koehlke.de
description = this is a Python libary to drive a stepper motor with a Trinamic TMC2209 stepper driver and a Raspberry Pi
Expand Down
Loading

0 comments on commit 6c49e3b

Please sign in to comment.