Sensor de pulso cardíaco
Introduction to Heart Rate Monitoring Application
Overview of the Project
- This tutorial focuses on creating an interactive application using the SEN 11574 sensor to monitor heart rate. The project will also utilize wireless communication to send heart rate data to a smartphone.
Required Materials
- To complete this tutorial, gather the following materials:
- Arduino Mega
- Heart rate sensor (SEN 11574)
- Bluetooth module (HC-05)
- Connection booster for wiring
Sensor Functionality
- The heart rate sensor combines an optical pulse sensor with noise cancellation circuitry, allowing for reliable heart rate readings. Connection wires are approximately 20 cm long and feature male terminals, eliminating the need for soldering. Power supply requirements range from 3.3V to 5V with a current consumption of about 4000 microamperes.
Programming and Configuration
Arduino Programming
- The program uploaded to the Arduino Mega reads analog values from the heart rate sensor and displays them using a serial plotter. When a strong heartbeat contraction is detected, the Arduino activates a buzzer briefly as an indication of pulse detection.
Bluetooth Module Setup
- The HC-05 Bluetooth module is configured to transmit heart rate information wirelessly. Communication settings include:
- Serial port speed set at 9600 baud.
- Bluetooth communication speed set at 57600 baud.
The program checks if the signal corresponds to a heartbeat by adjusting a variable threshold value (set at 520). If met, it triggers the buzzer based on heartbeat frequency.
Connecting and Testing
Device Pairing and Data Transmission
- Parameters such as device name, pairing password, communication speed, and role (configured as slave) are pre-set in the HC-05 module for effective operation.
Data transmission occurs through Serial1 print commands sent from Arduino Mega to the Bluetooth module, which then relays information to another Bluetooth-enabled device like an Android smartphone.
Monitoring Heart Rate on Smartphone
- After compiling and uploading the program onto Arduino Mega:
- Place the heart rate sensor on your finger.
- Open Serial Plotter in Arduino IDE to visualize heart rate signals.
To verify data accuracy transmitted via HC-05:
- Use "Bluetooth Electronic" app on your smartphone.
- Create a new panel, select graphs, adjust axis scales accordingly.
- Pair with HC-05 module for real-time monitoring of heartbeat frequency displayed in-app.
Conclusion and Resources
Project Accessibility
- The SEN11574 pulse sensor provides an easy method for monitoring heart rates effectively in various applications requiring cardiac frequency analysis.