Searching \ for '[SX] SX48 Microcontroller and the HB25 Motor Contr' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/ubicom/lib/io/index.htm?key=motor+motor
Search entire site for: 'SX48 Microcontroller and the HB25 Motor Contr'.

Exact match. Not showing close matches.
PICList Thread
'[SX] SX48 Microcontroller and the HB25 Motor Contr'
2008\07\13@092142 by modeousn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, modeous wrote:

I am having a trouble with the HB25 motor controller and the SX48 microprocessor. I have followed by the user manual until i cam across some discrepancies. In the user manual it says the following:


HB 25 Motor Controller
DO WHILE HB_25 = 0 ' Wait For HB-25 Power Up
LOOP

LOW HB_25 ' Make I/O Pin Output/Low
PAUSE 10 ' Wait For HB-25 To Initialize
PULSOUT HB_25, 750, 1 ' Stop Motor 1
PAUSE 1
PULSOUT HB_25, 750, 1 ' Stop Motor 2 (If Connected)

Main:
FOR> motor_forward = 750 + index
motor_reverse = 1500 - index
PULSOUT RE.6, motor_forward, 1
PAUSE 1
PULSOUT RE.6, motor_forward, 1
PAUSE 6
NEXT


If anyone can help me, I would really appreciate it. In the mean time I will continue messing around with it until I figure it all out.


Thanks,

Kevin

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=279095
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)

2008\07\13@100532 by JonnyMacn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote:

Looks like you're using BS2 code -- PULSOUT in SX/B is in 10 uS units.  If you want better resolution than that I would suggest you use PAUSEUS like this:

SUB STOP_HB25
 HB25 = 1
 PAUSEUS 1500
 HB25 = 0
 ENDSUB

or...

SUB MOVE_HB25
 IF __paramcnt = 1 THEN
   tmpW1 = __param1
 ELSE
   tmpW1 = __wparam12
 ENDIF
 HB25 = 1
 PAUSEUS tmpW1
 HB25 = 0
 ENDSUB

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=279095#m279102
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)

2008\07\16@193452 by Sparks-R-Funn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Sparks-R-Fun wrote:

Kevin,
  I have not used the HB25 motor controller.  However, it sounds like it operates very similar to hobby servo motors.  I have used several of those!  They tend to like a nice steady pulse train.  The pulse ON time is important but so is the pulse OFF time.  It did not have to be exact in my experience; but try to make it as close as you can when starting out.  
  It is true that in the case of the hobby servos I have used I was able to obtain satisfactory performance out of them using a multiple of the specified timing durations.  However, the HB25 may need the pulse train to be very close.  I do not know.

  I suggest trying to make the pulse train close to what is stated in the motor controller manual and give it a steady and fixed pulse train to start out.  Then once you have the motor moving at some constant speed you can experiment with varying the pulse characteristics.


- Sparks
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=279095#m279782
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)

More... (looser matching)
- Last day of these posts
- In 2008 , 2009 only
- Today
- New search...