All lessons listed on this page are available online at http://www.lafavre.us/robotics/third_year.htm
Third year seniors will learn to program ActivityBot360 robots using the programming language named "C".   Before the February business meeting, members should complete the lessons listed below. If possible, complete at least lessons 1 through 8 before the February meeting.
Lessons utilizing the IDE named Code:Blocks
Lesson One - C language - Hello World!
Lesson Two - Variables and Calculations
Lesson Three - Floating Point Math
Lesson Four - Array Variables
Lesson Five - Make a Decision
Lesson Six - Make Several Decisions
Lesson Seven - Make Complicated Decisions
Lesson Eight - Code That Repeats
Lesson Nine - Counting Loops
Lesson Ten - Index Array Variables
Lesson Eleven - Variable Values and Addresses
Lesson Twelve - Get Values From Terminal
C Language Reference
C Language Reference - save this as your "book" on C language
"C" Lessons to Code a "Rock, Paper, Scissors" game (on YouTube)
Lessons for the ActivityBot360 robot
Most of the lessons below can be completed only when you have an ActivityBot robot. However, you can go ahead and read the first lesson, which is an introduction to microcontrollers, including the one for ActivityBot.
Lesson One - What's a Multicore Microcontroller - Getting Started - you don't need the robot to read this lesson.
Installing the software for ActivityBot - you will need to install the SimpleIDE software on your computer before you can write and test code for the robot.
Mr. La Favre will assist you in installing the software for programming the robot on your computer. Please don't attempt to install the sofware without his assistance.
Making the ActivityBot360 robot move - now you will begin learning how to make the robot move
Making ActivityBot360 Follow a Wall - Wall-following is a technique used with maze robots to ensure the robot does not collide with a wall.
Making ActivityBot360 turn a corner - In solving the maze your robot will need to make many turns.
Displaying Ping Measurements - You will be using ping distance sensors to assist your robot in navigating the maze. In this lesson you will calibrate your sensors.
Using Odometry with ActivityBot360 - In this lesson you will learn how to make the robot travel a specific distance.
Using Ping sensor to trigger a turn - In this lesson you will learn how to use the Ping sensor to initiate a turn.
Counting turns in a maze - In this lesson you will learn how to make the robot count its turns in the maze.
Creating a custom function - In this lesson you will learn how to create a custom function for wall-following
Last update: January 12, 2025