27297 Parallax Inc, 27297 Datasheet - Page 164
27297
Manufacturer Part Number
27297
Description
KIT STAMPWORKS WITH BS2-IC
Manufacturer
Parallax Inc
Datasheet
1.27297.pdf
(230 pages)
Specifications of 27297
Lead Free Status
Contains lead
Product
Microcontroller Accessories
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
- Current page: 164 of 230
- Download datasheet (3Mb)
Page 154 · StampWorks
The step sequences for the motor are stored in DATA statements. The Step_Fwd
subroutine will read the next sequence from the table to be applied to the coils. The
StepRev subroutine is identical except that it will read the previous step. Note the
trick with the modulus (//) operator used in StepRev. By adding the maximum
value of the sequence to the current value and then applying the modulus operator,
the sequence goes in reverse. As a review, here’s the modulus math for full steps
(four steps per cycle):
0 + 3 // 4 = 3
3 + 3 // 4 = 2
2 + 3 // 4 = 1
1 + 3 // 4 = 0
This experiment reads both sides of the 10K potentiometer to determine its relative
position. The differential value between the two readings is kept positive by using
the ABS function. The position is used to determine the rotational direction and the
strength of the position is used to determine the rotational speed. Remember, the
shorter the delay between steps, the faster the stepper will rotate. A dead-band
check is used to cause the motor to stop rotating when the RCTIME readings are
nearly equal.
Taking It Further
Surplus stepper motors are very easy to come by, and the experimenter is often
faced with two challenges: 1) How to control a bipolar (4-wire) stepper motor and,
2) How to determine the coil sequence of an unknown motor.
By using the L293D the first challenge is nullified; the L293D is a push-pull driver
(versus the ULN2x03 that only sinks current) and will work – without any
modifications to the code – with unipolar and bipolar stepper motors.
The second challenge can be overcome with a multimeter. Create a table with the
wire colors as column and row headings, jotting down the resistance measured
between the wires. For example:
Related parts for 27297
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: