Patrick Mabin / Mbed OS FPJA_ES_CW2

Dependencies:   PID

Homepage

Coursework 2 for the Embedded Systems

Embedded Systems Coursework 2 Group FPJA

On start up the program requires a 4 second wait to align the motor, after which it is ready to receive commands. There is also a delay between the commands being set and from when the motor follows the command. During this time the motor will stop. For position commands only to the nearest 1 rotation has been implemented as so only input integers for these commands. The Velocity has only been implanted for the nearest 1Hz per second, it can struggle at low speed due to motor friction. This can affect the position commands where the motor may get stuck near the position it needs to reach. The feedback loop implemented have been tuned around the motor provided, using different motors may result in oscillations in speed and the motor struggling to reach positions. A video is available in the MBed library that shows the code working on the motor we have been provided.

The melody function does not require a velocity to run but may be very quiet.

Demo Video

/media/uploads/pcm13/demo_video.mp4


All wikipages