Interference when using BS2 microcontroller with 12V Stepper motor
Geoff1
Posts: 2
Hi there,
I'm using a 4-Phase / 12 Volt Unipolar Stepper Motor with the BS2 microcontroller and have got it working perfectly by itself with my program.
I tried to put it inside another program including a timer/clock and an alarm. The clock is supposed to reach a certain time and then sound the alarm and rotate the motor by one revolution.
It doesn't work as the motor seems to receive some sort of interference, likely from the clock. The motor vibrates and stutters when it is not supposed to be active. Notably, the motor seems to react more when I press the buttons on the LCD screen to set the alarm time. Any thoughts on what the problem may be and how it can be resolved?
Cheers,
Geoff1
I'm using a 4-Phase / 12 Volt Unipolar Stepper Motor with the BS2 microcontroller and have got it working perfectly by itself with my program.
I tried to put it inside another program including a timer/clock and an alarm. The clock is supposed to reach a certain time and then sound the alarm and rotate the motor by one revolution.
It doesn't work as the motor seems to receive some sort of interference, likely from the clock. The motor vibrates and stutters when it is not supposed to be active. Notably, the motor seems to react more when I press the buttons on the LCD screen to set the alarm time. Any thoughts on what the problem may be and how it can be resolved?
Cheers,
Geoff1
Comments
Most likely your program is too busy with either the clock or LCD buttons to get the timing right for the stepper motor.
Here is the file attached.
Just a guess, does it matter if both are defined as OUTB?
LcdBusOut VAR OUTB
Phase VAR OUTB ' phase control outputs
Cheers
Geoff