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/products/ex-commandstation/exrail/cookbooks/advanced/display-track-status.md
+42-3Lines changed: 42 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,12 +4,12 @@
4
4
5
5
To display track status, add a line in myAutomation.h
6
6
```cpp
7
-
#include"myTrackStatus.example.h"
7
+
#include"myTrackStatus.example.h"
8
8
```
9
9
10
10
If using Mega, a line will be needed in config.h to allocate memory for additional lines on the first display.
11
11
```cpp
12
-
#defineMAX_CHARACTER_ROWS 17
12
+
#defineMAX_CHARACTER_ROWS 17
13
13
```
14
14
15
15
9 plus number of tracks; 17 for 8 tracks.
@@ -19,7 +19,9 @@ In addition to displaying track status, myTrackStatus.example.h will update the
19
19
20
20
myTrackStatus.example.h can be used by adding the `#include` line in myAutomation.h, or you can copy/rename the file in your backup folder and customize it so that the information is displayed on a different screen.
21
21
22
-
```
22
+
## myAutomation.h
23
+
24
+
```cpp
23
25
// myAutomation.h - as used in the above example
24
26
25
27
#include "myTrackStatus.example.h"
@@ -34,6 +36,7 @@ POWEROFF // power command follows change in track mode
34
36
DONE
35
37
```
36
38
39
+
## myTrackStatus.h
37
40
38
41
Contents of the example file -- suggested for review/reference on how various EXRAIL commands have been used.
- Error indicating the need for installing Windows drivers
4
-
link to driver
3
+
## CH340 USB Drivers
5
4
6
-
- Info regarding the need to add capacitor to enable uploading
5
+
Windows USB driver is required.
6
+
CH340 driver info [https://learn.sparkfun.com/tutorials/how-to-install-ch340-drivers](https://learn.sparkfun.com/tutorials/how-to-install-ch340-drivers/all)
7
7
8
-
- asdf
8
+
Note that only one program can use the USB connection simultaneously. Close the device monitor or other programs when uploading.
9
9
10
-
- jkl
10
+
## Track voltage
11
+
12
+
DCC is a square wave signal. The voltage of the track power supply will be present on each rail 50% of the time. Use the DC scale to measure voltage -- each rail vs GND should be 50% of track power supply.
13
+
14
+
Few digital multimeters will provide a consistent/useful reading on the AC scale.
15
+
16
+
## OLED
17
+
18
+
Select 132x64 or 128x64
19
+
If one results in blank screen or image is shifted, try the other.
20
+
21
+
## Power supply
22
+
23
+
If your power supply is less than 5A, add a line in config.h to set overcurrent reporting lower - 90% of track power supply.
Continuous faults will be reported with power on, if track power supply is not connected.
29
+
30
+
An initial fault report at power-on is not an issue.
31
+
32
+
## Overcurrent reporting
33
+
34
+
Some - 600mA or less - overcurrent reporting on the programming track is not unusual. This is due to lack of precision of the ESP32-WROOM ADC, and the 250mA trip current for the programming track when not reading/writing CVs.
35
+
36
+
There is a command `<C PROGBOOST>` to override the 250mA limit. Do not use it unless you are comfortable that your loco/decoder do not have issues (which 250mA is designed to protect).
37
+
Note that `<C PROGBOOST>` remains in effect until the command station is restarted.
38
+
39
+
## WiFi
40
+
41
+
WiFi configuration is different, starting with version 5.7.0.
42
+
config.h is used for WiFi configuration in earlier versions.
43
+
Link to [5.7.0 WiFi Configuration](../../products/ex-commandstation/config-wifi-esp32.md)
44
+
45
+
Note that if the new WiFi configuration commands are sent via a WiFi connection, your existing connection will drop. Current connection info should be reported on the OLED.
0 commit comments