28122 Parallax Inc, 28122 Datasheet - Page 128

KIT WHAT'S A MICRO:PARTS ONLY

28122

Manufacturer Part Number
28122
Description
KIT WHAT'S A MICRO:PARTS ONLY
Manufacturer
Parallax Inc
Datasheet

Specifications of 28122

Accessory Type
Parts Kit
Product
Microcontroller Accessories
Core Processor
PIC16C57c
Flash
128 Bytes
Operating Supply Voltage
9 V
Board Size
31 mm x 16 mm
For Use With/related Products
Board of Education Full Kit
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
ACTIVITY #2: CONTROLLING POSITION WITH YOUR COMPUTER
Factory automation often involves microcontrollers communicating with larger
computers.
computer. The main computer interprets and analyzes the sensor data, then sends position
information back to the microcontroller.
conveyer belt’s speed, or a sorter’s position, or some other mechanical, motor controlled
task.
You can use the Debug Terminal to send messages from your computer to the BASIC
Stamp as shown in Figure 4-18. The BASIC Stamp has to be programmed to listen for
the messages you send using the Debug Terminal, and it also has to store the data you
send in one or more variables.
In this activity, you will program the BASIC Stamp to receive two values from the Debug
Terminal:
1. The number of pulses to send to the servo
2. The
Modify the
Run the modified program, and explain the differences in the positions the
servo turns to and holds.
Duration
The microcontrollers read sensors and transmit that data to the main
PULSOUT 14,850
PULSOUT 14,650
PULSOUT
value used by the
command in the second loop so that it reads:
PULSOUT
The microcontroller might then update a
Figure 4-18
Sending Messages to
the BASIC Stamp
Click the white field
above the message
display pane and type
your message. A copy
of the message you
entered appears in the
lower windowpane. This
copy is called an echo.
command

Related parts for 28122