ERAU STEM Beginner Robotics Camp 2016
Richard S. Stansbury and Farahzad Behi
The 2015 Summer Camp used the Lego Mindstorms Educational Kit purchaed from Lego Education. Our kits ran the NXT 2.0 system, which is the previous generation Mindstorm. Since these units are discontinued, the cost associated with them have gone up significantly if you buy new. You can find used sets on E-Bay for around $200.
About one year ago, Lego upgraded from NXT 2.0 to EV3. Those are more affordable, but different from the kits used in camp. You can purchase an EV3 kit at amazon.com at the following link: http://www.amazon.com/LEGO-6029291-Mindstorms-EV3-31313/dp/B00CWER3XY/ref=sr_1_1?ie=UTF8&qid=1403871970&sr=8-1&keywords=lego+nxt+2.0
Schedule
Monday July 18, 2016
Morning
Part I - Introduction to Robot C
Lesson Videos:
- Karate Kid - Wax-on / Wax-off
- Thinking about Programming: Behaviors
- RobotC 101 - Part I
- RobotC 101 - Part II
Building / Programming Instructions
- Lego Build Instructions: REM Bot
- Downloading RobotC Firmware to NXT Brick
- Downloading a Sample Program to REM Bot
- Moving Forward Program (if time)
Afternoon
Part I - Robot Movement
Lesson Videos:
Building / Programming Instructions
- Programming Instructions - Page 1-3 - Learn how to control motor speed
- Programming Instructions - Page 4-10 - Learn how to control turning and reverse by changing motor speeds
- Optional / Advanced Instructions
Part II - Touch Sensors
Lesson Videos:
Building / Programming Instructions
- Build Instructions: Adding Light and Touch to REM Bot
- Reference: Print
- Programming Instructions: Wall Bump Behavior
- Follow instructions, if running out of time jump to page 17, "Putting it all together"
Tuesday July 19, 2016
Morning
Part I - Sonar (Ultrasonic) Sensor
Lesson Videos:
Building / Programming Instructions
- Build Instructions: Adding a Sonar
- Programming Instructions: Programming a Sonar to Avoid Wall Collision
Part II - Wheel Encoders / Speed and Rotational Sensors
Lesson Videos:
Building / Programming Instructions
- Reference: Motor Encoder Programming
- (optional) Reference: Writing Functions in RobotC
- Programming Challenge: Wheel Encoder Challenge
Afternoon
Part I - Line Detection
Lesson Videos:
- Introduction to Light Sensor
- Setting Thresholds for Light Sensor
- Using Light Sensor to Move Until Dark
Building / Programming Instructions
Part II - Line Following
Lesson Videos:
Building / Programming Instructions
Thursday Challenge Builds
You have done well, but you must complete the following challenges before you are ready for your Battle Bot.
Complete each of the challenge builds and demonstrate to Mr. Behi or Dr. Stansbury.
Challenge #1: The Maze Runner
For this challenge, you must create a robot with a line sensor located near the front of the robot. This robot must negotiate a maze as shown on the floor below. As it travels through the maze.
You should consider the "left hand rule". Whenever the robot reaches an intersection, Take the left most option (turn left and proceed). Dr. Stansbury will demonstrate this behavior on the board.
A test environment will be set up.
The team that makes the fastest maze time will receive recognition before the Battle Bots competition on Friday.
Challenge #2: Battle Bot Behaviors
The following challenges will have you take a simple battle bot and teach it basic behaviors in RobotC. This will be the basis for your battle bot's attack and defense behaviors. (Instructions Here)
Battle Bots Rules and Code Sample
Resources:
- Robot build instructions for a variety of robots: nxtprograms.com
- Examples of other Lego Battlebots: https://www.youtube.com/playlist?list=PLg6ELMTsVOI6pYXsl8q8MMhiZN3scjUgx
- Gears: http://sariel.pl/2009/09/gears-tutorial/
- Gears Video: http://www.youtube.com/watch?v=bWJdVjNgLWw