Problem 2 Design an embedded systems that will control a "Drone" using an Mbed microcontroller. T a variable speed dial. A pushbut pot until next pushbutton. he drone uses ton toggles the "ON" or "Off". When ON it runs on the speed set by the Part 1) Complete the schematic given below: Pushbutton (A Hit Toggles device on/em rnd + 6V Battery Gnd Scaled Bat Vohage DC Motor mhed . Speed (Pot) traicg cut Ond PG LED art 2) Write a C+t program in the space below using the mhed APls and your design above to build ._.. Includes can be used for common I/O API classes used in lab assignments. At power on, the LED and m should be off. Read the additional hints & in formation for this problem on the last page of the test #include "mbed. h" #include "Debounce!n . h" Digitalout led (p6): AnalogIn speed (p16): AnalogIn batvolt (p17): Pwmout DCmotor (p21) 7 DebounceIn pb (p8) Problem 2 Design an embedded systems that will control a "Drone" using an Mbed microcontroller. T a variable speed dial. A pushbut pot until next pushbutton. he drone uses ton toggles the "ON" or "Off". When ON it runs on the speed set by the Part 1) Complete the schematic given below: Pushbutton (A Hit Toggles device on/em rnd + 6V Battery Gnd Scaled Bat Vohage DC Motor mhed . Speed (Pot) traicg cut Ond PG LED art 2) Write a C+t program in the space below using the mhed APls and your design above to build ._.. Includes can be used for common I/O API classes used in lab assignments. At power on, the LED and m should be off. Read the additional hints & in formation for this problem on the last page of the test #include "mbed. h" #include "Debounce!n . h" Digitalout led (p6): AnalogIn speed (p16): AnalogIn batvolt (p17): Pwmout DCmotor (p21) 7 DebounceIn pb (p8)