Get in contact

posts/page

Using Variables in EV3, where to start? – Damien Kee

Sep 30, 2014

I’m often asked what ‘variables’ are and how are they useful?  How would I go about teaching them in class?  Well the question was raised again this week on our Robotics in Education Mailing list so I thought I’d do a very quick blog post on how I approach it.

Count the number of times a button is pressed and display on the screen. (click for large version)

Basically the program is as follows

Write a ‘0’ to the ‘count’ variable (just in case it was something else)

Wait for someone to bump the touch sensor (not push)

Take the variable -> Add 1 to it -> store the new number back in the variable

Display the variable number on the screen

Loop back to wait for the next button press

Ask the kids why they don’t see the ‘0’ when the program starts, but do see the ‘1’ the first time the button is pressed.  Ask them to fix it up so they see a 0.

We then take this and add another button and make a voting machine.  Do you like Chocolate or Vanilla Icecream?  This is then a great lead in for statistics etc 🙂

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.