|
|||||
3.3.3. Setting Up Motor Stepper Speed - Parallel Port A basic example of stepper motor driver is shown in figure bellow. Notice the separate voltages for logic and for the stepper motor. Usually the motor will require a different voltage than the logic portion of the system. Typically logic voltage is +5 Vdc and the stepper motor voltage can range from +5 Vdc up to about +48 Vdc. The driver is also an "open collector" driver, wherein it takes its outputs to GND to activate the motor's windings. Delphi Programming ( Download file ex333.zip ) a. Puts 4 Timers Components, 2 Button and label on Form, as shown in picture bellow. Setting up timer1..timer4 Timer component for Enabled = false, and Interval = 1000 ( approximataly = 1000 ms delay time ) and timer5 for Enabled = true. b.Click on timer1 component to insert with the program as shown bellow procedure TSequence.Button1Click(Sender: TObject); procedure TSequence.Timer1Timer(Sender: TObject); procedure TSequence.Timer2Timer(Sender: TObject); procedure TSequence.Timer4Timer(Sender: TObject); procedure TSequence.Button2Click(Sender: TObject); procedure TSequence.Timer5Timer(Sender: TObject); c. To run the program, you can hits F9 or RUN menu, and then you will show a picture as shown bellow, and try to simulate the program by hitting Start button and setting on List box component. |
Free Software Lesson 1 Lesson
4
|
||||