900-00005 Parallax Inc, 900-00005 Datasheet - Page 4

SERVO PARALLAX STANDARD

900-00005

Manufacturer Part Number
900-00005
Description
SERVO PARALLAX STANDARD
Manufacturer
Parallax Inc
Type
DC Servor
Datasheet

Specifications of 900-00005

Voltage - Rated
6VDC
Product
Microcontroller Accessories
For Use With
28824 - SERVOPAL SERVO PULSER TIMER
Features
-
Rpm
-
Shaft Diameter
-
Shaft Rotational Direction
-
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
You can figure out what the PULSOUT command’s
long you want the pulse to last. Just divide the PULSOUT
to last:
Propeller Application
Using counter modules, you can easily center the servo by using the code below. For more information
about counter modules and PWM with the Propeller, see Chapter 7 in the Propeller Education Kit Labs:
Fundamentals text, which is included as a PDF in the Propeller Tool IDE Help.
CenterServo.spin
CON
_clkmode = xtal1 + pll16x
_xinfreq = 5_000_000
PUB TestPwm | tc, tHa, t
ctra[30..26] := %00100
ctra[8..0] := 0
frqa := 1
dira[0]~~
' Set up cycle and high times
tC := (clkfreq/1_000_000) * 21_500
tHa := (clkfreq/1_000_000) * 1500
t
repeat
Copyright © Parallax Inc.
Duration
phsa := -tHa
t += tC
waitcnt(t)
BS2sx, BS2px, BS2p24/40
:= cnt
BASIC Stamp Module
BS2, BS2e, BS2pe
Argument
BS1
=
PULSOUT
Pulse
Duration
Duration
1.3 ms
Product Name (#900-00005)
1250
100
500
(ms)
units
' System clock → 80 MHz
' Configure Counter A to NCO
' Mark counter time
' Repeat PWM signal
' Set up the pulse
' Calculate next cycle repeat
' Wait for next cycle
Duration
(µs)
Duration
argument has to be when you know how
1.5 ms
1875
150
750
units into the time you want the pulse
v2.0 7/9/2009 Page 4 of 4
1.7 ms
1000
2500
200

Related parts for 900-00005