{"id":2354,"date":"2023-07-27T09:08:17","date_gmt":"2023-07-27T09:08:17","guid":{"rendered":"https:\/\/vegaprocessors.in\/blog\/?p=2354"},"modified":"2023-09-18T09:59:06","modified_gmt":"2023-09-18T09:59:06","slug":"interfacing-digital-shake-sensor-with-aries-v2-0","status":"publish","type":"post","link":"https:\/\/vegaprocessors.in\/blog\/interfacing-digital-shake-sensor-with-aries-v2-0\/","title":{"rendered":"Interfacing Digital Shake sensor with VEGA ARIES boards"},"content":{"rendered":"\n<p>The digital shake sensor is used to detect hand shaking which is only sensitive to unidirectional hand movements. The spring-type vibration switch is used to output a low-level pulse when the user shakes once in the specified direction and the on-board indicator flashes at the same time. Digital shake sensors can be used in applications where we need to switch on lights by just shaking your hand or shaking a Light Stick. Here we will be using Digital shake sensor v1.0 by DFROBOT.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"target_3\">Specifications<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Input Voltage (VCC): 3.3V~5.0V<\/li>\n\n\n\n<li>Switch Life Span: Over 200,000 times<\/li>\n\n\n\n<li>Interface: Gravity 3P Digital<\/li>\n\n\n\n<li>Unidirection sensitive<\/li>\n\n\n\n<li>Strong anti-shock interference<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Overview<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/shakesensor.png\" alt=\"\" class=\"wp-image-2355\" style=\"width:199px;height:146px\" width=\"199\" height=\"146\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/shakesensor.png 543w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/shakesensor-300x220.png 300w\" sizes=\"auto, (max-width: 199px) 100vw, 199px\" \/><\/figure>\n\n\n\n<p>The user need to &nbsp;hold the module just like the logo on the module, and shake it in the direction of the arrow indicated on-board (from +Y to Y-). This will generate an effective low-level interrupt pulse on the \u201cD\u201d pin and a bright flash on the indicator will ON. Shakes or vibrations in other directions like the X or Z do not produce an effective interrupt pulse.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><strong>Label<\/strong><\/td><td><strong>Name<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td>+<\/td><td>VCC<\/td><td>Power VCC\uff083.3~5.5V\uff09<\/td><\/tr><tr><td>&#8211;<\/td><td>GND<\/td><td>Power GND<\/td><\/tr><tr><td>D<\/td><td>Digital<\/td><td>Digital output (high-level when stationary, low-level pulse when shaken)<\/td><\/tr><tr><td>PWR<\/td><td>Power<\/td><td>Power indicator (red), turned on when power up<\/td><\/tr><tr><td>ON<\/td><td>ON<\/td><td>Shake triggered indicator (blue)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Components Required<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>ARIES v2 Microcontroller<\/li>\n\n\n\n<li>Digital shake sensor<\/li>\n\n\n\n<li>Jumper wires<\/li>\n\n\n\n<li>Resistor -> 10 KOhm<\/li>\n<\/ul>\n\n\n\n<p><strong>Not<\/strong><strong>e:<\/strong>&nbsp;All of the following boards can be used for this project<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/vegaprocessors.in\/devboards\/ariesv2.php\">ARIES v2.0<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/vegaprocessors.in\/devboards\/ariesv3.php\">ARIES v3.0<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/vegaprocessors.in\/devboards\/ariesmicro.php\">ARIES Micro<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/vegaprocessors.in\/devboards\/ariesdot.php\">ARIES DOT<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/vegaprocessors.in\/devboards\/ariesiot.php\">ARIES IoT<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Circuit Diagram<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"623\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/shakefig-1-1024x623.png\" alt=\"\" class=\"wp-image-2357\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/shakefig-1-1024x623.png 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/shakefig-1-300x182.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/shakefig-1-768x467.png 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/shakefig-1.png 1268w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\"><em><strong>Digital shake senor Connection Diagram<\/strong><\/em><\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><strong>Digital Shake Sensor<\/strong><\/td><td><strong>ARIES V2 board<\/strong><\/td><\/tr><tr><td>+<\/td><td>3.3V<\/td><\/tr><tr><td>&#8211;<\/td><td>GND<\/td><\/tr><tr><td>D<\/td><td>GPIO-0<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\"><em><strong>Connection pins of Digital shake sensor Module &amp; ARIES v2.0 Board<\/strong><\/em><\/figcaption><\/figure>\n\n\n\n<p>Now, for powering up the ARIES v2 board via the 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 UART-0 port of the ARIES v2 board, and the Laptop\/Desktop\/PC should be preinstalled with Arduino IDE and VEGA ARIES boards of latest version.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Procedure<\/h2>\n\n\n\n<p>Open Arduino IDE<\/p>\n\n\n\n<p>Go to Tools -&gt; Board -&gt; VEGA Processor ARIES Boards -&gt; Select ARIES v2<\/p>\n\n\n\n<p>Go to Tools -&gt; Programmer -&gt; Select VEGA XMODEM<\/p>\n\n\n\n<p>Connect the ARIES v2 board to PC<\/p>\n\n\n\n<p>Go to Tools -&gt; Port -&gt; Select the appropriate port<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/toolMenu.png\" alt=\"ARIES board selection from Tool Menu\" class=\"wp-image-2289\" style=\"width:446px;height:288px\" width=\"446\" height=\"288\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/toolMenu.png 976w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/toolMenu-300x195.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/toolMenu-768x498.png 768w\" sizes=\"auto, (max-width: 446px) 100vw, 446px\" \/><\/figure>\n\n\n\n<p>Open File -&gt; Examples -&gt; Examples for ARIES v2 -&gt; GPIO -&gt; Open&nbsp;<strong>digitalShakeSensor<\/strong>&nbsp;example<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/shakeex.png\" alt=\"\" class=\"wp-image-2359\" style=\"width:388px;height:307px\" width=\"388\" height=\"307\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/shakeex.png 598w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/shakeex-300x237.png 300w\" sizes=\"auto, (max-width: 388px) 100vw, 388px\" \/><\/figure>\n\n\n\n<p>After opening the example code Compile and Upload the code&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Output<\/h2>\n\n\n\n<p>Once you\u2019ve completed the code, upload it to your ARIES v2.0 board using the Arduino IDE.&nbsp;Wait until the program is uploaded. After completing the uploading the program will start to execute. In the direction indicated by the arrow on-board, every time the module is shaken, the built-in LED on ARIES Board will toggle.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/shakeOp.png\" alt=\"\" class=\"wp-image-2361\" style=\"width:599px;height:430px\" width=\"599\" height=\"430\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/shakeOp.png 1000w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/shakeOp-300x215.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/shakeOp-768x551.png 768w\" sizes=\"auto, (max-width: 599px) 100vw, 599px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Demonstration<\/h2>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"656\" style=\"aspect-ratio: 368 \/ 656;\" width=\"368\" controls src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/shakedemo.mp4\"><\/video><figcaption class=\"wp-element-caption\"><em><strong>Shake sensor output demo<\/strong><\/em><\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>The digital shake sensor is used to detect hand shaking which is only sensitive to unidirectional hand movements. The spring-type vibration switch is used to output a low-level pulse when the user shakes once in the specified direction and the on-board indicator flashes at the same time. Digital shake sensors can be used in applications [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":2361,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[75,76,68,77],"class_list":["post-2354","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-aries-v2-board","tag-c-dac","tag-gpio","tag-thejas-32"],"_links":{"self":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/2354","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\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/comments?post=2354"}],"version-history":[{"count":5,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/2354\/revisions"}],"predecessor-version":[{"id":3306,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/2354\/revisions\/3306"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media\/2361"}],"wp:attachment":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media?parent=2354"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/categories?post=2354"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/tags?post=2354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}