This simple project gets a heart rate equivalent from a pot meter and shows the range one of 3 LED which is also shown by pointer controlled by a servo motor and on mobile phone Apps.
This project combines two basic Arduino example projects that use Intel Curie BLE capability and Servo motor. Its use DFRobot Gravity: Starter Kit for Genuino / Arduino 101 that simplify connecting the Pot meter, the 3 LEDs and the Servo Motor that fits into a re-cycle name card box for the user interface.
Wiring is easy with the Gravity: IO Expansion Shield as they are colour coded for digital and analog cable. Use the green digital cable for the LEDs and Micro Servo. Use the blue for the Analog Rotation sensor as shown diagram below. The power supply for the system can be powered from Genuino 101 DC power jack.
SOFTWARE
The software are merged from two Arduino projects and modified accordingly.
Two libraries are used namely CurieBLE and Servo. Initialization and setup is the first part for :
1. BLE
2. Analog Port A0 for Rotary Sensor
3. Digital Output port (11, 12 and 13) for 3 LEDs
4. Servo - Use Port D9 as PWM outout
The main loop simply
1. Check and update BLE connection and data
2. Read the Rotary sensor,
3. Position the Servo
4. Switch on correct one of 3 LEDs.
The CurieBLE module allows simple connection to Android Phone running on simple Apps like “nRF Toolsbox” available from Goggle “PlayStore” that allow the Heart Rate be shown thru Blue Tooth.
Below screen shot is example of the nRF toolbox on “HeartRate”
MECHANICAL
All the user interface can fit into re-cycle Name card holder Box as shown below.
FUTURE EXPANSION
The project can easily be adapted to use a real heart rate sensor. Also, the sensor can be change to other sensors such as proximity sensors or light sensors.