%0 Journal Article %T Student %A Ana Susperregui %A Gerardo Tapia %A Gorka Larruscain %A M Itsaso Martinez %J International Journal of Electrical Engineering & Education %@ 2050-4578 %D 2018 %R 10.1177/0020720918761763 %X Student-supervisor cooperation was carried out to design the inter-subject final year project reported in this paper. According to the student feedback, this approach allowed gathering his main interests ¨C vector control, microcontroller programming and wind power generation ¨C together, therefore reinforcing his motivation towards his final year project and making him feel particularly responsible for its outcome. Microcontroller-based hardware-in-the-loop emulation made possible to combine the three afore-cited student interests. In this context, the virtual prototype of a current-controlled wind turbine-driven 2-MW permanent-magnet synchronous generator is presented, along with the pseudo-code corresponding to the permanent-magnet synchronous generator speed control algorithm programmed in an 8-bit microcontroller. In addition, tuning formulas are derived for the digital integral-proportional controllers commanding both the permanent-magnet synchronous generator current and speed. Detailed descriptions are provided in order to guarantee reproducibility. Implementation of the hardware-in-the-loop rig is also tackled, supported by illustrative results obtained when running it. The developed hardware-in-the-loop rig is considered suitable for laboratory practices of subjects like digital control and microcontroller programming %K Digital control %K hardware-in-the-loop %K microcontroller %K permanent-magnet synchronous generator %K pole placement %K wind power %U https://journals.sagepub.com/doi/full/10.1177/0020720918761763