Originally published by r/LEGOtrains

Back/Forward train with color sensor that works?

February 21, 2026
Discovered for you from r/LEGOtrains

Hello! I'm not asking for suggestion. I'm proposing a possible solution to the well known color sensor unreliability. The code below is for pybricks and implements a simple concept: you want to avoid false readings, but if you have a relevant sequential number of readings of the same color, then you're on a purposedly placed color tag. Size of the colored tag is 2x8 stud at speed 35% and read delay of 100ms for a light single car trolley. Adjusting those values will define the length of the...

r/LEGOtrains

Read the Full Article

This is a summary. Read the complete story at r/LEGOtrains.

Read Full Article on r/LEGOtrains