i need help writing a very basic motor control program
RHSYSTEMS
Posts: 2
im make a device that raps coils and it uses 2 motors. one motor raps the coil while the other guides the coil back and forth. it is just like a fishing rod reel. its for making electro magnets. i just need to run the motors for about 45 seconds and be able to adjust the speed of each motor. the motors are small and use low electricty and can proably run right off the board. im happy with using paluses to control the speed. does anyone have any suggestions? im making coils for micro RC planes and would be happy to make you some coils in exchange for programming help, if your into indoor RC.
Thanks!
Robert
Thanks!
Robert
Comments
Depending on the kind of motor control you need, and the motors, the Stamp may or may not be suited (by itself) to your needs.
Have you worked out any circuitry yet for amplifying the signal from the programmed device to actually run the motors, or were you going to buy an "off the shelf" motor driver for that purpose?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php
' Electric Vehicle program electricvehicle.BS2
' By: Tristan Bissinger 1-28-07
' {$STAMP BS2}
' {$PBASIC 2.5}
' objective run car for 5-10m. find target time.
'
' I/O ports ' This lables the I/O ports that the bs2 will use.
fforward PIN 1 ' If this segment was not here the stamp would not
rreverse PIN 0 ' know which ports(pins) to use, it also labels the
lleft PIN 15 ' variables that will be used.
rright PIN 14
'
' Switch to outputs ' This segments tells the bs2 that the variables are
LOW fforward ' all outputs.
LOW rreverse
LOW lleft
LOW rright
'
' Main line ' This is the part progam that makes the little car
HIGH fforward ' go and can be motifide in any way.
PAUSE 5000
LOW fforward
END