ajbachhuber
Member
My father found a old traffic light that he wants to have in the basement. (We're car people... don't ask) What I want to do is write a program, using a DL-05, to flash the lights in some kind of a "random pattern."
I searched through the archives here and came up with one other thread that I read through with interest. (Search: "random number") I read the different opinons stating that a random pattern isn't really random and I agree. For my application a pattern that repeats after say, a minute or more would be plenty "fancy."
I used some of the advice on how to come up with a random number set. I used the "rand()*(b-a)+b" command in Excel and that gave me a satisfactory list of numbers between 10 and 100. Now this is where I don't know where to go next. (Limited experience with programs that handle numbers or math functions is my problem) I can set timers to use V-memory locations so I think I know how to get the numbers off of the accumulator/stack but I am not sure how to get the numbers onto the accumulator in a sequence. At least I think that is what I want to do.
There was also a suggestion to use timers that reset each other but I was unable to follow that logic. This seems like an easier plan but I wasn't sure.
Any help would be great. This is just a home project so it doesn't have to be state of the art. Thanks in advance.
I searched through the archives here and came up with one other thread that I read through with interest. (Search: "random number") I read the different opinons stating that a random pattern isn't really random and I agree. For my application a pattern that repeats after say, a minute or more would be plenty "fancy."
I used some of the advice on how to come up with a random number set. I used the "rand()*(b-a)+b" command in Excel and that gave me a satisfactory list of numbers between 10 and 100. Now this is where I don't know where to go next. (Limited experience with programs that handle numbers or math functions is my problem) I can set timers to use V-memory locations so I think I know how to get the numbers off of the accumulator/stack but I am not sure how to get the numbers onto the accumulator in a sequence. At least I think that is what I want to do.
There was also a suggestion to use timers that reset each other but I was unable to follow that logic. This seems like an easier plan but I wasn't sure.
Any help would be great. This is just a home project so it doesn't have to be state of the art. Thanks in advance.