hb25
Sawmiller
Posts: 276
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
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
it was in the wiring somehow...
reconnected the hb25 and it worked..
shrugs.
sorry to bother ya
dan
uses beans HC4led and the HB25 motor controller... just playing
dan
ps... dont beat me jon , for all the pauses [noparse]:)[/noparse]