28123 Parallax Inc, 28123 Datasheet - Page 127

TEXT WHAT'S A MICROCONTROLLER

28123

Manufacturer Part Number
28123
Description
TEXT WHAT'S A MICROCONTROLLER
Manufacturer
Parallax Inc
Type
Programmingr
Datasheet

Specifications of 28123

Style
Book
Title
What's a Microcontroller?
Contents
Whats a Microcontroller? Text
Product
Microcontroller Accessories
Core Processor
PIC16C57c
Flash
128 Bytes
Operating Supply Voltage
9 V
Board Size
31 mm x 16 mm
Lead Free Status / RoHS Status
Not applicable / Not applicable
For example, if you didn’t already know that the
here is how you could calculate it.
You can also figure out the
equation.
For example, if you see the command
really last?
Your Turn – Adjusting Position and Hold Time
The number of times each
stays in a given position. The value of the
controls where the servo turns to. It’s important to experiment with changing these
values to be sure how they work before moving on to the next experiment.
FOR counter = 1 to 75
FOR counter = 1 to 300
Duration
number
number
Save ServoTest.bs2 as ServoTestYourTurn.bs2.
Modify all the
the original program:
Run the modified program and verify that the servo holds each position for
half as long.
Modify all the
the original program:
Run the modified program and verify that the servo holds each position for
twice as long.
Modify the
of
of
=
=
ms
ms
1
750
5 .
=
PULSOUT
=
=
×
1
850
500
Duration
500
7 .
FOR...NEXT
FOR...NEXT
500
ms
FOR…NEXT
ms
Duration
command in the first loop so that it reads:
ms
loop repeats is what controls how long the servo
loops so that they execute twice as many times as
loops so that they execute half as many times as
PULSOUT 14, 850
of a mystery
PULSOUT
PULSOUT
command’s
PULSOUT
argument for 1.5 ms is 750,
, how long does that pulse
command using this
Duration
argument

Related parts for 28123