DCC-EX / CommandStation-EX

EX-CommandStation firmware from DCC-EX. Includes support for WiFi and a standalone WiThrottle server. A complete re-write of the original DCC++.
https://dcc-ex.github.io/
GNU General Public License v3.0
154 stars 104 forks source link

Bug Report: Amber signal using SIGNAL() stays lit, or unlit #295

Open peteGSX opened 1 year ago

peteGSX commented 1 year ago

Version

4.2.9pre1

Bug description

When running this sequence, the amber LED tends to stay lit at all times after it is turned on the first time. I can't determine a specific pattern, but it will eventually turn off, but then it stays off for a few cycles, then turns on again and stays on.

I've also noted a couple of times that the green LED does not light as well, but the majority of time it does.

If using SET/RESET to replicate the behaviour of the signals, the LEDs turn on and off exactly as expected.

I have used a servo signal with the same sequence and it operates perfectly.

Steps to reproduce the bug

Use this sequence.

` SIGNAL(809, 810, 811)

AUTOSTART SEQUENCE(3) RED(809) DELAY(2000) AMBER(809) DELAY(2000) GREEN(809) DELAY(2000) FOLLOW(3) `

When using SET/RESET instead to control those LEDs on the same Vpins, they work correctly:

AUTOSTART SEQUENCE(3) SET(809) RESET(810) RESET(811) DELAY(2000) SET(810) RESET(809) RESET(811) DELAY(2000) SET(811) RESET(809) RESET(810) DELAY(2000) FOLLOW(3)

Expected behaviour

The signal should alternate between red, amber, green, and back as per the sequence instructions.

Screenshots

No response

Hardware in use

Nucleo F411RE (CS) Arduino Uno (EX-IOExpander)

Additional context

No response

peteGSX commented 1 year ago

When using the same signal manually, it is more reliable, but occasionally the amber LED does not turn on. I haven't had it stay on though (at least not yet).