Shop OBEX P1 Docs P2 Docs Learn Events
hb25 — Parallax Forums

hb25

SawmillerSawmiller Posts: 276
edited 2007-05-18 12:07 in General Discussion
ok folks, i'm tired of beating my head agaisnt a wall...
im tring to move a motor using a HB25· controller.
i have the hb25 hooked up to a 7.5 v wall wart green light there
its hooked up to a small motor that i tested against the input to the hb25
fuse is good
running a sx tech board with a 2 wires coming over to the servo connections on the hb25
one is on vss
other is RA.3
heres the code


'
' Program Description hb25 motor controller
'

'
' Device Settings
'
DEVICE SX28,OSC4MHZ,TURBO,STACKX,OPTIONX
FREQ 4_000_000
'
' IO Pins
'

HB25···PIN RA.3
'
' Constants
'

'
' Variables
'

cnt······ VAR Byte
temp1···· VAR Byte
counter·· VAR Byte

' =========================================================================
· PROGRAM Start
' =========================================================================

'
' Subroutine Declarations
'

'
' Program Code
'
Start:

PAUSE 5 ' Wait For HB-25 To Initialize
Main:
LOW HB25 ' Make I/O Pin Output/Low
pulsout hb25,200
pause 5000

pulsout hb25,150

·pause 1000
·
· GOTO Main
'
' Subroutine Code
'

'
' Data
'

is my pulsout correct ?
what am i doing wrong ?
dan

Comments

  • SawmillerSawmiller Posts: 276
    edited 2007-05-18 01:14
    never mind...

    it was in the wiring somehow...

    reconnected the hb25 and it worked..

    shrugs.

    sorry to bother ya

    dan
  • SawmillerSawmiller Posts: 276
    edited 2007-05-18 12:07
    cant delete the beginning post , so i thought i would send along this snippit of code ..

    uses beans HC4led and the HB25 motor controller... just playing

    dan

    ps... dont beat me jon , for all the pauses [noparse]:)[/noparse]
Sign In or Register to comment.