MSc Internet of Things: Applied Technologies
Tobias Rovira
Embedded systems & IoT engineer — from SolidWorks enclosure to firmware, edge ML and cloud.

BEng (Hons) Engineering & Management
★ First Class
Engineer Intern

Software Automation Engineer
Core tools
C/C++
Python
Agentic coding
MATLAB/Simulink
SolidWorks
KiCad
- Based in
- Madrid, Spain
- Languages
- Spanish · Native
- English · C1
[01 — Projects]
Five things I designed and built


NeurowakeSleep staging and smart-alarm IoT system that runs entirely at the edge
Award: Best Engineering Project 2025H2O SolutionsInline retrofit valve that pauses the shower when you step out
TwinFlowIoT stormwater regulator that empties storage ahead of forecast storms
Multi-DOF Robotic SystemTransportable 5-DOF telescopic arm, simulated as a MATLAB/Simulink digital twin
Machine Learning detectionNeural networks that sort defective from sound cast parts
2025–2026 · University of Exeter · BEng final-year project
Neurowake
Sleep staging and smart-alarm IoT system that runs entirely at the edge. Individual project.

Step by step
Split the work by power budget
The mask only records and transmits; the bedside unit does everything else.
Run a sensor mask all night on a coin cell
Three skin electrodes and an AD8232 amplifier; ≈ 40 h on one CR2032.
Fit a sleep classifier into 8 MB of flash
800 XGBoost trees compiled to C label every 30 s: awake, light, deep or REM.
Decide when to wake, at the bedside
Deep sleep never triggers the alarm; only the hard deadline can.
Test it at home against reference labels
5 adults, 16 nights: 71.7 % agreement with Sleep2 labels across 4 stages.
C/C++
nRF52840
ESP32-S3
BLE
- Wi-Fi
Python
Supabase
Build log
Neurowake StationBedside unit
Classifies each 30 s recording from the mask and decides when to sound the alarm. XIAO ESP32-S3, OLED, two push-buttons and a speaker.


Neurowake BeaconWearable
Worn in the sleep mask: three skin electrodes pick up eye movements and it sends each 30 s recording to the Station. Runs on one coin cell.



The sleep-stage classifierSleep model
Trained in Python on labelled nights, then compiled into the Station's firmware: 31 features per 30 s recording, 800 XGBoost trees, four sleep stages.





The Station on its own PCBNext
Moving the Station from the breadboard to a custom circuit board, designed in KiCad. Work in progress.


Specifications · Engineering notes
Specifications
| Beacon (wearable) | nRF52840 + AD8232 amplifier (gain 100); 3 skin electrodes |
|---|---|
| Sampling & link | 50 Hz, 12-bit; BLE, 3,000 B per 30 s recording in 1.3–1.5 s |
| Power | CR2032 coin cell, 5.05 mA average |
| Station (bedside) | XIAO ESP32-S3, BLE + Wi-Fi at once; OLED, 2 push-buttons, speaker |
| Model | XGBoost, 4 sleep stages, 800 trees compiled to C; 3.6 MB in flash |
| Cloud | Supabase + mobile app; writes only when the stage changes |
Engineering notes
System
The Beacon only records and transmits. The Station classifies each 30 s recording and runs the alarm, with nothing in that path depending on the network. The app sets up the Station and the wake window. The cloud stores the night and is written only when the stage changes, about 25 times fewer writes.
Hardware
The AD8232 amplifies the 0.4–1.0 mV eye-movement signal 100× from three electrodes in a fabric mask, instead of the five used clinically. The Beacon sleeps between recordings without dropping the BLE link. 247-byte packets at 2 Mb/s cut each recording from over 150 packets to about 13.
Software
31 features per recording, computed by one C library that both the Python training and the firmware use. XGBoost was the only model that fitted in the Station's 8 MB flash (3.6 MB, against 14 MB for random forest and 83 MB for gradient boosting). The alarm runs its safety checks first; deep sleep never triggers it, only the deadline can.
Validation
Five adults wore the mask at home for 16 nights, compared against Sleep2 labels. On 2,531 held-out recordings it agreed 71.7 % of the time (κ 0.54). The main error is deep sleep read as light (201 of 486). The Beacon runs ≈ 40 h on a CR2032, and it takes < 2.5 s from the end of a recording to the alarm decision. Limits: five participants, a split that mixes recordings from the same people, and Sleep2 rather than a clinical sleep study as the reference.
2024–2025 · University of Exeter · ENG2015 Management Challenge Project
H2O Solutions
Inline retrofit valve that pauses the shower when you step out
Role · Team of 3 — software and electronics developerAward: Best Engineering Project 2025

- The problem
- People spend 30–55 % of a shower out of the stream while the water keeps running.
- What it does
- An inline module that pauses the flow when you step out of the stream — fitted with standard ½" fittings, no plumbing changes.
- What it demonstrates
- Fail-safe electronics and simple, robust firmware inside a team product, backed by evidence from real users.
Arduino Nano Every
C/C++
- JSN-SR04T
- MOSFET
- Solenoid valve
SolidWorks
- BS 8888
In pictures



Specifications
| Controller | Arduino Nano Every (ABX00028) |
|---|---|
| Sensor | JSN-SR04T waterproof ultrasonic, on a 15°–80° acetal friction hinge |
| Actuator | 12 V normally-open brass solenoid valve, ½" BSP |
| Power | 8 × AA in series (12 V); rechargeable cells supported |
| Enclosure | IP65 PVC, screwed lid, rubber washers, M12 cable gland |
Engineering notes
Hardware
Designed in SolidWorks with a full BS 8888 drawing set. An IP65 PVC enclosure holds the plumbing and electronics; brass ½" BSPP running nipples and a socket accept both male and female connections. A waterproof JSN-SR04T ultrasonic sensor sits on a friction hinge adjustable from 15° to 80° to suit different cubicles, and its cable enters through an M12 gland.
An Arduino Nano Every switches a 12 V normally-open solenoid valve through an RFP30N06LE MOSFET, with a 1N4007 flyback diode. A normally-open valve saves battery and keeps the water running if the system stops working, e.g. with a flat battery. Power comes from 8 AA cells in series.
Software
C++ on the Arduino Nano Every:
- The sensor measures distance every 2 s while the shower is in use and every 30 s when idle, to save battery.
- The state changes only after three consecutive readings agree, so a brief obstruction doesn't toggle the valve.
- When nobody is within 80 cm, the valve cycles 10 s closed / 3 s open — the short open phase keeps the room's temperature and humidity comfortable — until the user returns. After 5 minutes without presence the system goes idle.
Validation
Fifteen timed showers by five people recorded time under and out of the stream: on average 45.1 % of each shower was spent out of the flow (range 31.6–54.7 %). During those periods the 10 s / 3 s cycle removes 77 % of the flow, which gives a saving of 23–42 % per shower.
2026 · University of Exeter · ENG3010 Industrial Awareness — design study (not built)
TwinFlow
IoT stormwater regulator that empties storage ahead of forecast storms
Role · Team project — technical lead

- The problem
- New housing replaces soil with hard surfaces, and passive drainage storage is often already full when a storm arrives — so the rain runs straight off.
- What it does
- A regulator per plot measures the stored water and empties it ahead of forecast storms; plots coordinate over LoRa.
- What it demonstrates
- Leading the technical design of an IoT product from a hydrological problem: system architecture, custom PCB, LoRa telemetry, forecast-driven valve control and a SolidWorks enclosure.
XIAO nRF52840
- LoRa SX1278
EasyEDA PCB
- Weather API
SolidWorks
In pictures





Specifications
| MCU | Seeed Studio XIAO nRF52840 (Arm Cortex-M4F, 64 MHz) |
|---|---|
| Sensing | Capacitive soil-moisture sensor v2.0 (water content %); AJ-SR04M waterproof ultrasonic level sensor |
| Telemetry | LoRa SX1278 (RA-02) module |
| Actuator | 12 V normally-closed solenoid valve, MOSFET switch with flyback diode |
| Enclosure | SolidWorks, IP65; M20 cable gland; inline brass valve; assembly, valve and lid drawings |
Engineering notes
System
Each green-roof or permeable-paving plot stores water under its surface; one control unit where the pipes meet regulates all connected plots. The normally-closed valve opens only for a forecast storm (pre-emptive discharge) or when the substrate needs water. Readings go over LoRa to a cloud platform, where the forecast and the measured state decide when to discharge.
Hardware
One custom PCB carries the XIAO nRF52840, the LoRa module, an AMS1117 5 V regulator and the MOSFET valve driver. The IP65 SolidWorks enclosure sits inline with the drainage outlet and keeps the fluid path separate from the electronics.
Validation
A design study: the architecture, PCB layout and SolidWorks model were completed, but no prototype was built, so there is no measured performance. Next steps: mains power through a low-draw supply instead of a 12 V battery, and a multi-port logger so one controller can read moisture sensors across many plots.
2025 · University of Exeter · Robotics coursework, group project
Multi-DOF Robotic System
Transportable 5-DOF telescopic arm, simulated as a MATLAB/Simulink digital twin
Role · Team of 4 — MATLAB/Simulink developer

- The problem
- Fixed-geometry field robots offer reach and rigidity but are hard to transport and set up.
- What it does
- A 5-DOF arm with two telescopic arms that folds into a 2.3 × 2.3 × 5.9 m envelope, simulated as a MATLAB/Simulink digital twin.
- What it demonstrates
- Kinematics, rigid-body dynamics and multi-axis PID control, validated in a MATLAB/Simulink digital twin.
MATLAB
Simulink
Robotics System Toolbox
SolidWorks
- PID control
In simulation
In code
% Define a collision environment (example environment)env = {collisionBox(1,1,1)}; % Define a simple collision box as the environment% Generate the workspace for the robot in the collision environmentrng default[workspace,configs] = generateRobotWorkspace(robot,env,'tool',MaxNumSamples=5000000);% Plot the workspace as an alpha shapefigure;wsAlpha = alphaShape(workspace(:,1),workspace(:,2),workspace(:,3));a = plot(wsAlpha,FaceAlpha=0.20,EdgeColor="none");title("Robot Workspace in Specified Environment")xlabel('X [m]');ylabel('Y [m]');zlabel('Z [m]');hold on;% Plot the robotshow(robot); % Plot the robot in the first configurationhold off;
In pictures



Specifications
| Kinematics | 5 DOF: 3 rotating + 2 telescopic joints (R-R-P-R-P); standard Denavit–Hartenberg joint frames |
|---|---|
| Base | 2.00 m column, 5,777.8 kg |
| Arms | 2 telescopic arms, 5.80 m → 11.00 m each, 972.13 kg each |
| Material | AISI 4130 high-strength steel — 460 MPa yield, 560 MPa tensile strength; resists corrosion and weathering |
| Control | Inverse kinematics, one PID controller per joint (filtered derivative), gravity compensation |
Engineering notes
System
A MATLAB/Simulink digital twin models the full dynamics of the arm — mass, centre of mass and inertia of every link — on a standard chain of joint frames. Inverse kinematics turns the desired tool path into joint targets; one PID controller per joint, with gravity compensation, drives the joints, and an error monitor compares actual and desired positions throughout the run.
Hardware
Modelled in SolidWorks: a 2 m base column and two telescopic arms that each extend from 5.80 m to 11.00 m. Both arms are identical, so they can be manufactured as one module. The structure is AISI 4130 high-strength steel, chosen for strength, availability and resistance to weathering on outdoor sites.
Software
Per-joint PID gains were tuned in MATLAB. The large link masses (5,777.8 kg base, 972.13 kg per arm) mean large inertia, so the gains are correspondingly large to keep the arm stable. An 8-point warm-up path brings the arm to steady state before the measured trajectory starts. The reachable workspace was generated in code inside a collision environment.
Validation
On a 120-second helical test path, simulated at a 0.01 s step, the tool stayed within 30 mm of the desired path (mean 5.5 mm, standard deviation 4.4 mm), against a 150 mm requirement. The largest errors occur where the path turns most sharply.
2025 · University of Exeter · ENG2006 coursework
Machine Learning detection
Neural networks that sort defective from sound cast parts
Role · Individual coursework

- The problem
- Industrial visual inspection: tell defective cast parts from sound ones in photographs.
- What it does
- A compact CNN trained end to end and compared with a fully connected baseline on the same held-out test set.
- What it demonstrates
- Applied deep learning end to end: data preparation, hyperparameter search with early stopping, and a compact CNN for industrial visual inspection.
Python
TensorFlow / Keras
scikit-learn
OpenCV
NumPy
In code
import tensorflow as tf
from tensorflow.keras import layers
# Reshape the data to include channel dimension for CNN, this is a requirement for the Conv2D layer in the CNN model
imagesTrain_reshaped = imagesTrain.reshape(imagesTrain.shape[0], 150, 150, 1)
imagesVal_reshaped = imagesVal.reshape(imagesVal.shape[0], 150, 150, 1)
imagesTest_reshaped = imagesTest.reshape(imagesTest.shape[0], 150, 150, 1)
# Define the CNN model
imageModelCNN = tf.keras.Sequential([
# First Convolutional Layer + MaxPooling
# Why using 32 filters? Using 32 filters is sufficient to detect these low level features without overwhelming the model with too many parameters, this ensures reducing computational complexity and memory usage
layers.Conv2D(32, (3, 3), activation='relu', padding='same', input_shape=(150, 150, 1)),
layers.MaxPooling2D((2, 2)),
# Second Convolutional Layer + MaxPooling
# Why using 64 filters? More filters in the second layer help in better representation of the input data, leading to improved performance in classification and still keeping the model complexity low
layers.Conv2D(64, (3, 3), activation='relu', padding='same'),
layers.MaxPooling2D((2, 2)),
# Flatten and Dense layers
layers.Flatten(),
layers.Dense(128, activation='relu'),
layers.Dropout(0.5), # Add dropout to prevent overfitting
layers.Dense(64, activation='relu'),
layers.Dense(1, activation='sigmoid') # Binary classification
])
# Compile the model
imageModelCNN.compile(
optimizer='adam',
loss='binary_crossentropy',
metrics=['accuracy']
)
# Early stopping callback
early_stopping = tf.keras.callbacks.EarlyStopping(
monitor='val_loss',
patience=5,
restore_best_weights=True
)
# Print model summary
imageModelCNN.summary()
# Train the model
history = imageModelCNN.fit(
imagesTrain_reshaped, imageLabelsTrain,
validation_data=(imagesVal_reshaped, imageLabelsVal),
epochs=20,
batch_size=32,
callbacks=[early_stopping]
)
imageModelCNN.save('imageModelCNN.keras')Coursework template comments removed.
hidden_layers_options = [1, 2, 4] # number of hidden layers as specified in the question
hidden_units_options = [8, 16, 32, 64, 128] # number of units in each hidden layer as specified in the question
learning_rates_options = [1e-1, 1e-2, 1e-3, 1e-4] # learning rate options as specified in the question
# …
# Loop over all combinations of hidden layers, units, and learning rates as specified in the question
for hl in hidden_layers_options: # number of hidden layers
for hu in hidden_units_options: # number of units in each hidden layer
for lr in learning_rates_options: # learning rates
# Build the model
model = keras.Sequential()
# First hidden layer
model.add(layers.Dense(hu, activation='relu', input_shape=(2,))) # hu is added so it can iterate over the hidden units
for _ in range(hl - 1): # hl -1 because we already added the first hidden layer , finally its [0, 1, 3] which is the remaining hidden layers for possible combinations
model.add(layers.Dense(hu, activation='relu')) # hu provides the same functionality as above
# Output layer with 3 classes as specified in the question
model.add(layers.Dense(3, activation='softmax'))
# Optimizer definition following the documentation provided in the question
optimizer = keras.optimizers.Adam(
learning_rate= lr , # learning rate that is iterated over
beta_1=0.9,
beta_2=0.999,
epsilon=1e-07,
amsgrad=False,
weight_decay=None,
clipnorm=None,
clipvalue=None,
global_clipnorm=None,
use_ema=False,
ema_momentum=0.99,
ema_overwrite_frequency=None,
loss_scale_factor=None,
gradient_accumulation_steps=None,
name="adam"
)
# Compile the model with crossentropy loss function as specified in the question
model.compile(loss='sparse_categorical_crossentropy',
optimizer=optimizer, # optimizer defined above
metrics=['accuracy']) # accuracy as the metric to be evaluated
# Define Early stopping callback following the documentation provided in the question
callback = keras.callbacks.EarlyStopping(
monitor="val_loss",
min_delta=0,
patience=patience, # patience is defined in the question as 10
verbose=0,
mode="auto",
baseline=None,
restore_best_weights=True, # Set this to True as tought in the MLP lecture specifically in the example of the early stopping section, this is intended to use the best weights achieved during training rather than the last epoch weights
start_from_epoch=0
)
# Train the model designed in the loop with the training data and validate it with the validation data (this process is repeated for all the combinations of hyperparameters defined above)
model.fit(pointsTrain, pointLabelsTrain,
validation_data=(pointsVal, pointLabelsVal),
epochs=100, verbose=1,
callbacks=[callback]) # callback defined above for early stopping
# Evaluate on the validation set
val_loss, val_acc = model.evaluate(pointsVal, pointLabelsVal, verbose=1)
# Store results in the list initialized above for further analysis and confirmation of the best model
testedLayers.append(hl) # number of hidden layers
testedUnits.append(hu) # number of units in each hidden layer
testedRates.append(lr) # learning rate
testedLosses.append(val_loss) # validation loss
testedAccuracies.append(val_acc) # validation accuracy
# Update best model if the current model trained and evaluated is better
if (val_loss < lossOpt - 1e-6) or (abs(val_loss - lossOpt) < 1e-6 and val_acc > accOpt): # logic to update the best model based on the validation loss and accuracy
# Update the best model characteristics if it pass the logic above
modelOpt = model
lossOpt = val_loss
accOpt = val_acc
layersOpt = hl
unitsOpt = hu
lrOpt = lr
print(f"New best model with {hl} hidden layers. Val loss: {val_loss:.4f}")Excerpt: search space and training loop.
In pictures



Specifications
| Task | Binary classification: defective vs sound cast components |
|---|---|
| Data | 6,633 training + 715 test images, resized to 150 × 150 greyscale, normalised to [0, 1] |
| CNN | Conv 32 → max-pool → Conv 64 → max-pool → Dense 128 (dropout 0.5) → Dense 64 → sigmoid |
| Baseline | Fully connected network, 64 units per layer, ReLU, Adam, early stopping (patience 5) |
| Sweep (part 1) | 60 feed-forward networks on a 3-class 2D dataset; up to 100 epochs, early stopping (patience 10) |
Engineering notes
Software
Images are loaded as greyscale, resized to 150 × 150 and normalised; the training set is split 75/25 into training and validation, stratified by class. The baseline flattens each image into a fully connected network and compares 2, 4 and 8 hidden layers. The CNN uses two convolution and max-pooling stages (32 and 64 filters), then two dense layers with dropout to limit overfitting, trained with early stopping.
Validation
On the 715 held-out test images, the CNN reached 99.72 % accuracy against 89.79 % for the best fully connected network. In part 1, the sweep selected 4 hidden layers of 64 units at a learning rate of 10⁻³ (93.5 % validation, 92.2 % test accuracy).
[02 — References]
What supervisors and managers say
Tobias successfully developed and implemented more than six custom web applications and dashboards, including platforms for project tracking, Artificial Intelligence (AI) workflows and internal operations.
Worked with Tobias during his Automation Engineering internship
The project demands advanced competencies in embedded systems, wireless communication, biosignal processing, and applied machine learning. Despite encountering significant challenges in these areas, Tobias consistently demonstrated strong problem-solving skills and developed innovative solutions.
Supervisor of the Neurowake final-year individual project
Full letters available on request.
[03 — Certifications]
Certified
17 credentials from 3 issuers — select one to see the courses.
7MathWorksMATLAB & Simulink
- Simulink Onramp
- Multibody Simulation Onramp
- Explore Convolutional Neural Networks
- Tune Deep Learning Training Options
- Signal Classification with Deep Learning
- Regression with Deep Learning
- Time-Frequency Analysis
1Dassault SystèmesSOLIDWORKS
- Certified SOLIDWORKS Associate — Mechanical Design (CSWA)
9Microsoft (via Coursera)Microsoft Project Management Professional Certificate
- Microsoft Project Management — Professional Certificate
- Project Management Fundamentals
- Project Management Principles
- Project Management Performance Domains
- Process Groups and Processes in Project Management
- Project Manager Engagement with Stakeholders
- Team Building and Leadership in Project Management
- Agile and Hybrid Approaches in a Project Environment
- PMP Formulas
[04 — Contact]
Let's talk.
Available full-time, immediately, for embedded, IoT and mechatronics roles.
- Based in
- Madrid, Spain