![]() Reactiontimeelapsed=reactiontimerend-reactiontimerstart Serial.begin(9600) // open communication port Unsigned long tracktimestart //Time of run start Unsigned long reactiontimeelapsed //reaction time ![]() Unsigned long reactiontimerend //reaction timer end Unsigned long reactiontimerstart //reaction timer start Unsigned long reactiontimer = 1500 //reaction timer Unsigned long light3=1500 //start counting Unsigned long light2=1000 //start counting Unsigned long light1=500 //start counting Unsigned long clockstart //start counting Tried this with stuff I thought up without the hardware: I ordered some ldr's and some lasers aswell Now for the red light - reactiontimer - time down the track etc. ![]() You push the button and it lights up the right way. If (millis()>=stled1 & millis()=stled2 & millis()=stled3 & millis()=stled4 & millis()<=stled5) Serial.begin(9600) // open communication po Well this is exactly what I wanted to do.ĭrag racing is not a big thing in the netherlands but that's why I want this to work! I want the tree to beable to display by way of led and lcd which car or driver stages first and redlight. mini arduino pro and a mega 2560 I also would like to use a Lcd keypad sheild as a display wired if nessary but i also have a separate lcd same size and buttons to spare so if the lcd sheild is a problem i can ditch that and use the componets instead In the future i'd like to add things like finish line sensors and trap and finish times which would mean wifi so keeping that in mind i have two boards that i can spare or totally devote to the build 1. I'm not sure what kind of sensors to use because i dont want to use mirrors or anything extra i want it to be all-in-one so to speak. My plan is to stage the cars with a set of sensors that will active the tree and then another set of sensors monitor or police the cars till their green lighted. i am looking to expand the tree to a fullblown system as my knowledge and skill set advances but for now i'd like it to be basic in function. i'll list my expectations so that i won't waste anyone's time. Ive been going nuts looking for a starter project to get some seat time with arduino and i'd like to build something that would keep my nose open so a drag tree for the up and coming season seems to be a good motivational project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |