Solutions Cubed Technical Support Forum: ramping 12 volt dc motor - Solutions Cubed Technical Support Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

ramping 12 volt dc motor

#1 User is offline   Pierre 

  • Starting Member
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 24-April 06
  • Location:USA

Posted 24 April 2006 - 09:16 AM

Lon: Thanks for the help. You said there was a ramping program to experiment with for the MMBe. I need to speed up and down, in stages, the 12 vdc motor that's in my project... a linear actuator that travels back and forth. I don't want to start the motor at full rpm and stress the motor and circuits. Please post when available.
0

#2 User is offline   Lon 

  • Advanced Member
  • PipPipPipPipPipPip
  • View blog
  • Group: Root Admin
  • Posts: 640
  • Joined: 03-March 04

Posted 25 April 2006 - 09:02 AM

Here's some code fragments for the MMBe that should work for your application. You may have to check some syntax with the BS2 manual, but this should get you where you need to go

SPEED VAR BYTE
FM CON 7'pin#
BAUD CON 1021'baud value bs2p 2400BPS

PAUSE 500
START:

RAMP_UP:
FOR SPEED = 0 TO 250 STEP 10
SEROUT FM,BAUD,[$55,$03,SPEED]
PAUSE 100
NEXT

RUN:
PAUSE 6000

RAMP_DOWN:
FOR SPEED = 250 TO 0 STEP -10
SEROUT FM,BAUD,[$55,$03,SPEED]
PAUSE 100
NEXT

WAIT:
SEROUT FM,BAUD,[$55,$01]
PAUSE 2000

GOTO START:
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users