You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/hardware/microcontrollers/esp32.rst
+31-9Lines changed: 31 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -104,8 +104,8 @@ From top to bottom the pins are: `IO0`, `5V` (incorrectly labelled `IOREF` on th
104
104
:scale:10%
105
105
106
106
107
-
Using an Arduino Motor Shield R3 or clone
108
-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
107
+
Using an Arduino Motor Shield R3
108
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
109
109
To avoid damaging the ESP32's analog inputs, the `IOREF` pin on must be bent outwards or cut so it will not go into the ESPDUINO-32 socket. Then use a jumper from the `3.3v` pin to `IOREF` on the |motor shield| itself.
110
110
111
111
For DCC current sensing bend or cut the `A0` and `A1` pins because by default they are connected to `GPIO2` and `GPIO4` on the ESP32 which are not useable at the same time as WiFi.
@@ -115,6 +115,27 @@ Instead, on the top of the |motor shield| connect `A0` to `A2` and `A1` to `A3`
115
115
:alt:MotorShield configuration for ESP32
116
116
:scale:50%
117
117
118
+
Additional information on the use of L298 Clone motor shields
:alt:L298 motor shield - voltage divider resistors
137
+
:scale:15%
138
+
118
139
Using a |DCC-EX| EX-MotorShield8874
119
140
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
120
141
@@ -134,16 +155,17 @@ Building DCC-EX for ESP32
134
155
135
156
The easiest way of building DCC-EX for the ESP32 is via EX-Installer by selecting the ESP32 option. Click here for :doc:`EX-Installer installation instructions </ex-commandstation/installer-diy>`.
136
157
137
-
Adding ESP32 support to the Arduino IDE
138
-
----------------------------------------
139
-
140
-
In order to compile for the Espressif ESP32 platforms, you will need to add the board definitions to the |Arduino IDE|. To do this, follow the instructions on the `official Espressif guide <https://espressif-docs.readthedocs-hosted.com/projects/arduino-esp32/en/latest/installing.html#installing-using-arduino-ide>`_.
141
-
142
158
Adding ESP32 support to VS Code and PlatformIO
143
159
----------------------------------------------
144
160
145
161
When using VS Code and PlatformIO it will auto-configure from the entry in the platformio.ini file when you select the ESP32 target to be built.
146
162
147
-
.. note::
148
-
The ESP32 board package version 2.0.17 is required.
163
+
Adding ESP32 support to the Arduino IDE
164
+
----------------------------------------
149
165
166
+
In order to compile for the Espressif ESP32 platforms, you will need to add the board definitions to the |Arduino IDE|. To do this, follow the instructions on the `official Espressif guide <https://espressif-docs.readthedocs-hosted.com/projects/arduino-esp32/en/latest/installing.html#installing-using-arduino-ide>`_.
167
+
168
+
.. note::
169
+
170
+
ESP32 Espressif boards package version 2.0.17 is required. |BR|
Copy file name to clipboardExpand all lines: docs/reference/hardware/microcontrollers/microcontrollers.rst
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -367,12 +367,13 @@ From top to bottom the pins are: `IO0`, `5V` (incorrectly labelled `IOREF` on th
367
367
:scale:10%
368
368
369
369
370
-
Using an Arduino Motor Shield R3 or clone
371
-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
370
+
Using an Arduino Motor Shield R3
371
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
372
372
To avoid damaging the ESP32's analog inputs, the `IOREF` pin on must be bent outwards or cut so it will not go into the ESPDUINO-32 socket. Then use a jumper from the `3.3v` pin to `IOREF` on the |motor shield| itself.
373
373
374
-
For DCC current sensing bend or cut the `A0` and `A1` pins because by default they are connected to `GPIO2` and `GPIO4` on the ESP32 which are not useable at the same time as WiFi.
375
-
Instead, on the top of the |motor shield| connect `A0` to `A2` and `A1` to `A3` via jumpers. This will then automatically work when you select STANDARD_MOTOR_SHIELD as the MotorShield in config.h because the definition is in place when ESP32 is selected as the build target.
374
+
For DCC current sensing bend or cut the `A0` and `A1` pins because by default they are connected to `GPIO2` and `GPIO4` on the ESP32 which are not useable at the same time as WiFi. |BR|
375
+
Instead, on the top of the |motor shield| connect `A0` to `A2` and `A1` to `A3` via jumpers. This will then automatically work when you select STANDARD_MOTOR_SHIELD as the MotorShield in config.h because the definition is in place when ESP32 is selected as the build target. |BR|
376
+
> Note: L298 Clone motor shields require a voltage divider circuit. :ref:`Link to further detail. <reference/hardware/microcontrollers/esp32:Additional information on the use of L298 Clone motor shields>`
Copy file name to clipboardExpand all lines: docs/reference/hardware/motorboards/ex-motor-shield-8874.rst
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -204,7 +204,8 @@ Stacking EX-MotorShield8874s
204
204
205
205
This is **definitely** advanced Tinkerer/Engineer level work. Do **not** attempt it without some confidence you know what you are doing electronically. Future revisions of the EX-MotorShield8874 will look at alternative ways to expand the number of DCC districts.
206
206
207
-
This article covers both stacking an Arduino Motor Shield R3 (or clone) and an EX-MotorShield8874, and stacking two EX-MotorShield8874s.
207
+
This article covers both stacking an Arduino Motor Shield R3 and an EX-MotorShield8874, and stacking two EX-MotorShield8874s. |BR|
208
+
> Note that L298 clone motor shields can be used on 5V Mega, etc., but require modification for use with 3.3V ESP32-WROOM and Nucleo-F4. :ref:`Link to further detail. <reference/hardware/microcontrollers/esp32:Additional information on the use of L298 Clone motor shields>`
208
209
209
210
Stacking an Arduino Motor Shield R3 and EX-MotorShield8874
Copy file name to clipboardExpand all lines: docs/reference/software/command-summary-consolidated.rst
+17-3Lines changed: 17 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2041,7 +2041,7 @@ To monitor one or more Arduino pins for sensor triggers, first define/edit/delet
2041
2041
2042
2042
*Parameters:* |BR|
2043
2043
|_| > **id:** identifier of the Sensor (0-32767) (You pick the ID & they are shared between Turnouts, Sensors and Outputs) |BR|
2044
-
|_| > **vpin:** vpin of the input to be controlled by the sensor object For Arduino input pins, this is the same as the digital pin number. For servo inputs and I/O expanders, it is the pin number defined for the HAL device (if present), for example 164-179 for pins on the first MCP23017 GPIO expander module, and 180-195 for the second MCP23017 module.|BR|
2044
+
|_| > **vpin:** vpin of the input to be controlled by the sensor object For Arduino input pins, this is the same as the digital pin number. For servo inputs and I/O expanders, it is the pin number defined for the HAL device (if present), for example 164-179 for pins on the first MCP23017 GPIO expander module, and 180-195 for the second MCP23017 module.|BR|
|_| |_| |_| |_| • 0=don't use pull-up resistor ACTIVE=HIGH
@@ -2121,7 +2121,7 @@ Outputs (Configuring the EX-CommandStation)
2121
2121
-------------------------------------------
2122
2122
2123
2123
.. contents:: In This Section
2124
-
:depth:4
2124
+
:depth:5
2125
2125
:local:
2126
2126
:class: in-this-section
2127
2127
@@ -2132,7 +2132,21 @@ Definitions and state (ACTIVE/INACTIVE) for pins are retained in EEPROM and rest
2132
2132
The default is to set each defined pin to active or inactive according to its restored state.
2133
2133
However, the default behaviour can be modified so that any pin can be forced to be either active or inactive upon power-up regardless of its previous state before power-down.
2134
2134
2135
-
To have |EX-CS| utilise one or more Arduino pins as custom outputs, first define/edit/delete output definitions using the following variation of the ``<Z>`` command:
2135
+
To have |EX-CS| utilise one or more Arduino pins as custom outputs, first define/edit/delete output definitions using the following variation of the ``<Z>`` command, or the lowercase ``<z>`` command can be used with no pre-definition required.
2136
+
2137
+
|hr-dashed|
2138
+
2139
+
.. _native-command-lower-z-vpin-activate:
2140
+
2141
+
``<z vpin> or <z -vpin>`` - Control an output pin; no setup required
Copy file name to clipboardExpand all lines: docs/trackmanager/technical-details.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,7 +72,7 @@ A simplified representation of what the dual (PWM) signals might look like throu
72
72
Additional Notes
73
73
================
74
74
75
-
This is not zero (0) stretching. We do not support the zero stretching address function, found on Digitrax and Lenz command Stations on purpose. The constant dual DCC electrical signal may damage certain types of older DC motors if left on for a long time.|BR| **So never put a DC locomotive on a DCC track.**
75
+
This is not zero (0) stretching. We do not support the zero stretching address function, found on Digitrax and Lenz command Stations on purpose. The constant dual DCC electrical signal may damage certain types of older DC motors if left on for a long time.|BR| **So never put a DC locomotive on a DCC track.**
76
76
77
77
Unlike Digitrax and Lenz 0 Zero stretching DCC (PWM) signal which leaves the engine lit up and humming loudly with the throttle and engine at 0 speed, because it is receiving a Dual DCC(PWM) aka AC signal, while the |EX-CS| TrackManager is dead quiet and at rest at 0 speed.
0 commit comments