All projects
PRJ-02 · Industrial Automation · Embedded Systems · Measurement
Professional ProjectIndustrial AutomationCompleted

Automated Carpet Area Measurement System

Embedded Retrofit for an Industrial Carpet Folding Machine

Designed and integrated an embedded measurement system into an existing industrial carpet folding machine to automatically determine carpet dimensions and calculate surface area during operation.

The retrofit eliminated the need for manual dimension measurement by the machine operator. The system combines rotational and linear-motion sensing with a central embedded controller to calculate carpet dimensions and automatically determine total area.

Embedded SystemsIndustrial AutomationMachine RetrofitRotary EncoderIR SensorStepper MotorTouchscreen HMIMotion MeasurementEmbedded FirmwareSensor IntegrationArea CalculationHardware IntegrationIndustrial ElectronicsMachine Automation
Industrial carpet folding machine with the embedded measurement retrofit: operator touchscreen on the left, conveyor roller with rotary encoder and an optical sensor emitting a red beam over a patterned carpet

The machine in operation — operator touchscreen, conveyor roller with rotary encoder, optical sensor and the carpet being measured.

01 Project Overview

This project upgraded an existing industrial carpet folding machine with an embedded measurement system capable of automatically calculating the surface area of each carpet processed by the machine.

Before the modification, the operator had to measure carpet dimensions by hand. The embedded system automated this by measuring the dimensions during machine operation and calculating the area automatically — reducing manual operator work and building dimensional measurement directly into the normal folding workflow.

02 From Manual to Automatic Measurement
Before
Carpet
Folding Machine
Manual Dimension Measurement
Manual Area Calculation
After
Carpet
Folding Machine
Integrated Sensors
Embedded Controller
Automatic Dimension Measurement
Automatic Area Calculation
Touchscreen Display

Measurement becomes part of the normal machine workflow.

03 My Contribution
Measurement subsystem

I designed and implemented the embedded measurement system and integrated it into the existing carpet folding machine.

EXISTING SYSTEM
Industrial carpet folding machine
MY DEVELOPMENT
Embedded automatic carpet measurement subsystem
  • ▸System architecture
  • ▸Embedded controller integration
  • ▸Sensor selection and integration
  • ▸Rotary encoder interfacing
  • ▸IR sensor integration
  • ▸Stepper motor control
  • ▸Pulley / mechanical measurement integration
  • ▸Touchscreen user interface integration
  • ▸Measurement firmware
  • ▸Dimension calculation
  • ▸Area calculation
  • ▸Machine integration
  • ▸Calibration
  • ▸Testing
  • ▸Debugging
  • ▸Validation
04 System Architecture
EXISTING CARPET FOLDING MACHINECARPETROTARY ENCODERSTEPPER + PULLEYIREMBEDDEDCONTROLLERAREAXX.XX m²HMI

Conceptual illustration — not a drawing of the actual machine.

Carpet Folding Machine
Embedded Measurement System
Rotary Encoder
IR Sensor
Touchscreen HMI ⇄
Central Controller
Dimension Calculations
Area Calculation
Operator Display
Second measurement path
Stepper Motor
Pulley / Mechanical Measurement Mechanism
IR Sensor / Position Detection
Central Controller
05 Automated Dimensional Measurement

Two physical dimensions of the carpet are acquired through integrated motion and sensing mechanisms: one through rotary encoder feedback, the other through a stepper-driven pulley mechanism with IR position detection. Both feed the central embedded controller.

Dimension 1 · Rotary encoder
Dimension 2 · Stepper + IR
Close-up of the measuring mechanism: textured conveyor roller with the labelled rotary encoder on its shaft, an optical sensor emitting a red beam onto the carpet, and a grooved tracking wheel resting on the carpet surface

Rotary encoder on the roller shaft, optical sensor and tracking wheel during measurement.

06 Rotary Encoder Measurement

A rotary encoder monitors rotational movement during carpet processing. The embedded controller counts encoder pulses and converts the measured motion into dimensional information.

Carpet Movement
Machine Rotation
Rotary Encoder
Encoder Pulses
Embedded Controller
Dimension Measurement
07 Stepper / IR Measurement Mechanism

A second measurement mechanism uses a stepper motor, a pulley and an IR sensor to determine the other carpet dimension.

Carpet
Measurement Mechanism
Pulley / Stepper Motion
IR Sensor Position Detection
Embedded Controller
Measured Length
08 Operator Touch Interface

The machine was equipped with a touchscreen user interface connected to the central embedded controller, giving the operator direct access to the measured dimensions, the calculated carpet area and the measurement status.

Operator touchscreen mounted on the machine enclosure showing width, length, computed area, carpet number and shelf, with measure, register, clear and settings buttons, and emergency stop, push button and rotary selector below

The operator interface in service: ΠΛΑΤΟΣ width, ΜΗΚΟΣ length, Τ.Μ. computed area, ΑΡ. ΧΑΛΙΟΥ carpet number and ΡΑΦΙ shelf, with measure, register, clear and settings actions and Wi-Fi status.

09 Firmware Architecture
System Initialization
Sensor Monitoring
Encoder Pulse Acquisition
IR / Position Detection
Motion Measurement
Dimension Calculation
Area Calculation
HMI Update
Supporting modules
Stepper Motor ControlMeasurement State MachineCalibrationInput ValidationFault HandlingUser Interface Management
Measurement sequence · conceptual
READYCARPET DETECTED / STARTMEASURINGDIMENSIONS ACQUIREDAREA CALCULATEDRESULT DISPLAYEDREADY FOR NEXT CARPET
10 Automatic Area Calculation

Once both carpet dimensions are measured, the firmware calculates the surface area automatically and shows it on the touchscreen. The engineering value lies in acquiring the dimensions automatically — the multiplication itself is simple.

Dimension 1
Dimension 2
Length × Width
Carpet Area → HMI
11 Retrofitting an Existing Industrial Machine

The project was implemented as a retrofit rather than as a new machine design. The embedded measurement system had to be integrated into an existing carpet folding machine without changing its primary operational purpose.

  • ▸Integration with existing machinery
  • ▸Sensor placement
  • ▸Mechanical integration
  • ▸Embedded electronics integration
  • ▸Operator interface
  • ▸Maintaining the existing machine workflow
  • ▸Adding automation without requiring manual measurement
12 Calibration & Validation

The system required calibration to convert sensor and motion information into physical carpet dimensions. Validation compared automatically measured dimensions with known, manually measured dimensions, adjusting the system until measurement behaviour was consistent.

Known Carpet Dimension
Automatic Machine Measurement
Calculated Dimension
Reference Measurement
Comparison
Calibration
Final Validation
Conversion
Encoder / Sensor Data
Conversion Parameters
Physical Dimension
13 Engineering Challenges
  1. 01Adding automated measurement to an existing industrial machine
  2. 02Translating mechanical movement into reliable digital measurements
  3. 03Integrating rotary encoder feedback into the embedded controller
  4. 04Developing a second dimensional measurement mechanism using stepper motor, pulley and IR sensing
  5. 05Synchronizing measurement with the physical carpet-handling process
  6. 06Calculating dimensions automatically during machine operation
  7. 07Designing a simple touchscreen interface for the operator
  8. 08Calibrating mechanical movement against real physical dimensions
  9. 09Integrating electronics, firmware and mechanical components into an existing machine
  10. 10Ensuring repeatable measurement behaviour in a real industrial environment
14 Operational Improvement

Measurement became part of the machine process rather than a separate manual task.

  • ▸Reduced manual measurement work
  • ▸Measurement integrated into the machine workflow
  • ▸Faster access to carpet dimensions
  • ▸Automatic calculation of carpet area
  • ▸More consistent measurement procedure
  • ▸Reduced operator intervention
  • ▸Digital presentation of measurement results
15 Technology Stack
Sensing & Motion
Rotary EncoderIR SensorStepper MotorMotion MeasurementSensor Integration
Embedded
Embedded SystemsEmbedded FirmwareArea Calculation
Interface
Touchscreen HMI
Industrial
Industrial AutomationMachine RetrofitMachine AutomationHardware IntegrationIndustrial Electronics