Skip to main content
Arduino

Timeline for RC drag strip finish line with mph calculation (using 1" spaced lasers)

Current License: CC BY-SA 3.0

13 events
when toggle format what by license comment
Apr 13, 2017 at 12:50 history edited Community Bot
replaced http://arduino.stackexchange.com/ with https://arduino.stackexchange.com/
Feb 4, 2016 at 5:21 comment added Nick Gammon I chose the slower speed because my kids just did a pinewood derby race - so, not quite 100mph?
Feb 4, 2016 at 5:16 comment added Dave X I made more edits and it seems to compile for an Uno. To test it on the AT90usb1286 hardware I've got, I'd need to switch things over to port B.
Feb 4, 2016 at 5:11 history edited Dave X CC BY-SA 3.0
fix code to compile
Feb 4, 2016 at 5:03 history edited Dave X CC BY-SA 3.0
fix code to compile
Feb 4, 2016 at 4:52 comment added Dave X Yes, catching all entries was what I was aiming at. Thanks for the tips.
Feb 4, 2016 at 4:49 history edited Dave X CC BY-SA 3.0
+volatile and 16 bit shift
Feb 4, 2016 at 4:39 comment added Nick Gammon Are you trying to catch all entries? In that case 4s might be too little. You could catch overflows ... wait you just edited that in. Excellent. Tip: make t1Cycles volatile. Also I think you want to shift t1Cycles left 16, as Timer 1 is a 16-bit timer.
Feb 4, 2016 at 3:46 history edited Dave X CC BY-SA 3.0
Add suggestion on longer cycles by cascading into a varaible.
Feb 4, 2016 at 2:58 history edited Dave X CC BY-SA 3.0
Add comments for faster clocking.
Feb 4, 2016 at 2:44 comment added Dave X One certainly could use a lower prescaler. I chose the slower speed because my kids just did a pinewood derby race, and wanted to allow plenty of time to measure the slow cars to cross the line.
Feb 3, 2016 at 21:53 comment added Nick Gammon I think I would use a much lower prescaler. Since you have kept the timer stopped until the first pulse, it won't take 4 seconds for the car to cross to the second laser.
Feb 3, 2016 at 19:34 history answered Dave X CC BY-SA 3.0

AltStyle によって変換されたページ (->オリジナル) /