MIT class 2.679 (Electronics for Mechanical Systems II) offers a type of alchemy that transforms…