Portrait of Khalil Saidi Open to a PFE internship in 2027

KhalilSaidi

Electrical and automation engineering student at École Polytechnique de Sousse

I build systems that measure, decide and act: PLC programs, embedded and IoT nodes, and grid-forming control of power converters.

Power & energygrid-forming converters, clean energy, installations Control systemsdroop and dq control, MATLAB / Simulink Industrial automationS7-1200, TIA Portal, PID, WinCC HMI Embedded systemsESP32, Raspberry Pi, RFID, sensors and actuators IoT & cloudMQTT, Docker, Firebase, dashboards From the power stage to the dashboard
Projects

More of my work

From an automotive plant to a research lab and the sea: hardware I built, code I wrote and controllers I designed.

Bachelor's final-year internshipLEONI Wiring Systems Tunisia, Sousse-MessadineFeb – May 2024with Aziz Ammarisupervised by Mr. Kilani Letaief (LEONI) and Mr. Mohamed Farjallah (ISSAT Sousse)

Smart tool cabinet with RFID access

In the wiring production area, the cable-tie guns used on every harness were stored in disorder: tools went missing without explanation, nobody knew who had taken which one, and operators lost time looking for them. In the technical production department, we designed a smart cabinet that makes every gun traceable: who took it, when, and whether it came back.

  • An operator scans an RFID badge (RC522). If the badge is in the database, a Raspberry Pi 4B unlocks the cabinet door through a relay-driven electric lock and enables the keypad; otherwise the LCD shows that access is refused.
  • The operator types the number of the gun. Each gun sits on a metal plate held by a 15 kg electromagnet, which the Pi releases; a limit switch then confirms the gun has been taken and the LCD displays it.
  • Access rules by role: an operator may take one gun at a time, a quality inspector one or several, and a technician is refused.
  • Every operation is written to a Firebase Realtime Database, with security rules on who can read and write. Adding a gun only takes its number and the pin of its electromagnet.
  • A gun not returned within 12 hours triggers an SMS to the team leader through a SIM800L module.
  • An RGB LED shows each gun's state: green when present, red when out, blue after 28 days of use, when it is due for preventive maintenance.

We wrote the embedded software in Python (Thonny), drew the wiring in Fritzing and designed a flowchart for each function. Next steps we proposed: a mobile app, biometric access and UWB tags to locate the guns in real time.

Raspberry Pi 4BPythonRFID RC522Firebase Realtime DatabaseSIM800L SMSElectromagnets and relaysKeypad and I2C LCDFritzingPreventive maintenance

Wiring and flowcharts from our internship report (in French) — select one to enlarge

Research master's thesisISSAT Sousse, LATIS laboratory (ENISO)Feb 2026 – presentsupervised by Mr. Faycel Jellali

Grid-forming control of a three-level T-type inverter

As inverter-based sources replace rotating machines, microgrids lose the inertia that used to hold their voltage and frequency. My thesis asks whether droop control with filtered powers lets a 10 kVA, 400 V three-level T-type inverter, connected through an LCL filter, form a clean voltage on its own, couple smoothly to a weak grid (short-circuit ratio 3) and stay stable through setpoint changes and grid disturbances.

  • Full control chain in MATLAB/Simulink, sampled at 25 µs: P–ω / Q–V droop equivalent to a virtual synchronous machine (H ≈ 0.8 s), cascaded PI voltage and current loops in the dq frame, three-level SVPWM at 40 kHz with neutral-point balancing.
  • Pre-synchronisation and synchrocheck for grid coupling, and three protections: a 30 A current limiter, a threshold-based virtual impedance and a ±9.5 kW active-power limiter.
  • 21 simulation test cases, all run with the final control: islanded, coupling and islanding, grid-connected.
  • Synchronism kept without a PLL through 20° and 60° phase jumps and 150 ms three-phase and single-phase faults; unintentional islanding ridden through without a mode change.
1.8 %voltage THD in islanded mode (1.0 % for current)
±8.7°phase error at breaker closing, coupling current below 80 % of rated peak
< 0.2 sfor active power to reach its setpoint, with no overshoot
1.1 %at the coupling point for a 10 % grid voltage sag

Results from simulation only, with an ideal DC bus and lossless switches; the thesis sets out the limits and the path to hardware-in-the-loop and a reduced-power prototype.

MATLAB / SimulinkGrid-formingDroop controlVirtual synchronous machinedq control3-level SVPWMLCL filterFault ride-through

Figures from my thesis defence (in French) — select one to enlarge

Semester projectÉcole Polytechnique de Sousse2025 – 2026with Wassim Bergaouisupervised by Mrs. Hela Belkhiria

Automation and supervision of an HV transformer cooling system

In a combined-cycle power plant, the ODAF cooling (oil directed, air forced) of a power transformer was still driven by hard-wired relay logic: thresholds were hard to change, nothing reached the control room, and operators had to work close to high voltage. We replaced it with a Siemens S7-1200 solution designed in TIA Portal.

  • CPU 1214C with an RTD module for PT100 oil temperature probes, a pressure transmitter and an oil-level float.
  • A PID_Compact controller in the cyclic interrupt OB30 sets the speed of the oil pumps and fans continuously, through an SM 1232 analog output module and variable-speed drives, instead of on/off staging.
  • Modular program called from OB1: a scaling function converts the raw 0–27648 readings into °C and bar (NORM_X, SCALE_X), a safety function stops everything on emergency stop, oil level or a pressure outside 0.5–3.5 bar, then separate blocks for automatic and manual modes, with a shared data block.
  • The temperature setpoint comes from the HMI, and the PID is held in reset whenever automatic mode is off, so it can never drive the outputs during manual maintenance.
  • Operating modes modelled with GEMMA and Grafcets: safety, supervision, normal production and manual control.
  • KTP700 Basic touch panel built in WinCC: home, automatic and manual views, setpoint, oil temperature gauge, pump and fan status, fault reset.
  • Validated in simulation with S7-PLCSIM and the WinCC runtime simulator.
Siemens TIA Portal V18S7-1200PID_CompactLadderGEMMA / GrafcetWinCCKTP700 HMIPLCSIMPT100
TIA Portal ladder networks for pump and fan commands next to the KTP700 HMI manual-mode screen running in the WinCC simulator
Ladder logic for the pump and fan contactors, and the KTP700 manual-mode screen running in the WinCC simulator.

From our TIA Portal project and report — select one to enlarge

Robotics course lab, ROS 2École Polytechnique de SousseNov 2026individual worksupervised by Mr. Mohamed Amine Bouzidi

TurtleBot 3 control in simulation with ROS 2 Humble and Gazebo

A mobile robot perceives, decides and acts through separate programs that must exchange data continuously. I set up a ROS 2 Humble environment from scratch on an Ubuntu 22.04 virtual machine, studied how a simulated TurtleBot 3 Burger is wired in ROS 2, then wrote my own Python package to drive it: one node follows a square in open loop, the other avoids obstacles from its LiDAR.

  • Mapped the robot's ROS 2 graph: who publishes and subscribes to /scan (LaserScan), /odom (Odometry) and /cmd_vel (Twist). The LiDAR returns 360 rays at 1° resolution, 0.12 to 3.5 m, at about 4.5 Hz in the VM.
  • Drove the robot directly in velocity and checked the circular-path model R = v/ω: 0.1 m/s and 0.5 rad/s give R = 0.2 m.
  • Package tp_turtlebot (ament_python, built with colcon), node carre: a 1 m square in sixteen steps, driven by a 10 Hz timer on simulation time. Odometry measured an 8.4 cm closure error; I traced it to angle discretisation (88.8° per turn instead of 90°), inertia and wheel slip, and proposed a closed-loop version.
  • Node stop_obstacle: a reactive avoidance behaviour that watches the minimum distance over a ±15° front cone rather than a single ray, since the robot is about 14 cm wide.
  • Invalid readings (inf, nan, 0) are treated as a clear path; the robot turns below 0.40 m and only moves on beyond 0.50 m, a hysteresis that stops it from hesitating at the threshold. It subscribes with the sensor-data QoS profile.
  • Analysed the limits: at 0.15 m/s the robot travels about 3 cm between two scans, and it always turns the same way; choosing the freer side would make avoidance faster.
The stop_obstacle node in turtlebot3_world: the robot stops before walls and pillars, turns and moves on (58 s demo).
0collisions in about three minutes of autonomous driving
13avoidances in 168 s, obstacles detected between 0.38 and 0.40 m
8.4 cmclosure error of the open-loop square, about 2 % of the 4 m driven
±15°front cone (31 rays) with a 0.40 / 0.50 m stop and resume hysteresis

Fully simulated in Gazebo Classic 11; no physical robot was used. Deliverables: a 28-page technical report (in French), the ROS 2 package and the demo video.

ROS 2 HumbleGazeboPython (rclpy)colconQoSrqt_graphLiDAROdometryDifferential driveUbuntu 22.04

Figures from my lab report (in French) — select one to enlarge

Semester project and paperÉcole Polytechnique de Soussewith Wassim Bergaouisupervised by Mr. Hichem Kessraoui

Hybrid Marine Platform: wave and tidal energy on one axis

Offshore projects cut costs by sharing one foundation, mooring and cable between several converters. We applied that idea at student scale: a one-metre floating prototype carries a Faraday-lamp wave generator at the surface and a small tidal turbine near the seabed, each with its own circuit, on a single float, axis and ballast. The structure is made of PVC tubing and an extensible siphon that replaces a gimbal and a slide, and the purchased parts cost 111.5 TND. We are writing it up as an IEEE-format paper.

  • We designed the generator: a 3D-printed PETG tube in four parts, a 1,500-turn copper coil and an NdFeB magnet levitating between repelling end magnets instead of springs.
  • We designed a 22 × 46 mm double-sided PCB that slides into the lamp head: Schottky bridge, 0.22 F supercapacitor, switch and LED.
  • Electromagnetic model in Python (SciPy, elliptic integrals): coupling of 9.15 V/(m/s), magnetic-spring natural frequency of 5.5 Hz, so the generator mostly responds to shocks and chop rather than slow swell.
  • Tidal turbine model: 12 to 94 mW captured between 0.5 and 1 m/s. These are theoretical values; pool tests will calibrate the model.
Wave energyTidal energyFaraday and Lenz lawsPython / SciPyPCB design3D printing (PETG)Low-cost prototyping

Design figures from our paper (in French) — select one to enlarge

Course project, dependabilityÉcole Polytechnique de Soussewith Wassim Bergaouisupervised by Prof. F. Ben Hmida

Multi-sensor monitoring of an electric pump

Can the detection index D of an FMEA be measured instead of guessed? Using the public SKAB dataset (34 runs on a real pump test bench, eight sensors at 1 Hz, seven failure modes), we built a fault detector in Python and judged it the way a maintenance team would: is the first alarm right, how fast does it come, how often does it ring for nothing.

  • Hotelling T² on short-term deviation features, with a Ledoit–Wolf covariance estimate; it beat Isolation Forest in six cases out of seven.
  • Vibration and hydraulic sensors together caught 82% of faults on the first alarm. Motor current, measured as 1 Hz RMS, caught almost nothing.
  • A model learned at one operating point failed at another (82% fell to 26%): the reference must be relearned after every setting change.
  • With four sensors, the criticality of every failure mode in the pump's FMEA dropped by 25 to 75%.
Pythonscikit-learnHotelling T²Isolation ForestFMEACondition-based maintenance
Experience

Where I've worked

  1. Feb 2026 – present

    Control and power engineer, research internship

    Laboratory of Advanced Technology and Intelligent Systems (LATIS), ENISO

    Master's thesis on grid-forming control of a three-level T-type inverter in MATLAB/Simulink: droop control, cascaded dq loops, three-level SVPWM, neutral-point balancing, grid synchronisation and fault ride-through.

  2. Summer internship

    Residential electrical design intern

    Ouerdani Electricity Corporation, Akouda

    Took part in the electrical design of a villa: lighting and socket layouts, power balance, cable sizing and circuit-breaker panel layout.

  3. Feb – May 2024

    Embedded systems intern, bachelor's final-year project

    LEONI Wiring Systems Tunisia

    Designed and built an RFID-based tool management system on a Raspberry Pi 4B, with Python software, Firebase Realtime Database, electromagnetic locks, SMS alerts and preventive maintenance.

Skills

What I work with

Automation

Siemens TIA PortalS7-1200LadderPID_CompactGEMMA / GrafcetWinCC HMIPLCSIM

Control & power

MATLAB / SimulinkDroop controldq-frame controlPID3-level SVPWMMicrogrids

Embedded & IoT

ESP32ArduinoRaspberry PiC/C++PythonRFIDMQTTDockerFirebase

Energy

Clean energyDistributed generationWave and tidal energyPCB designPrototyping

Electrical installations

Lighting and socket layoutsPower balanceCable sizingLV distribution panels

Tools & methods

ROS 2GazeboLinux (Ubuntu)VS CodeGitHubLaTeXTechnical writingPredictive maintenanceData analysis
Education

Where I study

2025 – present

École Polytechnique de Sousse

Engineering degree, electrical and automation engineering

2024 – present

ISSAT Sousse

Master's degree, sustainable mobility and clean energy

2020 – 2024

ISSAT Sousse

Bachelor's degree, embedded systems

Let's build yournext project

I'm looking for a final-year (PFE) internship in industrial automation, control, embedded and IoT systems, or energy.

khalil.saidi@polytechnicien.tn