K through 5

Circuits and Switches

This "Circuits and Switches" lesson comes from STEM Robotics 101 course and covers Insulators and Conductors, as well as the Four Parts of a Circuit. The Primary Instruction Material consists of an Intel video and a companion PowerPoint. The Instructor's Guide describes the lesson and there are several Differentiated Instructional resources and well as both Formative and Summative Assessments.


Comments and White Space

RobotC is a free-form programming language. This means that when you write a program, multiple spaces, tabs, and line returns are ignored by the NXT. This allows us to use these ignored structures to format our program and make it easier to read. If wanted, we could put all of our commands on one line. Here is what the above example program would look like if we did:

Task [string]label { } introduction

When you open a new RobotC program, you start with a blank slate, with no instructions. The NXT/RobotC was designed with a number of rules that force us to write or programs in a certain way. Our first rule of RobotC is:

1. NXT actions shall reside within tasks.

cbl test 3