DIY

Medium · 2 to 3 hours · about $40 in parts

Build rally gates

A RaceLyx Bridge and two laser gates on cheap ESP32 boards. Flash them from the RaceLyx app, then time point-to-point stages from your phone or PC with no cables across the course.

Parts

3×

ESP32 dev board (ESP32-WROOM-32, USB)

One for the Bridge, one for each gate. It must be the classic ESP32, not an S3 or C3.

2×

VL53L0X laser distance sensor board

One per gate.

2×

WS2812B LED stick, 8 LEDs, 5 V

One per gate. Shows the countdown, green for go, and a flash when a car passes.

1×

Dupont jumper wires, female to female

A mixed pack of 20 cm wires covers every connection.

3×

USB power bank

One per board. Skip the Bridge's if it stays plugged into the PC.

2×

60 mm arcade button with microswitch

Optional. Start and reset buttons on the Bridge. Get the 5 V LED version if you want them lit.

Want every part in one box? Get the Rally Gate Kit.

A RaceLyx Bridge and two laser gates for rally and point-to-point timing. No computer needed.

Get notified

Firmware: RaceLyx gate firmware and RaceLyx Bridge firmware. Flash it from the RaceLyx app in Timing Hardware.

How it works

There are three boards. The start gate and the finish gate each have a small laser distance sensor and a short LED stick. The RaceLyx Bridge is the hub: the gates talk to it over their own radio link (ESP-NOW), so there is no Wi-Fi router and no cable across the course. The Bridge talks to the RaceLyx phone app over Bluetooth, or to the RaceLyx desktop app over USB.

A gate triggers when something comes closer to its sensor than a set distance (56 cm out of the box). Put a gate at the side of the course, pointing across it, and a car driving past trips it.

You can add up to 10 split gates between start and finish later. Each one is another ESP32, sensor and LED stick, built the same way.

Before you start

  • You need the RaceLyx desktop app on a Windows PC to flash the boards and set them up. After that, the phone app can run stages on its own.
  • Use a USB data cable. Some cables only charge, and the PC will not see the board.
  • No soldering is needed if your sensor and LED stick come with header pins already fitted. Some are sold with loose pins, so check the listing.

1. Flash the boards

Do this before you wire anything, so you know each board works.

  1. Plug the first ESP32 into the PC.
  2. In RaceLyx, open Timing Hardware and find the Firmware panel.
  3. Choose the Master target (the Bridge’s firmware still has its old name in this list), pick the board’s COM port, and click Flash firmware. If it stalls while connecting, hold the BOOT button on the board until writing starts.
  4. Label that board Bridge.
  5. Plug in each of the other two boards in turn, choose the Gate target, and flash it. Label them Start and Finish.

The firmware comes with the app, so there is nothing to download. Later updates go over the air: with the Bridge on USB, Flash via Mesh updates a powered gate where it stands.

2. Wire each gate

Both gates are wired the same way. Unplug the board from USB while you wire it.

Gate wiring: the VL53L0X sensor goes to 3V3, GND, D21 and D22; the LED stick goes to VIN, GND and D13

Laser sensor (VL53L0X)

Sensor pinESP32 pin
VIN (or VCC)3V3
GNDGND
SDAGPIO 21 (D21)
SCLGPIO 22 (D22)

Leave the sensor’s other pins (XSHUT, GPIO1) unconnected.

LED stick (8 LEDs)

LED stick pinESP32 pin
5V (or VCC)VIN (5 V from USB)
GNDGND
DIN (data in)GPIO 13 (D13)

Wire the end marked DIN, where the arrows on the stick point away from you. The other end (DOUT) is not used.

Peel the protective film off the sensor window when you are done. It is easy to miss, and the sensor measures the film instead of the track.

3. The Bridge

The Bridge needs no wiring. If you want physical start and reset buttons, each arcade button has a switch with three tabs and, on lit buttons, an LED with two:

Button tabESP32 pin
Switch NO (normally open)GPIO 4 (D4) for Start, GPIO 5 (D5) for Reset
Switch COMGND
Switch NCNot used
LED +VIN (5 V)
LED −GND

One GND pin can feed every COM and LED −. No resistors are needed. The lights stay on whenever the Bridge has power. Use 5 V LED buttons: 12 V ones barely light on USB power.

RaceLyx Bridge buttons: NO to D4 for Start and D5 for Reset, COM and LED minus to one GND pin, LED plus to VIN

4. Tell each gate its job

A freshly flashed gate starts as gate 1, a split gate (shown as Split 1 or LyxBridge gate 1). Set each one to start or finish once; it remembers after that.

  1. Plug the Bridge into the PC and connect it on Timing Hardware, where it shows up as LyxBridge.
  2. Power only the Start gate. It appears as gate 1.
  3. Open it, go to the Config tab, and reassign it to 0 (Start Gate). The gate restarts with its new ID.
  4. Power the Finish gate, open it, and reassign it to 99 (Finish Gate).

Split gates take IDs 1 to 10, in course order.

5. Check it on the bench

  1. With both gates powered, Timing Hardware shows the Start Gate and Finish Gate checking in.
  2. Open a gate and watch its Sensor tab. Wave your hand in front of the sensor: the distance drops below the threshold line and the gate counts a pass.
  3. On the LEDs tab, try the colours. Check that green shows green. If red and green come out swapped, your LED stick uses a different colour order: pick the colours that look right in the Config tab and send them to the gates.

6. Set up at the course

  • Mount each gate on the edge of the course at car height, pointing straight across. Nothing should be inside the trigger distance when the course is empty.
  • The sensor is short range. It works best up to about a metre, so put gates where the course narrows. Change the trigger distance in the Config tab to suit your course.
  • Bright sunlight shortens the sensor’s range. Shade it if you race outdoors, and test it in the light you’ll race in.
  • Keep the Bridge roughly in sight of both gates, and walk the course to test the radio range before race day.

7. Run a stage

From the phone: open the RaceLyx phone app, connect to the Bridge over Bluetooth (it shows up as RaceLyx-Master), and start a rally. Call a driver up, and their time runs from the start beam to the finish beam. The phone rally gates guide walks through it.

From the PC: keep the Bridge on USB and run a Rally or Point-to-Point event from Event Setup as usual.

The gate lights show the countdown in blue, go in green, a white flash when a car passes, and red for a false start. You can change every colour and timing in the Config tab.