Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Experimenting with Scalextric Lane Changers
#13

The experimental lane changers are proving a lot of fun. I now have all four sensors functioning correctly (two per lane - let’s call them SensorA and SensorB). Also I have live serial comms running from the ATtiny3224 via an opto-isolator onto my PC for analysis of vehicles transiting XLC lane changers.

The initial algorithm will use my ‘so called’ A-B-C-D-E-F approach. The letters correspond to:


A = read SensorA
B = read SensorB
C = Calculations
D = Decision time i.e. the point in time when the flipper is to be actuated
E = Entry time - i.e. entering the collision zone
F = Finish time - i.e. exiting the collision zone

So the approach here is that when the vehicle transits SensorA the onboard 24bit clock records the time to 4microsecond accuracy. The same happens at SensorB. LC button status is also determined.

Calculations are then carried out to determine three future points in time, first the latest time for actuating the lane change flipper, second the time when this vehicle enters the zone where collisions may occur and finally the time when the vehicle finishes travelling through this zone. Vehicle speed will also be calculated.

When vehicles are travelling in both lanes the decision on whether to allow a vehicle to change lanes will be determined by whether one car can exit the collision zone before the other car enters the same collision zone. It all comes down to comparing the above calculated time values for the two cars.

That’s the (simple) theory… next to put it to the test. And the serial link will display all the above calculations.

So a nice little project!

c
[+] 3 members Like Dr_C2's post
Quote


Messages In This Thread
Experimenting with Scalextric Lane Changers - by Dr_C - 28th-Oct-23, 06:04 PM
RE: Experimenting with Scalextric Lane Changers - by Dr_C - 29th-Oct-23, 11:21 PM
RE: Experimenting with Scalextric Lane Changers - by JasonB - 30th-Oct-23, 01:21 AM
RE: Experimenting with Scalextric Lane Changers - by Dr_C - 30th-Oct-23, 01:49 AM
RE: Experimenting with Scalextric Lane Changers - by Flux Capacitor - 30th-Oct-23, 06:11 AM
RE: Experimenting with Scalextric Lane Changers - by Dr_C - 30th-Oct-23, 09:28 AM
RE: Experimenting with Scalextric Lane Changers - by Flux Capacitor - 30th-Oct-23, 10:19 AM
RE: Experimenting with Scalextric Lane Changers - by Dr_C - 30th-Oct-23, 07:02 PM
RE: Experimenting with Scalextric Lane Changers - by Dr_C - 7th-Nov-23, 10:22 AM
RE: Experimenting with Scalextric Lane Changers - by Dr_C - 7th-Nov-23, 12:37 PM
RE: Experimenting with Scalextric Lane Changers - by Dr_C - 7th-Nov-23, 10:18 PM
RE: Experimenting with Scalextric Lane Changers - by Dr_C - 8th-Nov-23, 11:50 AM
RE: Experimenting with Scalextric Lane Changers - by Dr_C - 20th-Nov-23, 01:22 PM
RE: Experimenting with Scalextric Lane Changers - by Dr_C - 20th-Nov-23, 11:03 PM
RE: Experimenting with Scalextric Lane Changers - by woodcote - 22nd-Nov-23, 11:16 AM
RE: Experimenting with Scalextric Lane Changers - by Dr_C - 22nd-Nov-23, 12:06 PM
RE: Experimenting with Scalextric Lane Changers - by woodcote - 22nd-Nov-23, 01:09 PM
RE: Experimenting with Scalextric Lane Changers - by Dr_C - 22nd-Nov-23, 11:53 PM

Possibly Related Threads...
Thread / Author Replies Views Last Post
Last Post by Br00k1e
19th-Jan-26, 12:05 AM
Last Post by Scott
1st-Dec-25, 11:41 PM
Last Post by woodcote
23rd-Apr-25, 08:03 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)