Skip to content

Commit cdd729a

Browse files
committed
Commented out calls to serial end() for software serial and ESP32
1 parent bc08b82 commit cdd729a

File tree

4 files changed

+22
-22
lines changed

4 files changed

+22
-22
lines changed

.metadata/README.org

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
* Library Information
1414
- Name :: TMC2209
15-
- Version :: 9.4.1
15+
- Version :: 9.4.2
1616
- License :: BSD
1717
- URL :: https://github.com/janelia-arduino/TMC2209
1818
- Author :: Peter Polidoro

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
- [Library Information](#org2f9c034)
2-
- [Stepper Motors](#org46f7059)
3-
- [Stepper Motor Controllers and Drivers](#orga565949)
4-
- [Communication](#org7308e9d)
5-
- [Settings](#org1c50612)
6-
- [Examples](#orgaacfc7b)
7-
- [Hardware Documentation](#orgdb15521)
8-
- [Host Computer Setup](#org0850996)
1+
- [Library Information](#orgcb6898d)
2+
- [Stepper Motors](#orgb4cdfb7)
3+
- [Stepper Motor Controllers and Drivers](#org5d75c4e)
4+
- [Communication](#org949962f)
5+
- [Settings](#org89e5ca7)
6+
- [Examples](#org2ea2a1e)
7+
- [Hardware Documentation](#orga8db4a1)
8+
- [Host Computer Setup](#org670ee5a)
99

1010
<!-- This file is generated automatically from metadata -->
1111
<!-- File edits may be overwritten! -->
1212

1313

14-
<a id="org2f9c034"></a>
14+
<a id="orgcb6898d"></a>
1515

1616
# Library Information
1717

1818
- **Name:** TMC2209
19-
- **Version:** 9.4.1
19+
- **Version:** 9.4.2
2020
- **License:** BSD
2121
- **URL:** <https://github.com/janelia-arduino/TMC2209>
2222
- **Author:** Peter Polidoro
@@ -30,7 +30,7 @@ The TMC2209 is an ultra-silent motor driver IC for two phase stepper motors with
3030
<img src="./images/trinamic_wiring-TMC2209-description.svg" width="1920px">
3131

3232

33-
<a id="org46f7059"></a>
33+
<a id="orgb4cdfb7"></a>
3434

3535
# Stepper Motors
3636

@@ -41,7 +41,7 @@ A stepper motor, also known as step motor or stepping motor, is a brushless DC e
4141
[Wikipedia - Stepper Motor](https://en.wikipedia.org/wiki/Stepper_motor)
4242

4343

44-
<a id="orga565949"></a>
44+
<a id="org5d75c4e"></a>
4545

4646
# Stepper Motor Controllers and Drivers
4747

@@ -89,7 +89,7 @@ Another controller option is to use both a microcontroller and a separate step a
8989
<img src="./images/trinamic_wiring-TMC2209-stepper-controller.svg" width="1920px">
9090

9191

92-
<a id="org7308e9d"></a>
92+
<a id="org949962f"></a>
9393

9494
# Communication
9595

@@ -391,7 +391,7 @@ A library such as the Arduino TMC429 library may be used to control the step and
391391
[Arduino TMC429 Library](https://github.com/janelia-arduino/TMC429)
392392

393393

394-
<a id="org1c50612"></a>
394+
<a id="org89e5ca7"></a>
395395

396396
# Settings
397397

@@ -546,7 +546,7 @@ In voltage control mode, the hold current scales the PWM amplitude, but the curr
546546
In current control mode, setting the hold current is the way to adjust the stationary motor current. The driver will measure the current and automatically adjust the voltage to maintain the hold current, even with the operating conditions change. The PWM offset may be changed to help the automatic tuning procedure, but changing the hold current alone is enough to adjust the motor current since the driver will adjust the offset automatically.
547547

548548

549-
<a id="orgaacfc7b"></a>
549+
<a id="org2ea2a1e"></a>
550550

551551
# Examples
552552

@@ -574,7 +574,7 @@ In current control mode, setting the hold current is the way to adjust the stati
574574
<https://github.com/janelia-kicad/trinamic_wiring>
575575

576576

577-
<a id="orgdb15521"></a>
577+
<a id="orga8db4a1"></a>
578578

579579
# Hardware Documentation
580580

@@ -609,7 +609,7 @@ In current control mode, setting the hold current is the way to adjust the stati
609609
[Janelia Stepper Driver Web Page](https://github.com/janelia-kicad/stepper_driver)
610610

611611

612-
<a id="org0850996"></a>
612+
<a id="org670ee5a"></a>
613613

614614
# Host Computer Setup
615615

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=TMC2209
2-
version=9.4.1
2+
version=9.4.2
33
author=Peter Polidoro <[email protected]>
44
maintainer=Peter Polidoro <[email protected]>
55
sentence=The TMC2209 is an ultra-silent motor driver IC for two phase stepper motors with both UART serial and step and direction interfaces.

src/TMC2209/TMC2209.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ void TMC2209::setup(HardwareSerial & serial,
3939
hardware_serial_ptr_ = &serial;
4040
if ((alternate_rx_pin < 0) || (alternate_tx_pin < 0))
4141
{
42-
hardware_serial_ptr_->end();
42+
// hardware_serial_ptr_->end(); // Causes issues with some versions of ESP32
4343
hardware_serial_ptr_->begin(serial_baud_rate);
4444
}
4545
else
4646
{
47-
hardware_serial_ptr_->end();
47+
// hardware_serial_ptr_->end(); // Causes issues with some versions of ESP32
4848
hardware_serial_ptr_->begin(serial_baud_rate, SERIAL_8N1, alternate_rx_pin, alternate_tx_pin);
4949
}
5050

@@ -81,7 +81,7 @@ void TMC2209::setup(SoftwareSerial & serial,
8181
SerialAddress serial_address)
8282
{
8383
software_serial_ptr_ = &serial;
84-
software_serial_ptr_->end();
84+
// software_serial_ptr_->end(); // Does not exist in some implementations
8585
software_serial_ptr_->begin(serial_baud_rate);
8686

8787
initialize(serial_baud_rate, serial_address);

0 commit comments

Comments
 (0)