29144 Parallax Inc, 29144 Datasheet - Page 7

MODULE HB-25 MOTOR CONTROLLER

29144

Manufacturer Part Number
29144
Description
MODULE HB-25 MOTOR CONTROLLER
Manufacturer
Parallax Inc
Datasheet

Specifications of 29144

Motor Type
DC
Number Of Motors
1
Voltage - Output
16V
Voltage - Logic Supply
6 V ~ 16 V
Current - Output
25A
Termination Style
Screw Terminal
Product
Microcontroller Accessories
Flash
512 KBytes
Operating Supply Voltage
6 to 16 V
Board Size
53.34 mm x 30.48 mm x 15.75 mm
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With
27971 - KIT MOTOR MNT/WHEEL W/POS CONT
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Example Source Code
BASIC Stamp
Before using this example code, read this entire document, including the Precautions section. This code is
for testing 1 HB-25 connected to a BASIC Stamp 1 I/O Pin P0.
' =========================================================================
'
'
'
'
'
'
'
' -----[ Program Description ]---------------------------------------------
' This program tests the HB-25 by waiting for it to power up, then pulsing
' the output to ramp the motor up, wait 3 seconds then ramp back down to a
' stop.
' to PIN0.
' -----[ I/O Definitions ]-------------------------------------------------
SYMBOL
' -----[ Variables ]-------------------------------------------------------
SYMBOL
' -----[ Initialization ]--------------------------------------------------
Startup:
LET
PAUSE 5
PULSOUT HB25, 150
PAUSE 20
' -----[ Program Code ]----------------------------------------------------
Main:
Finish:
© Parallax, Inc. • HB-25 Motor Controller (#29144) • v1.2 4/07
IF HB25 = 0 THEN Startup
FOR index = 150 TO 200
NEXT
PAUSE 3000
FOR index = 200 TO 150 STEP -1
NEXT
GOTO Finish
File...... HB-25 Motor Test.bs1
Purpose... Tests One HB-25 Connected To P0
Author.... Parallax, Inc.
E-mail.... support@parallax.com
Updated... 01-18-2006
{$STAMP BS1}
{$PBASIC 1.0}
PULSOUT HB25, index
PAUSE 150
PULSOUT HB25, index
PAUSE 150
This code was written for one HB-25 connected in Mode 1 (Single)
HB25 =
index = B0
DIRS =
®
1 Program
PIN0
%00000001
' I/O Pin For HB-25
' Variable Space For Ramp Counter
' Wait For HB-25 Power Up
' Set PIN0 To Output
' Wait For HB-25 To Initialize
' Stop Motor
' Wait 20 mS
' Ramp Up To Full Speed
' Motor Forward
' 150 mS Smoothing Delay
' Wait 3 Seconds
' Ramp Back Down
' Motor Forward Slowing
' 150 mS Smoothing Delay
' Prevent PIN0 From Changing State
Page 7 of 8

Related parts for 29144