28123 Parallax Inc, 28123 Datasheet - Page 123
28123
Manufacturer Part Number
28123
Description
TEXT WHAT'S A MICROCONTROLLER
Manufacturer
Parallax Inc
Type
Programmingr
Datasheet
1.28123.pdf
(340 pages)
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
- Current page: 123 of 340
- Download datasheet (6Mb)
The next example program will use the
the servo on where to position its horn.
number of pulses, which cause the servo to hold a position for a certain amount of time.
Example Program: ServoTest.bs2
ServoTest.bs2 will make the servo’s horn start at somewhere in the neighborhood of 10
o’clock and hold that position for about three seconds. Then, the program will move the
servo horn clockwise, to about the 2 o’clock position for about three seconds. After that,
the servo will hold its “center position”, which is about 12 o’clock, for about three
seconds.
√
√
√
Enter ServoTest.bs2 into the BASIC Stamp Editor.
Connect power to your Board of Education or HomeWork Board.
Run the program.
A millionth of a second is called a microsecond. The Greek letter µ is used in place of the
word micro and the letter s is used in place of second. This is handy for writing and taking
notes, because instead of writing 2 microseconds, you can write 2 µs.
Reminder: one thousandth of a second is called a millisecond, and is abbreviated ms.
Fact: 1 ms = 1000 µs. In other words, you can fit one thousand millionths of a second into
one thousandth of a second.
What if my servo is different? We recommend that you use a Parallax Standard Servo for
these activities. There are lots of different servos, and many will respond differently to the
signals that TestServo.bs2 sends. Another brand of servo might only rotate to 11 o’clock
then 1 o’clock, or maybe to 9 o’clock and then 3 o’clock. It might even rotate the opposite
direction and start in the clockwise direction before it goes counterclockwise. But if your
servo is rated for use with a 9 V battery, and the motion is easy to observe and consistent, it
will work for these activities. You can modify the example programs to get the servo to
behave the way you want.
www.parallax.com
standard servo
www.parallax.com
standard servo
PULSOUT
FOR…NEXT
www.parallax.com
standard servo
command to deliver pulses that instruct
loops are used to deliver a certain
Figure 4-14
Servo Horn Motion
10 o’clock (left)
2 o’clock (middle)
12 o’clock (right)
Related parts for 28123
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
COMPETITION RING FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
CONTROLLER 16SERVO MOTOR CONTROL
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BASIC STAMP LOGIC ANALYZER
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: