I upgraded the random flashing lights code, it is now random using the Arduino’s random() function, which is apparently sudo random, as if you run it many times with the same seed, then you’ll get the same long old list of numbers, although they do appear to the human eye to be random if you didn’t know that. I have seeded the random by reading a floating analogue pin, so it’ll get a value between 0 and 1023 and use that for the seed each time the Arduino starts. Which will be plenty random enough for me.

I am not happy with this code yet. The lights need remain on for greater periods and also overlap during their on periods. Not really sure how I’ll achieve this yet, but I’m sure it’ll fairly easy. Also, I need to resolve the indicators not coming on. Something is either wired differently in the Land Rover to the simulator or I have no idea.

Categories:

Comments are closed

Archives