Home
Devil's Digest
Blue Review
Class Collaboration
Technology Classes

 

code

Programming

Students will program their robot to perform a variety of functions

Topic
Purpose
Lesson
Motion Gradesheet The gradesheet contains the instructor sign off for successfully completing each task, a maze map and instructions on how to successfully upload your code to the robot. You will be provided with a gradesheet. Move onto the next step to learn how to program in mBlock and make your robot move straight. Click here
Writing Code in mBlock &
Task #1: Move Straight
This description will get you started in being able to write basic code for your robot with mBlock. Click here.
Steps to Successfully Upload "mBlock" Code to your Robot.

Project Description:
The Arduino Chip can be finicky when you attempt to upload code to it. If you follow the steps I am providing you...you will not have a problem. Just be pateint and follow each step.

Click here.
Program: Motion    
Motion
Task #2:Turn & Forward Motion

Program your robot so that it:

  • Waits 1 second to begin motion after the power switch has been activated.
  • Turns forward right for 3 seconds.
  • Stops and waits for 1 second.
  • Turns forward left for 3 seconds.
  • Stops and waits for 1 second.
  • Drives straight for 3 seconds.
  • Stop.
Video: Mobile or
You Tube
Motion
Task #3: Backward Motion & Turn

Program your robot so that it:

  • Waits 1 second to begin motion after the power switch has been activated.
  • Turns backward right for 3 seconds.
  • Stops and waits for 1 second.
  • Turns backward left for 3 seconds.
  • Stops and waits for 1 second.
  • Drives backward for 3 seconds.
  • Stop.
Video:Mobile or
You Tube
Task #4: The Maze Program your robot to complete the maze. Video: Mobile or
You Tube
Program: Line Follower Sensor    
Line Sensor Gradesheet The gradesheet allows the instructor to "Sign Off" each time the student successfully completes a task. Also, the gradesheet will provide images of the models and hints. Click here.
Line Sensor Tutorial
Program your robot so that you can test to see how it works and if your line sensor functions correctly. Students will be introduced to new Block Commands: "If/Then," "If/Then/Else," and "Forever." Click here.
Program: Ultrasonic Sensor    
Ultrasonic Gradesheet The gradesheet allows the instructor to "Sign Off" each time the student successfully completes a task. Also, the gradesheet will provide images of the models and hints. Click here.
Ultrasonic Tutorial Program the Ultrasensor on your robot so that when it detects objects at a specific task, it will follow your commands. Click here.
Final Project    
Final Project Gradesheet The gradesheet allows the instructor to "Sign Off" each time the student successfully completes a task. Also, the gradesheet will provide images of the models and hints. Click here.
Final Project Explanation Students will program their robot to drive through a small carpet city. They will use the three skills they learned above: Motion, Line Sensor & Ultrasonic Sensor. Click here.
     
     


Questions? jharrington@sthelenaunified.org