Page 278 - ARM Based Microcontroller Projects Using MBED
P. 278

264                           9. MOTOR CONTROL PROJECTS





















                 FIG. 9.5  Using a MOSFET Transistor.




















                 FIG. 9.6  Using a relay.


                 9.2.8 Suggestions for Additional Work

                   In this project the motor speed is the same when the motor is activated. Modify the pro-
                 gram given in Fig. 9.4 by sending PWM waveform to the motor and change the speed of the
                 motor by changing the Duty Cycle of this waveform. Try setting the Duty Cycle to 25%, 50%,
                 and 100%.


                  9.3 PROJECT 2—CHANGING THE MOTOR ROTATION DIRECTION

                 9.3.1 Description

                   In this project the User button on the Nucleo-F411RE development board is used such that
                 when the button is pressed the motor rotates in one direction, and when the button is released
                 the motor rotates in the opposite direction. The motor speed is fixed in this project.
   273   274   275   276   277   278   279   280   281   282   283