Get in contact

posts/page

Timing System using the NXT – Damien Kee

Nov 2, 2011

A conversation we’re having at the moment on the Teacher Mailing List is around the creation of a Timer.

Ian Chow-Miller has been running an activity with NXT dragsters with a focus on gear ratios and mechanical design rather than programming.  He initial solution of using the stopwatch on his phone has human error associated with it (as would any human activated stopwatch) and so the search was on for a robotic solution!

His initial setup involved an NXT with a Sound Sensor and an Ultrasonic Sensor.  Dragsters are started with the whole group shouting “GO!” which the timer sound sensor picks up, starts an internal timer which stops once a robot crosses the ultrasonic sensor.

Gary Cordell suggested using the Light Sensor for more accuracy over the Ultrasonic Sensor

I rigged the light sensor, put it in Ambient Light mode and pointed a flashlight at it.  I was able to get a reading of 50 open and less than 10 with the beam broken (with the Ambient Light Shield (grin) in place) at a distance of about two feet.

photo by Gary Cordell

Elwood Fischer suggested offloading the timing to the robot itself-

I’m wondering if you can dodge some of the sensor difficulty by loading your timer program on the Drag Racer itself, with ultrasonic sensor mounted on front?  Point it towards a wall (or other flat surface) so it records time between start and when the ‘bot is, say, 1 meter from the wall (then full brakes!)?  It’s easy for the ultrasonic sensor to see a wall!  This also reduces chance that start and end ‘bots get triggered at different times (by an over-eager student near one of the ‘bots).

My contribution 😀

I think the Ultrasonic Sensor might be a little in consistent, but what about the light sensor.  You could have it mounted face down and have a finish line (either white on black surface or black line on white surface).  I threw together this little program that will display the time on the screen.

![](/img/storage/post-images/dragster timer.jpg?__SQUARESPACE_CACHEVERSION=1320231550428)

– Wait for loud sound to start the robot

– Once you hear the loud sound, reset the timer

– Get the robot driving unlimited

– Wait for a increase in light readings (or decrease depending on your situation)

– Take the timer value

– Convert to ‘text’ (the display block can’t handle ‘numbers’

– Show the result on the NXT Display

– Stop the robot (don’t forget this!)

– Wait 5 seconds to give you a chance to read the result.

If the programming is too much for the kids and the focus is on the gearing, there is nothing stopping you loading this onto everyone’s robot yourself.

Thoughts? How would you do it?

Get in Contact

  • Brenda Gahan - Head of Learning image

    Brenda Gahan - Head of Learning

    Sunshine Coast Grammar School
    star star star star star

    His wealth of knowledge and expertise allows him to tailor each workshop to the specific skill level and interests of the students (and teachers) and ensures that everyone is engaged and challenged.

  • Digital Technologies Teacher image

    Digital Technologies Teacher

    Victoria Point State High School
    star star star star star

    Students engaged in hands-on learning experiences that developed their problem-solving skills. It was a valuable and highly relevant real world learning opportunity.

  • Tammy Grady image

    Tammy Grady

    Senior Project Officer, QMEA
    star star star star star

    Through the Queensland Minerals and Energy Academy (QMEA), Damien has worked with hundreds of students and Teachers from across the State, all with varying levels of robotic and programming experience. Feedback from Damien’s workshops are always full of praise and appreciation, not only for his professional knowledge, but his adaptable teaching style and ease of delivery.

  • STEM Teacher - Years 7-10 image

    STEM Teacher - Years 7-10

    Tannum Sands State High School
    star star star star star

    Damien's professionalism and communications skills are superb. The very best educational expert visitor we have had come to the college.

  • Primary School Teacher - Year 5 image

    Primary School Teacher - Year 5

    Central Queensland Primary School
    star star star star star

    Damien's delivery style captivated students across every year level, from junior to senior. His depth of knowledge and genuine ability to tailor content to our students' abilities made a real difference, keeping everyone engaged and getting the most out of the experience regardless of their starting point.

  • Head of Curriculum image

    Head of Curriculum

    South East QLD Primary School
    star star star star star

    What stood out most was how thoroughly Damien customised the workshop to our school's specific needs. Rather than a one-size-fits-all session, he took the time to understand what we were after and delivered exactly that.