{"id":253,"date":"2021-05-21T11:51:32","date_gmt":"2021-05-21T11:51:32","guid":{"rendered":"https:\/\/vegaprocessors.in\/blog\/?p=253"},"modified":"2022-06-08T11:55:13","modified_gmt":"2022-06-08T11:55:13","slug":"getting-bpm-pulse-sensor-with-thejas-soc","status":"publish","type":"post","link":"https:\/\/vegaprocessors.in\/blog\/getting-bpm-pulse-sensor-with-thejas-soc\/","title":{"rendered":"Getting BPM: Pulse Sensor with ARIES v2 Board"},"content":{"rendered":"\n<p class=\"has-text-align-left\">This is all about how to interface<strong> Pulse Sensor<\/strong> with <strong><strong>ARIES v2 Board<\/strong><\/strong> to monitor pulse rate. Pulse Sensor is a well-designed plug-and-play<strong> heart-rate sensor<\/strong>. The sensor has two sides, on one side the LED is placed alongside an ambient light sensor and on the opposite side, there is a circuitry that is liable for the amplification and noise cancellation work. The LED on the front side of the sensor is placed over a vein in our physical body, onto a fingertip or earlobe, and plugs right into the ARIES v2 Board with the help of jumpers.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Pulse Sensor<\/strong><\/h2>\n\n\n\n<p>The working of the\u00a0<strong>Pulse\/Heartbeat<\/strong> sensor\u00a0is very simple. The LED on the front side of the sensor is placed over a vein in our human body. This can either be your fingertip or your ear tips. Now the LED emitted light will fall on the vein directly. The veins will have blood flow inside them only when the heart is pumping, so if we monitor change in the flow of blood we can monitor the heartbeats.\u00a0 <\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/Pulse-sensor-Pin-out.png\" alt=\"\" class=\"wp-image-316\" width=\"436\" height=\"394\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/Pulse-sensor-Pin-out.png 465w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/Pulse-sensor-Pin-out-300x272.png 300w\" sizes=\"auto, (max-width: 436px) 100vw, 436px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Circuit Diagram<\/strong><\/h2>\n\n\n\n<p>The\u00a0<strong>Pulse\/Heartbeat<\/strong> Sensor Module has three pins: VCC, Analog Out, and GND. Connect VCC and GND of the pulse sensor to +3.3V and GND respectively of ARIES v2 board. Then connect the Analog Out Pin of the Pulse\/Heartbeat sensor to the Analog pin<strong> A0 <\/strong>of the ARIES v2 Board.<\/p>\n\n\n\n<p>Now, for powering up the ARIES v2 board via USB port of a Laptop\/Desktop\/PC and burning the code into the ARIES v2 board, we have to use a micro USB type B to USB type A cable. The cable should be connected to <strong>UART0<\/strong> port of the ARIES v2 board, and the Laptop\/Desktop\/PC should be preinstalled with VEGA SDK and Toolchain.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"848\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/05\/pinmap_Ar_PULSE-SENSOR-1024x848.jpg\" alt=\"\" class=\"wp-image-1233\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/05\/pinmap_Ar_PULSE-SENSOR-1024x848.jpg 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/05\/pinmap_Ar_PULSE-SENSOR-300x249.jpg 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/05\/pinmap_Ar_PULSE-SENSOR-768x636.jpg 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/05\/pinmap_Ar_PULSE-SENSOR.jpg 1377w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><strong>Pulse Sensor<\/strong><\/td><td><strong>ARIES v2 Board<\/strong><\/td><\/tr><tr><td>VCC<\/td><td>+3.3V<\/td><\/tr><tr><td>GND<\/td><td>GND<\/td><\/tr><tr><td>Signal<\/td><td>A0 <\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Procedure<\/strong><\/h2>\n\n\n\n<p>After setting up the toolchain and SDK path environments, build the example program for <strong>Pulse Sensor<\/strong> by :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd vega-sdk\/examples\/adc\/pulse_sensor_demo<\/code><\/pre>\n\n\n\n<p><strong>make clean<\/strong> command to clean the executable :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>make clean<\/code><\/pre>\n\n\n\n<p>then use the <strong>make <\/strong>command to build it.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>make<\/code><\/pre>\n\n\n\n<p>Now, we can transfer the built program to the board, before transfer please ensure that you have connected the UART0 connector of the board to the PC.<\/p>\n\n\n\n<p>Open a new terminal and execute the following command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo minicom aries<\/code><\/pre>\n\n\n\n<p>Now you can see the minicom terminal opened and the board UART terminal is ready.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"820\" height=\"689\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/minicom-7.png\" alt=\"\" class=\"wp-image-605\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/minicom-7.png 820w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/minicom-7-300x252.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/minicom-7-768x645.png 768w\" sizes=\"auto, (max-width: 820px) 100vw, 820px\" \/><\/figure>\n\n\n\n<p>Use CTRL+A S to enter the file sending menu and select xmodem by pressing Enter.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"615\" height=\"143\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/Screenshot-from-2021-04-30-16-14-03.png\" alt=\"\" class=\"wp-image-311\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/Screenshot-from-2021-04-30-16-14-03.png 615w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/Screenshot-from-2021-04-30-16-14-03-300x70.png 300w\" sizes=\"auto, (max-width: 615px) 100vw, 615px\" \/><\/figure>\n\n\n\n<p>In the next window, with the <strong>Space bar<\/strong> select the <strong>pulse_sensor_demo.bin<\/strong> file to be transferred, by pressing <strong>Enter<\/strong>, the transfer process starts.<\/p>\n\n\n\n<p>Wait until the process is completed. The screen should display how much data has been transferred.<\/p>\n\n\n\n<p>After completing the transfer the Program will start to execute.<\/p>\n\n\n\n<p>Place your finger on the LED side of the sensor. Your pulse rate will be displayed in the minicom UART terminal:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/pulse_sensor-1.png\" alt=\"\" class=\"wp-image-347\" width=\"846\" height=\"602\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/pulse_sensor-1.png 966w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/pulse_sensor-1-300x214.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/pulse_sensor-1-768x547.png 768w\" sizes=\"auto, (max-width: 846px) 100vw, 846px\" \/><\/figure>\n\n\n\n<p>for additional information :<\/p>\n\n\n\n<p><a href=\"https:\/\/www.generationrobots.com\/media\/DetecteurDePoulsAmplifie\/PulseSensorAmpedGettingStartedGuide.pdf\">https:\/\/www.generationrobots.com\/media\/DetecteurDePoulsAmplifie\/PulseSensorAmpedGettingStartedGuide.pdf<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is all about how to interface Pulse Sensor with ARIES v2 Board to monitor pulse rate. Pulse Sensor is a well-designed plug-and-play heart-rate sensor. The sensor has two sides, on one side the LED is placed alongside an ambient light sensor and on the opposite side, there is a circuitry that is liable for [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,14,1],"tags":[69,75,47,7,46,26,31,24],"class_list":["post-253","post","type-post","status-publish","format-standard","hentry","category-getting-started","category-tutorials","category-uncategorized","tag-analog-out","tag-aries-v2-board","tag-bpm","tag-cdac","tag-pulse-sensor","tag-thejas-64","tag-thejas32","tag-vegaprocessor"],"_links":{"self":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/253","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/comments?post=253"}],"version-history":[{"count":29,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/253\/revisions"}],"predecessor-version":[{"id":1389,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/253\/revisions\/1389"}],"wp:attachment":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media?parent=253"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/categories?post=253"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/tags?post=253"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}