← All projects
Professional project
HardwareFirmwareAnalogProductionPCBCommunication

Analog Retrofit Module for Legacy Heating Controllers

Production retrofit module adding configurable 4–20 mA and 0–10 V interfaces to a newer digital heating-controller platform, keeping legacy machines compatible without changing their established interface.

System architecture diagram of the analog retrofit module, showing the PIC24FJ128GA702 module interfacing between the dsPIC33-based heating controller and legacy machine interfaces over 4-20 mA, 0-10 V and digital I/O
  • Took over an early PCB revision with design issues and redesigned almost every part of the board for the final production version
  • Configurable 4–20 mA / 0–10 V input and output interfaces for backward compatibility with legacy machines
  • Extended the proprietary UART protocol and developed PIC24 firmware for analog I/O, digital control and alarm handling
  • Designed the 4-layer PCB to fit the existing controller housing without mechanical redesign
  • Developed prototype, bring-up, production flashing adapter/software, test setup, documentation and ERP integration
  • Series product: more than 1,000 units produced and more than 500 sold

Context

A legacy heating controller was being discontinued in favor of a newer, more capable controller platform. The newer controllers, however, no longer provided the analog interfaces used by machines already installed in the field.

The new controller therefore had to reproduce the interfaces and operating behavior expected by those machines. The solution was a dedicated retrofit module adding 4–20 mA, 0–10 V and digital I/O while communicating internally with the new controller over UART.

My Role

I took over the first revision of the module and developed it into the final production design.

The original concept already existed, but the first PCB contained design issues and required a substantial overhaul. During the redesign, almost every area of the board was revised, including component selection, analog circuitry, protection and PCB layout.

My responsibility extended beyond the electronics themselves: schematic redesign, component selection, 4-layer PCB layout, prototype assembly and bring-up, PIC24 firmware, protocol extension, verification, production flashing hardware/software, documentation and integration into the ERP/BOM structure of the final controller product.

Analog Interface

The module is based on a PIC24FJ128GA702 and communicates over UART with the main controller, built around a dsPIC33EP256GP504.

System architecture diagram of the analog retrofit module, showing the PIC24FJ128GA702 module interfacing between the dsPIC33-based heating controller and legacy machine interfaces over 4-20 mA, 0-10 V and digital I/O

For the analog output, the PIC24FJ128GA702’s integrated DAC feeds a precision op-amp/current-loop stage that generates the machine-side signal. A physical switch selects between 0–10 V voltage output and 4–20 mA current-loop output.

The analog input is likewise switchable and is measured using the PIC24FJ128GA702’s integrated ADC. In 0–10 V mode the signal passes through a voltage-divider network; in 4–20 mA mode a precision 250 Ω resistor converts the loop current into a measurable voltage. The input can be used by the host controller as an external setpoint, for example for target or limiter temperature.

Additional digital I/O provides machine-level functions such as an SSR output and digital control inputs.

The analog interfaces include overvoltage, reverse-polarity and ESD protection, filtering, current limiting and input protection. Precision 0.1% resistors provided sufficient accuracy for the application without requiring a separate calibration procedure.

PCB & Mechanical Integration

The complete module had to fit inside the existing controller housing without modifying the enclosure.

The final design uses a compact 4-layer PCB, connected to the main controller through a flexible ribbon cable that also supplies the module. The board had to remain easy to install and remove, while physical switches kept the current/voltage configuration accessible.

Firmware & Communication

I extended the existing proprietary UART protocol with new frames specifically for exchanging data between the heating controller and the analog module.

The PIC24 firmware handles communication, analog and digital I/O, and local monitoring of operating conditions.

A buzzer uses different alarm patterns for several conditions, including communication loss for more than five seconds, reaching the limiter temperature, and controller error states.

Verification

The central requirement was backward compatibility: from the customer’s perspective, machines using the retrofit should operate like they did with the discontinued controller.

Verification progressed from individual circuits to the complete system:

Simulation → oscilloscope and multimeter measurements → electronic-load testing → current-loop measurements → dedicated test rig → integration with real controllers and machines

The test rig used selectable known voltages and resistance values to exercise the different interface configurations and compare expected behavior with measured results.

Production Engineering

I also developed the tooling required to move the module from prototype to repeatable production.

This included a needle-contact programming adapter for production flashing, dedicated flashing software, and the required production documentation.

The module was then integrated into the company’s ERP structure so it could be combined with the corresponding heating controllers as a complete product.

Result

The retrofit module allowed the previous analog controller to be discontinued while continuing to support machines and customers dependent on its interfaces.

Six-stage development timeline from V1 takeover and PCB layout through prototype bring-up, firmware development, verification, production tooling and series production, ending with more than 1,000 units produced and 500 sold

Instead of maintaining two controller generations, the newer platform could serve both new applications and the existing installed base.

The design reached series production: more than 1,000 units have been produced and more than 500 sold.

The project covered considerably more than a PCB redesign: taking over an imperfect early design, developing it into production hardware, implementing its firmware and communication, verifying backward-compatible behavior, and creating the tools and documentation needed to manufacture it reliably.

Technologies

PIC24FJ128GA702 dsPIC33EP256GP504 Embedded C UART Integrated DAC/ADC Op-Amps 4–20 mA 0–10 V Digital I/O 4-Layer PCB Production Test