Sign in

username:

password:



Not a member?

Search 68hc12



Search tips

Subscribe to 68hc12



68hc12 by Keywords

68HC1 | 812A4 | 9S12DP256 | Bootloader | CodeWarrior | D60A | Debugger | DP256 | ECT | EEPROM | EVB | Flash | HC1 | HCS12 | I2C | IAR | ICC1 | Interrupts | LCD | M68KIT912DP256 | MC9S12DP256 | MC9S12DP256B | Metrowerks | Motor | MSCAN | Multilink | PLL | Quadrature | SDI | SPI | Transceiver | XFC


Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | 68HC12 | Re: Stepper Motors

Join our technical discussions about Freescale Microcontrollers: M68HC12. (Freescale Semiconductor is a Subsidiary of Motorola).

Re: Stepper Motors - ianc...@gmail.com - Jun 11 19:38:02 2006

Jackie,

>
> Good morning... I have written a program using the Motorola M68HC12
>reference manual. What I am trying to succeed in is to get the LED's
>to display voltages that are applied to the potentiameter (0-5
>volts). My motor is not stopping at these applied voltages.

So your trying to characterize an analog value on an LED?
sounds like a job for the ADC system on the HC12

>Example: If I want my motor to stop at 90 degrees with a 1.2498
>voltage applied via the POT (potentiometer). My motor is continually
>running and not stopping based on my POT adjustments. I want to
>operate the motor in half-step. Any ideas would be greatly
>appreciated from a frustrated student.

So, it looks like you need to take the digital value of your voltage
and provide some loop that will step your motor through the range of this voltage.
Example,
if 2.5V meant one half of a revolution, and your stepper motor operates in 3.6deg steps,
you need to step the motor for 180/3.6 steps for the input of 2.5V

>
>I know we are not allowed to add enclosures, but could share my
>program if needed.
>
>
>THANKS,
>Jackie
Ian




(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )