Pilot heart rate measurement, Morse code vibration integration module work
Use Ubuntu 18.04 ROS1 Melodic & 20.04 ROS1 Noetic
====== If you want to use rosserial with Arduino Due board ======
Modify ArduinoHardware.h code in ros_lib
- Line 75 iostream = &Serial1; -> iostream = &Serial
- Line 73 #if defined(USBCON) and !(defined(USE_USBCON)) -> #if defined(USBCON) and !(defined(USE_USBCON)) and !(defined(SAM3XA))
- Add #define USE_USBCON before <ros.h> of Arduino code
- Change baud 115200 -> 57600
- Run rosserial after connecting with Programming Port
===============================================
Use three Arduino Boards (I2C, zigbee)
- Zigbee_transmitter, Master: Arduino Due(Input: Heart Rate)
- Slave: Arduino Micro(Output: Vibration, Voice)
- Zigbee_receiver: Arduino Uno(changeable)
Upload Code:
- Arduino Due: master_heartrate_zigbee.ino
- Arduino Micro: slave_vibration_voice.ino
- Arduino Uno: zigbee_desktop.ino
- Desktop: heartrate_msg.py
*To proceed assuming your desired heart rate state, edit the file "test_status.ino" instead of "master_heartrate_zigbee.ino" and upload it to your desired state.
The heart rate sensor location is as follows:
The measured heart rate is displayed as follows according to the provided Python file.
- No signal and normal heart rate
- Warning heart rate
- Danger heart rate