Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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