POLITECNICO DI TORINO DIPARTIMENTO DI INGEGNERIA MECCANICA E AEREOSPAZIALE (DIMEAS) Master Degree in Biomedical Engineering Master Degree Thesis Real-Time Embedded System for Event-Driven sEMG Acquisition and FES Control Supervisor Prof. Danilo Demarchi Co-Supervisor: Dr. Paolo Motto Ros Candidate Ricardo Maximiliano Rosales TORINO, July 2019