MODERN VINTAGE LAB / EXPERIMENT 002
Commodore SX-64 – Heartbeat Monitor
Measuring the human pulse with a portable computer from 1984.

STATUS: WORKING PROTOTYPE
01 / Introduction
Can a portable computer from 1984 measure and visualise the human pulse using modern electronic components?
This experiment combines an original Commodore SX-64 with a modern optical pulse sensor and an external analogue-to-digital converter. The computer records changes in the optical signal associated with the human heartbeat and presents them graphically on its original display.
The objective is to demonstrate how historical computers can still be used for experimental data acquisition and signal visualisation.
02 / Hardware
- Commodore SX-64 (1984)
- MOS Technology 6510 processor
- MOS 6526 CIA interface
- KY-039 optical pulse sensor
- PCF8591 analogue-to-digital converter (HW-011 module)
- 24-contact user port edge connector
- Connecting wires
03 / Optical Measurement Principle
The KY-039 sensor uses an infrared light-emitting diode and a light-sensitive detector to observe changes in light transmission through a fingertip.
With each heartbeat, changes in blood volume affect the amount of light reaching the detector. These variations produce an electrical signal that can be recorded and visualised.
This optical measurement technique is known as photoplethysmography (PPG).
Photoplethysmography – PPG
Heartbeat → Blood volume variation → Optical signal → Electrical signal → Digital measurement
Unlike an electrocardiogram (ECG), this experiment does not measure the electrical activity of the heart directly.
04 / Analogue-to-Digital Conversion
The Commodore SX-64 user port provides digital input and output lines. An external analogue-to-digital converter is therefore required for this experiment.
The PCF8591 converts the analogue output voltage of the pulse sensor into an 8-bit digital value.
| Parameter | Specification |
|---|---|
| Converter | PCF8591 |
| Module | HW-011 |
| Resolution | 8 bit |
| Digital values | 0–255 |
| Analogue input channels | 4 |
| Communication | I²C |
| External sensor input | AIN0 |
The resolution of 8 bits provides 256 possible digital measurement levels. These values represent the sensor voltage relative to the converter reference voltage.
05 / Sensor Connections
The KY-039 sensor provides three electrical connections: signal, positive supply voltage and ground.
| KY-039 | Connection | Function |
|---|---|---|
| S | PCF8591 AIN0 | Analogue signal |
| + | +5 V | Power supply |
| − | GND | Common ground |
The prototype uses the 5 V supply from the Commodore user port. The sensor, converter and computer share a common ground.
On the HW-011 module, any onboard sensor connected to the same analogue input must be disconnected when using an external sensor.
The complete user port pin assignment and module jumper configuration will be added after verification against the working hardware and software.
Disconnect the computer from its power supply before modifying the circuit. Verify all connections and the connector orientation before switching on.
06 / I²C Communication
Communication between the computer and the PCF8591 is implemented using two digital signal lines:
- SDA – Serial Data
- SCL – Serial Clock
The Commodore SX-64 does not provide a dedicated hardware I²C controller. Instead, communication is implemented in software by controlling the digital lines of the CIA interface.
This technique is commonly known as bit-banging. The software generates the required clock and data signals and receives the digital measurement values from the converter.
07 / Data Acquisition
- Place a fingertip between the optical components of the sensor.
- Record the analogue sensor signal.
- Convert the voltage into an 8-bit digital value.
- Transfer the measurement to the SX-64 via I²C.
- Process and visualise the measurement.
- Repeat the acquisition cycle.
08 / Software and Programming
The project combines Commodore BASIC with machine language routines. Assembly language provides direct access to the digital interface and supports more efficient communication with the analogue-to-digital converter.
Successive digital measurements are used to visualise variations in the sensor signal over time.
The exact sampling interval and timing characteristics will be documented after further verification of the software.
09 / Signal Visualisation
The graphical interface presents changes in the optical pulse signal on the original CRT display of the Commodore SX-64.
Instead of simply displaying numerical values, the computer visualises successive measurements as a waveform, making periodic signal variations easier to observe.
The display design combines the visual aesthetics of historical electronic measurement equipment with modern sensor technology.
10 / Results and Limitations
The working prototype demonstrates that the Commodore SX-64 can acquire and visualise analogue sensor information using an external digital interface.
The recorded optical signal is influenced by several factors:
- Finger position and movement
- Pressure applied to the sensor
- Ambient light
- Electrical noise
- Analogue-to-digital converter resolution
- Software sampling interval
IMPORTANT – EXPERIMENTAL DEVICE
This project is an educational electronics experiment. It is not a calibrated medical instrument and must not be used for medical diagnosis or health monitoring.
11 / Development and AI
This project combines practical electronics, original vintage computer hardware and AI-assisted software development.
The experimental concept, physical assembly, design decisions and practical hardware testing were carried out by Retro Area 51. Artificial intelligence assisted in the development and modification of the software.
The aim is to explore how modern development tools can support new applications for historical computer systems.
12 / Downloads
- BASIC source code
- 6510 assembly source code
- Executable Commodore program (.PRG)
- Hand-drawn wiring diagram
- Technical project documentation
DOWNLOADS: IN PREPARATION
13 / Future Development
- Improved signal filtering
- Automatic pulse peak detection
- Experimental BPM calculation
- Adjustable graphical measurement scale
- Recording and exporting measurement data
- Adaptation to the Commodore PET series
RETRO AREA 51 · MODERN VINTAGE LAB
Preserving the past. Engineering the future.