Retrofit Data Logger for Existing Machines

Add history and visibility to an older machine by observing existing signals without taking over its control logic.

← All project briefs

Safety and scope

Do not tap into live machinery wiring without authorisation, drawings, isolation procedures and a qualified person. Read-only monitoring must be verified as non-interfering.

Plan, predict and test

Suggested virtual study time: about 25 minutes. This is a planning estimate, not a validated construction time.

Preparation: Qualified industrial supervision and relevant instrumentation/control knowledge. Review a foundation lesson ↗

Use paper, a spreadsheet or a simulator. This is not a verified physical assembly guide.

  1. Scenario: Model 4–20 mA representing 0–100 units. Calculate 4, 12 and 20 mA.
  2. Expected result: Expected values: 0, 50 and 100 units. Keep invalid samples distinguishable.
  3. Checkpoint: Write your prediction, test it in the virtual model and explain any difference.

Knowledge check

Should invalid input be silently clamped to a valid sample?

A correct answer does not certify the physical system.

Record your validation

Simulation only. Do not connect this exercise to an energized machine, mains wiring, PLC panel or production system. A qualified engineer must review the real system and its independent safety functions.

CaseWhat to record
Normal input4 mA → 0, 12 mA → 50, 20 mA → 100 units
BoundaryModel endpoints 4 and 20 mA; document rounding
Missing or invalid inputOutside 4–20 mA → mark invalid in this simplified model; actual transmitter fault bands differ.
Repeat testRepeat the virtual test, record the actual output and compare with the expected result.

These are test-planning requirements, not recorded hardware results.

Before building: understand the listed components and the relevant low-voltage safety rules. This is a concept brief, not a tested assembly manual.

What it does

Capture machine run states, events and production information while leaving the original controller responsible for machine operation.

Engineering principle

The logger reads existing relay contacts or PLC signals through suitable isolated inputs, conditions analog signals such as 4–20 mA or 0–10 V, or reads available data through Modbus RTU/RS-485. Readings are timestamped locally, buffered when offline and uploaded when connectivity returns.

Hardware and components

  • Isolated digital input interface / optocouplersRead relay contacts, limit switches or PLC signals with appropriate electrical separation.
  • Analog signal conditioningInterfaces 4–20 mA or 0–10 V signals within the input range.
  • RS-485 / Modbus RTU interface (where available)Reads documented machine data without modifying the control program.
  • ESP32, Arduino UNO Q or industrial micro-PLCCollects the data and manages storage/network transfer.
  • DS3231 RTC, SD card and network moduleProvide timestamps, offline buffering and Wi-Fi/cellular upload.
  • DIN-rail enclosure and terminalsAllow organised mounting and connection in the panel.

Suggested build sequence

  1. Survey the machine’s existing electrical drawings, spare contacts, signal types and communication ports.
  2. Agree which points can be observed without affecting operation.
  3. Build and bench-test isolated input interfaces before connecting to the machine.
  4. Timestamp and store state changes locally, including when the network is unavailable.
  5. Upload buffered data and verify that the logger cannot write commands or interfere with the original controller.

Learning outcomes

  • Industrial signal interfacing
  • Optical isolation and signal conditioning
  • Modbus/RS-485 fundamentals
  • Edge logging, buffering and telemetry

Possible upgrades

Add an OEE-style view, downtime categories, production counts, role-based dashboards or a fleet-level historian.

Related briefs