Rafi Nasrallah

PhD Researcher at UM6P · Smart BMS & E-Mobility

Rafi Nasrallah

PhD Researcher & Electrical Engineer — Next-Generation BMS, Embedded Systems & IoT for Electric Mobility

Professional Experience & Education

Academic Background

Physical Systems

2022 — 2023

Licence in Physical Sciences

Electronics Specialization

Faculty of Sciences Ben M'sik, Casablanca

Advanced scientific training combining electronics, electrotechnics, mechanics, applied physics and mathematical modelling, with exposure to digital electronics, materials, quantum and nuclear physics.

Electronics Electrotechnics Mechanics Applied Physics Mathematics
Scientific Foundations

2020 — 2022

General University Studies Diploma (DEUG) in Physical Sciences

Faculty of Sciences Ben M'sik, Casablanca

Broad scientific foundation covering mechanics, thermodynamics, electromagnetism, electronics, mathematics, chemistry and quantum physics.

Mechanics Thermodynamics Electromagnetism Electronics Mathematics Chemistry
2019 — 2020 Baccalaureate — Science & Technology Electrical Specialization Mohammedia

Professional Experience

Engineering Intern (Research and Development (R&D) and Industrialization) — Emove Véhicules

Completed

Feb 2026 – May 2026

Project: Smart BMS for Electric Mobility (Hardware, Algorithms & IoT Supervision)

  • Root-cause fix: Resolved a premature shutdown defect at 20% state of charge (SoC) and energy-gauge instability on electric scooters through a coordinated hardware, software, and process approach, supported by a safety-architecture-compliant digital twin aligned with International Electrotechnical Commission (IEC) 62133 and International Organization for Standardization (ISO) 26262 standards.
  • Estimation architecture: Designed a hybrid state-of-charge (SoC) estimation stack using an equivalent circuit model (ECM) with three resistor-capacitor pairs (3RC), an unscented Kalman filter (UKF), and a long short-term memory (LSTM) residual observer. It was validated through model-in-the-loop (MiL) simulation, with a root-mean-square error (RMSE) below 2%, and an instrumented hardware-in-the-loop (HiL) prototype.
  • Embedded hardware: Designed and routed a 16S STM32-based BMS board in Altium Designer, with bidirectional active balancing (LTC3300-1) and a finite-state machine (FSM) safety supervisor.
  • Industrial supervision: Built a real-time Message Queuing Telemetry Transport (MQTT) dashboard using a Representational State Transfer (REST) application programming interface (API) for production monitoring, battery-pack traceability, and key performance indicator (KPI) analysis.
Read the full technical report on the STM32-based Smart BMS

Engineering Internship — Société Marocaine des Compteurs (SMCV)

July 2025 – September 2025

Industrial Automation (PLC/HMI), Mechanical Design

Software Used: Siemens TIA Portal, Autodesk Inventor

  • Injection Molding Machine: Programmed Siemens PLC (TIA Portal) and implemented HMI interfaces.
  • Mechanical Arm: Designed and modeled the assembly in 3D CAD.
  • Automatic Hot-Press: Designed/analysed mechanical and thermal components, sized actuators, and programmed PLC/HMI.
Read more

Internship — National Office of Electricity and Drinking Water (ONEE)

July 2024 – August 2024

National Office of Electricity and Water

Software Used: OMICRON Test Universe, SIPROTEC Tools

  • Conducted operational analysis of installed Siemens protection relays.
  • Developed a comprehensive testing protocol for system verification.
  • Executed verification and validation procedures for the testing protocol.
  • Developed and finalized comprehensive technical documentation for compliance records.
Read more

Apprenticeship - Rafi Robotiques et Machineries

2020 – 2023 (3 Years)

Mechanical Repair, computer numerical control (CNC) & Robotics

  • Mechanical repair of Sharmaann horizontal boring machine.
  • Design and fabrication of 5-axis welding robots.
  • Repair and reprogramming of CNC Lathe Machine (Siemens Sinumerik 840D).
  • Reprogramming of Spring Assembly Machine (Matissar).
Read more

Key Projects

Smart BMS for Electric Mobility

End-of-studies internship project focused on lithium iron phosphate (LFP) scooter battery reliability, combining equivalent circuit model (ECM), unscented Kalman filter (UKF), and long short-term memory (LSTM) state-of-charge (SoC) estimation, STM32-based battery management system (BMS) hardware, battery quality procedures, and industrial supervision.

BMSSTM32UKFLSTMAltiumElectric Mobility
Read more

Smart Water Meter — Measuring Chamber Development

Ongoing independent engineering project focused on 3D geometrical modeling, kinematic analysis, and the complete-cycle motion of a rotary measuring chamber.

3D CADKinematicsMechatronicsCFD planned
View project

Rectangular Waveguide (transverse electric mode TE₁₀) Analysis

Designed and simulated advanced 3D microwave channels in ANSYS HFSS. Visualizing the electric and magnetic fields showed how an alumina dielectric can reduce the system's physical footprint.

View Details

Transient Thermal Analysis (FEA vs. LCM)

Compared a lumped-capacitance model with finite element analysis using ANSYS and Fusion 360 to validate the cycle time for automated hot-nut insertion in polycarbonate.

View Details

Luenberger-Based Rendezvous Control

Designed a full autopilot system (Luenberger Observer + State-Feedback Controller) to achieve orbital rendezvous using only angle-data ($y=\theta$), overcoming numerical instability via system normalization.

View Details

Additional Projects & Engineering Studies

Low-Voltage (LV) Electrical System Design

Electrical sizing, short-circuit calculations, and code compliance for an industrial pumping station.

Caneco BT ETAP Code Sizing

Speed Profile Conveyor

PLCnext automation with Modbus remote terminal unit (RTU) protocol and variable-frequency drive (VFD) communication, plus a human-machine interface (HMI) for supervision.

PLCnext Modbus RTU HMI

Plastic Shredder Machine

3D mechanical CAD assembly modeling, drive motorization sizing, and transmission torque dimensioning.

Autodesk Inventor 3D CAD

Remote Solar Pump (IoT)

ESP32 control unit for solar pump telemetry and actuation via HiveMQ MQTT broker and web HMI.

ESP32 MQTT Web HMI

Micro Wind Turbine Control

Dynamic system modeling and nonlinear backstepping control law simulation for an isolated permanent-magnet synchronous motor (PMSM) turbine.

Backstepping MATLAB/Simulink

Power Electronics Hardware

Sinusoidal pulse-width modulation (SPWM) H-bridge inverter simulation (Proteus), hardware-regulated boost converter, and full-wave rectifier build.

SPWM / Boost Proteus & Hardware

Arduino LC Meter

Digital inductance & capacitance measurement circuit with Proteus simulation and custom physical build.

Arduino Hardware

Skills and Tools

Technical Expertise

Smart BMS & Battery Analytics
Battery Modeling & SOC/SOH Estimation
Embedded Systems & IoT
Industrial Automation & Supervision
Electrical Design & Power Electronics
Digital Twin & MIL/HiL Validation
Modeling, Estimation & Advanced Control
Machine Learning & Deep Learning
HFSS / Electromagnetic Simulation
Mechanical Design & 3D Modeling

Software Proficiencies

Engineering & Research Stack

Automation & Control

TIA Portal PLCnext Mach3 CNC Simulink

Electrical & RF

Altium Designer LTspice OMICRON Test Universe Caneco BT ETAP ANSYS HFSS Proteus

Mechanical & CAD

ANSYS Mech Inventor Fusion 360 AutoCAD ProNest

Embedded & AI

STM32CubeIDE FreeRTOS PyTorch Google Colab Jupyter Git / GitHub

Patents

Automated System and Process for Welding and Assembling Corrugated Web Beam Profiles

Granted
Industrial Patent Moroccan Industrial and Commercial Property Office (OMPIC)
Filing Authority: Moroccan Industrial and Commercial Property Office (OMPIC)

An automated robotic manufacturing system developed for the assembly and welding of corrugated web beam profiles. The invention integrates robotic material handling, automated welding robots, corrugation-profile sensing, magnetic-actuator assembly mechanisms, rotation systems, and roller conveyors into a coordinated production line.

The system is designed to improve welding precision, production efficiency, process reliability, and operator safety, while reducing manual intervention, production time, and human error.

Patent No. 65133
Granted: 28 November 2025

Research & Development Focus

Next-Generation Smart BMS for Electric Mobility — Doctoral Research @ UM6P

Active Doctoral Research

Focus: Embedded systems, IoT architecture, and advanced battery intelligence for next-generation electric mobility applications at Mohammed VI Polytechnic University


Research Scope

Advancing the development of next-generation Battery Management Systems (BMS) tailored for electric mobility. This thesis serves as a natural continuation and deepening of my previous work in LiFePO₄ battery modeling, state estimation (SOC/SOH via ECM 3RC, UKF and LSTM residual correction), embedded STM32 hardware design, and cloud/edge IoT supervision.

Smart Water Meter — Rotary Measuring Chamber Development

In Development

Current stage: 3D geometrical modeling and kinematic study of the rotary measuring chamber, with hydraulic/CFD and embedded integration planned next


Project Scope

Developing the mechanical foundation of a smart water meter by defining the rotary measuring chamber, piston geometry, and motion throughout a complete cycle.

Key Technical Focus

  • 3D geometrical modeling
  • Piston and chamber kinematics
  • Complete-cycle motion study
  • Hydraulic and CFD analysis — next stage
  • Electronic and embedded integration — next stage