Scalextric Digital Car Decoding

ImageFor those who just want the practical stuff, go to Digital Car Decoder page

Table of Contents [Hide/Show]


Edit

Digital Car ID Signal

Beneath the car, situated just behind the car's slot guide is an Infra-Red LED (Light Emitting Diode). This LED is constantly broadcasting the car's unique ID and lane-changer command downwards to the track. Mounted into the track at strategic locations is an Infra-Red detector which receives the car's ID signal and decode it for use. The car id and lane change status is sent over 2,200 times per second.

The decoding is for two purposes
The car constantly generates the appropriate signal, based upon its programmed Car ID and the status of the Lane Change button located on the hand controller. As the car passes over the track detector, circuitry associated with the detector triggers the desired response.

Edit

Car Signal Format

The car generates its signal with a nominal bit time of 48µs, where a 1 state is LED on.

'No Lane Change' Format

In normal (ie, non-changing mode) the car signal is thus.
  • The LED is mostly off in this mode
  • First sent is a start bit, always a 0 directly after a falling edge
  • Second and third bits are padding, and carry lane changer state - always 0
  • Extra spacing bits appear until the car id.
  • Car Id is signaled with a high bit - a 1 state.
  • Car Id is therefore dependant upon the spacing between each high bit.
Car with ID #3 signal - without Lane Change

Car with ID #3 signal - without Lane Change

Format when Changing Lanes

When the Lane Change state has been selected from the hand controller, the centre portion of the signal becomes inverted.
  • The LED is mostly on in this mode
  • First sent is a start bit, always a 1, directly after a rising edge
  • Second and third are padding - always 1 when changing lanes
  • Extra 1 bits appear until the car id.
  • Car Id bit is a zero, and effectively marks the car id
Car with ID #3 signalling lane change

Car with ID #3 signalling lane change


 Note that the timing of the car id output is not perfect nor exact. There is a small amount of jitter present (approx ±500ns) on the LED, which any detector circuit must take into account. 

Edit

List of Car LED Signals

Car IDs 1-5 when not signalling lane change

Car IDs 1-5 when not signalling lane change


Edit

Digital Car Decoding

Decoding Car ID

Details on how to decode the Car ID are provided on Car Decoder page.

Decoding Lane Change

The decision to change lanes or not, can be based upon deciding if the are more zero bits than one bits, or vise versa. The changer flipper should be set to change lanes when there are more one bits than zero bits. Exact timing of the Car Id signal is not as significant when decoding the lane change state.Ian Harding, Christchurch, New Zealand