28125 Parallax Inc, 28125 Datasheet - Page 59

TEXT ROBOTICS

28125

Manufacturer Part Number
28125
Description
TEXT ROBOTICS
Manufacturer
Parallax Inc
Datasheet

Specifications of 28125

Title
Robotics with the Boe-Bot
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Not applicable / Not applicable
' Robotics with the Boe-Bot - HelloOnceEverySecond.bs2
' Display a message once every second.
' {$STAMP BS2}
' {$PBASIC 2.5}
DO
LOOP
Your Turn – A Different Message
You can modify your program so that part of it executes once, and another part executes
over an over again.
ACTIVITY #2: TRACKING TIME AND REPEATING ACTIONS WITH A
CIRCUIT
In this activity, you will build circuits that emit light that will allow you to “see” the kind
of signals that are used to control the Boe-Bot’s servo motors.
Introducing the LED and Resistor
A resistor is a component that ‘resists’ the flow of electricity. This flow of electricity is
called current. Each resistor has a value that tells how strongly it resists current flow.
DEBUG "Hello!", CR
PAUSE 1000
Modify the program so that the commands look like this:
DEBUG "Hello!"
DO
LOOP
Run it and see what happens! Did you anticipate the result?
What’s a Microcontroller? Excerpts – This activity contains selected excerpts from the
What’s a Microcontroller? Student Guide v2.0.
In the second half of this activity, you will examine the signals that control your servos and
timing diagrams in a different light than they were presented in What’s a Microcontroller?
DEBUG "!"
PAUSE 1000
Even if you are familiar with this material from What’s a Microcontroller?, don’t skip
this activity.

Related parts for 28125