電車ベクトル (Train Vector):

Software post is now online. 3rd & final post about the current version 2.

https://togo-lab.io/?p=243

Job of the SW: Read 2 analogue inputs, averages signals, calibrates itself at startup, applies thresholds + hysteresis, remembers the last valid direction (using by a state machine) & switches the headlights accordingly.

The optional functions are not in use. I want to wait until feedback from the train club testing this project.

Link to the git:
https://gitea.togo-lab.io/tgohle/0004-DenshaBekutoru/src/branch/master/firmware/ArduinoTest/DenshaBekutoru-0004_Version-0-2_ProMini_PCB2026-2_V01

#電車ベクトル #TrainVector #ToGoLab #BrickTrains #ModelRailway #Arduino #Electronics #Projects

電車ベクトル (Train Vector): The Software – togo-lab.io

電車ベクトル (Train Vector project): Hardware description:

The main board reads the noisy motor signal of a brick-built model locomotive directly from the H-bridge controller, isolates and processes it & controls the headlights.

There are also a future option board & a detachable test circuit (4 LEDs).

Blog, describing the schematic & showing the PCB:
https://togo-lab.io/?p=233

Gitea (schematic, PCB):
https://gitea.togo-lab.io/tgohle/0004-DenshaBekutoru/src/branch/master/KiCad/0004-DenshaBekutoru_v0.2

#電車ベクトル #TrainVector #ToGoLab #BrickTrains #ModelRailway #Arduino #Electronics #Projects

Finished my 電車ベクトル (Train Vector) project:

A Arduino-based board will detect the driving direction of brick-built model locomotives directly from the noisy H-bridge motor controller & switches the headlights automatically.

Sounds simple, but due signal noise, switching artefacts & inductive (reverse) spikes direction sensing is quite hard.

Schematics, PCB, and firmware for beta (version2) finished & working.

Three PCBs were built & tested & the first 2 boards are now handed over for real-life testing in a model railway club.

Blog:
https://togo-lab.io/?p=223

Gitea (Schematic, PCB):
https://gitea.togo-lab.io/tgohle/0004-DenshaBekutoru

#電車ベクトル #TrainVector #ToGoLab #BrickTrains #ModelRailway #Arduino #Electronics #projects