STEM Village Course: LEGO EV3 Solutions

Sample Coded Solutions

Basic Drivetrain

  • Solution for a clockwise spin for 2 seconds

Ultrasonic Sensor

  • Solution to stop the tank movement when within 10cm of a barrier

Gyro Sensor

  • Solution #1 to drive tank, turn 45 degrees, and resume driving tank
  • Solution #2 to drive tank, turn 45 degrees, and resume driving tank

Medium Motor and Robotic Arm

  • Basic robotic arm movement combined with drive

Touch Sensor

  • Solution to reverse drive motors for 1 second when Touch Sensor triggered