Table of Contents
CTC Test01
Content → Hardware → CTC Modules → CTC Test01
This documentation is based on Rocrail Version 2.1.4055 dated 15.01.2024; WIO Firmware 814 .
Update: 21.05.2024, Rocrail Version 2.1.4609; WIO Firmware 914
The development is still "Work In Progress" (WIP).
This description may be changed without notice.
Introduction
This Rocrail Test-Plan has been used to test most of the CTC objects.
It may be used to learn the CTC configuration for the users own needs.
To display the configured block contents three 128x32 pixel OLED displays were used. A Pico-W was used as a WIO.
All the testing is done in simulation mode - no real tracks and locomotives.
Hint: start with an "Initialize" to get a defined display of all object: Rocrail menu / Control / Start of day / Init field
The LEDs were shown and checked on a LED stripe with a subset of the first 100 LEDs out of the required 131 LEDs. The image just shows an example of the output at some state of testing and does not reflect the actual state of the contents of the workspace.
Configuration
Testing is done with all CTC options activated. see CTC Rocrail Configuration
WIO ID 51 is used for testing.
The first 8 I/O-pins are configured as inputs ("b") and will cover the first 8 CTC buttons.
Three I2C OLED displays are used to display the contents of three blocks.
The option "Restore LEDs" is not used for performance reasons and to minimize memory accesses.
More details can be found at WIO Setup
The CTC index always gives a good overview of the LED and button addresses. see CTC-Module Index
Hardware
The test hardware:
No. | Type | Remark | Link |
---|---|---|---|
1 | Pico-W | Raspberry Pi Pico W; GCA WIO_Pico_W_01; | WIOpico 16 I/O |
1 | TCA9548A | I2C 8 channel Multiplexer; PCA9548A; | WIO Display Multiplex |
3 | displays | 0,91inch I2C OLED Display; 128 x 32 Pixel; SSD1306/SH1106; | Display SSD1306/SH1106 |
…131 | WS2812B | LED stripe, 5 Volt; | LEDs |
8 | buttons | pushbutton single pole |
Workspace
The Rocrail workspace .