In this project, you'll build a live ECG monitoring system using NPG Lite Cardio and Neuro PlayGround Lite. It's a web-based ECG monitor that lets you visualize your heart's electrical activity and measure your heart rate in real timeβwithout installing any software.
Simply connect your NPG Lite over Bluetooth to view a live ECG waveform along with your heart rate. It works on Windows, Mac, Linux, Android, and basically any device with a Chromium-based browser. If you're using any iOS device, simply use a BLE-enabled browser such as Bluefy to connect with NPG Lite Cardio.
Before we jump into the setup, let's quickly understand what an ECG is.
ECG stands for Electrocardiogram. It records the electrical activity of your heart. The waveform you'll see has three main parts: the P wave, which represents atrial contraction; the QRS complex, which is the large spike produced when the ventricles contract; and the T wave, which represents the heart relaxing before the next beat.
This pattern repeats with every heartbeat, and observing these waveforms helps us better understand how the heart is functioning.
By the end of this project, you'll know how to connect your Neuro PlayGround Lite over Bluetooth, place the electrodes correctly, and start monitoring your ECG and heart rate directly from your browser in just a few minutes.
What Is an ECG?ECG stands for Electrocardiogram.
It records the electrical activity of your heart. Every heartbeat creates an electrical signal, and this signal appears as a waveform on the screen.
A normal ECG contains:
- P Wave β Upper chambers of the heart contract.
- QRS Complex β The large spike showing the main heartbeat.
- T Wave β The heart relaxes before the next beat.
Watching these waves helps you understand how your heart works.
Prepare Your Skin:Before applying the electrodes, it's important to prepare your skin properly. Good skin preparation improves electrode contact and helps produce a much cleaner ECG signal.
You can choose either of two electrode placement methods:
- Chest placement, which generally provides cleaner ECG recordings.
- Wrist placement, which is more convenient for quick demonstrations.
Start by applying a small amount of Nuprep Skin Preparation Gel to the areas where the electrodes will be placed. Gently rub the skin to remove dead skin cells and excess oil. Then, wipe the area clean using a wet wipe or an alcohol swab.
This simple preparation significantly improves electrode contact and helps you achieve a cleaner, more stable ECG signal.
Place the Electrodes:Now, connect the snap cables to the gel electrodes and peel off the plastic backing.
Option 1 β Chest ECG PlacementFor a cleaner ECG signal, use the chest placement:
- Place one electrode on the left side of your chest, just below the collarbone.
- Place the second electrode slightly to its right, leaving a small gap between them.
- Place the third electrode on the right side of your chest.
For a quick and convenient setup:
- Place one electrode on your left hand.
- Place one electrode on your right hand.
- Place the third electrode on the back of your palm.
- Connect the negative (β) cable (from the left chest electrode or left hand) to A0N.
- Connect the positive (+) cable (from the middle chest electrode or right hand) to A0P.
- Connect the reference cable (from the right chest electrode or the back of your palm) to REF.
The first step is flashing the correct firmware onto your NPG Lite.
We'll be using the NPG Lite BLE firmware, and the easiest way to install it is with NPG Lite Flasher Webβno Arduino IDE required.
- Turn on your NPG Lite using the power switch and make sure the battery is connected correctly.
- Connect your NPG Lite to your computer using a USB Type-C cable.
- Open NPG Lite Flasher Web In your browser.
- Click Connect and select the USB device named USB JTAG.
- Select the NPG Lite BLE firmware and click Flash.
- Wait a few seconds while the firmware is uploaded.
Once flashing is complete, disconnect the USB cable.
Your NPG Lite is now ready to work completely wirelessly. Just make sure the battery is connected and sufficiently charged before using NPG Lite Cardio.
Connect to NPG Lite Cardio:
Now it's time to connect your NPG Lite to the ECG monitor.
Before connecting, make sure your NPG Lite is not connected to a charger, and try to sit at least one meter away from AC-powered appliances for the cleanest possible ECG signal.
Enable Bluetooth on your phone or laptop.
Important: Do not pair your NPG Lite through your operating system's Bluetooth settings. Always connect directly from within the browser.
Now open NPG Lite Cardioin your browser.
- Click Connect.
- Select your NPG Lite from the list of available Bluetooth devices.
- Click Pair.
Within a few seconds, your live ECG waveform will begin streaming in real time, along with your heart rate.
Explore the Interface:Once connected, you'll see:
- Live ECG waveform
- Heart Rate (BPM)
- Heartbeat animation
The app automatically detects each heartbeat using the Pan-Tompkins algorithm, making the heart rate measurement accurate even when there is a little noise.
Learn the Controls:
The app includes several useful controls.
Information: Shows details about the ECG display and filters.
Theme: Switch between Light Mode and Dark Mode.
Fullscreen: Toggle full screen mode.
Disconnect: Safely disconnects your NPG Lite.
At the bottom of the screen you'll find:
- Connect
- Record
- Peaks (Show or hide heartbeat markers)
- DC Filter (Removes slow baseline movement)
If your ECG waveform is inverted, don't worry.
Simply swap the positive (+) and negative (β) electrodes.
The waveform will immediately appear in the correct orientation.
Record Your ECG:Click Record to start recording.
A timer shows how long you've been recording.
Recordings must be at least 12 seconds long.
When you stop recording, it is automatically saved in your browser.
View Your Recordings:Open the Recordings section to:
- Replay old recordings
- Scroll through the ECG
- Use the minimap to jump to different parts
- Rename recordings
- Download them as CSV files
- Delete recordings you no longer need



Comments