{"id":2318,"date":"2022-09-12T14:14:43","date_gmt":"2022-09-12T12:14:43","guid":{"rendered":"https:\/\/www.acconeer.com\/?post_type=innovation_lab&#038;p=2318"},"modified":"2026-04-19T21:27:43","modified_gmt":"2026-04-19T19:27:43","slug":"algorithm-for-gesture-control","status":"publish","type":"innovation_lab","link":"https:\/\/acconeer.com\/sv\/innovation_lab\/algorithm-for-gesture-control\/","title":{"rendered":"ALGORITHM FOR GESTURE CONTROL"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">Algorithm for Gesture Control<br>using the A121 radar sensor<\/h1>\n\n\n\n<div class=\"wp-block-columns are-vertically-aligned-center is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:50%\">\n<p>Acconeer\u2019s A121 sensor is very good at measuring the distance to and velocity of objects. In this example, the sensor is used to recognize four types of gestures made with a finger or a hand: tap in, tap out, double tap in and wiggle. You can connect functions to these four movements and implement gesture control in your devices, such as headphones and speakers. On this page you will find everything you need to set it up.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:50%\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"746\" height=\"420\" src=\"https:\/\/acconeer.com\/wp-content\/uploads\/2022\/08\/tap_in.png\" alt=\"\" class=\"wp-image-2326\" srcset=\"\/wp-content\/uploads\/2022\/08\/tap_in.png 746w, \/wp-content\/uploads\/2022\/08\/tap_in-512x288.png 512w\" sizes=\"auto, (max-width: 746px) 100vw, 746px\" \/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Hardware<\/h2>\n\n\n\n<p>One XE121 Evaluation Kit and one XC120 Connector Board are necessary for this implementation.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Acconeer\u2019s XE121 Evaluation Kit can be purchased from <a href=\"https:\/\/www.digikey.si\/en\/products\/detail\/acconeer-ab\/XE121\/16582348\" target=\"_blank\" rel=\"noopener\">Digi-Key<\/a> or <a href=\"https:\/\/eu.mouser.com\/ProductDetail\/Acconeer\/XE121?qs=tlsG%2FOw5FFg1LYOuSFPi7A%3D%3D\" target=\"_blank\" rel=\"noopener\">MOUSER<\/a><\/li>\n\n\n\n<li>Acconeer\u2019s XC120 Connector Board cand be purchased from <a href=\"https:\/\/www.digikey.si\/en\/products\/detail\/acconeer-ab\/XC120\/16582340\" target=\"_blank\" rel=\"noopener\">Digi-Key<\/a> or<a href=\"https:\/\/eu.mouser.com\/ProductDetail\/Acconeer\/XC120?qs=tlsG%2FOw5FFjHG879wR7jjg%3D%3D\" target=\"_blank\" rel=\"noopener\"> MOUSER<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Software<\/h2>\n\n\n\n<p>This tutorial consists of a first part where a gesture classification model is defined and trained, followed by a second part where the model is deployed to classify gestures in real time. The former is implemented in a Jupyter notebook and the second part as a python script. If you have not already the necessary setup for executing Python scripts and Jupyter notebooks, you can follow these steps to run them in VS Code:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.python.org\/downloads\/\" target=\"_blank\" rel=\"noopener\">Download and install Python<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/code.visualstudio.com\/docs\/python\/python-tutorial\" target=\"_blank\" rel=\"noopener\">Install VS Code and set it up for python by following the tutorial<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/code.visualstudio.com\/docs\/datascience\/jupyter-notebooks\" target=\"_blank\" rel=\"noopener\">Follow the guide for how to run Jupyter notebooks in VSC<\/a><\/li>\n<\/ul>\n\n\n\n<p>All the required scripts and pre-recorded data can be downloaded from Acconeer\u2019s Innovation Lab GitHub.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/github.com\/acconeer\/acconeer-a121-gesture-control\" target=\"_blank\" rel=\"noopener\">Acconeer\u2019s Innovation Lab GitHub<\/a><\/li>\n<\/ul>\n\n\n\n<p>The scripts take advantage of the rich libraries implemented as part of Acconeer\u2019s Exploration Tool. Follow the instructions found here to learn more about the tool and information on how to install it on your computer:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/docs.acconeer.com\/en\/latest\/exploration_tool\/index.html\" target=\"_blank\" rel=\"noopener\">Acconeer\u2019s Exploration Tool<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">GESTURE CONTROL<\/h2>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Algorithm for Gesture Control\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/boctNZBNWBI?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Example use case<\/h2>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Gesture-controlled in-ear headphones concept using radar and AI\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/ZTyJz3yCjiM?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Try it on your own and get in touch<\/h2>\n\n\n\n<p>If you try this, or work on something else, we\u2019d love to hear about your project! Please get in touch with us on <a href=\"mailto:innovation@acconeer.com\">innovation@acconeer.com<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A121 sensor is used to recognize four types of gestures. Get details on hardware setup and sensor configuration to implement gesture control algorithm.<\/p>\n","protected":false},"featured_media":2664,"template":"","class_list":["post-2318","innovation_lab","type-innovation_lab","status-publish","has-post-thumbnail","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>ALGORITHM FOR GESTURE CONTROL - Acconeer<\/title>\n<meta name=\"description\" content=\"Acconeer\u2019s A121 sensor is used to recognize four types of gestures made with a finger or a hand: tap in, tap out, double tap in and wiggle.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/acconeer.com\/innovation_lab\/algorithm-for-gesture-control\/\" \/>\n<meta property=\"og:locale\" content=\"sv_SE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ALGORITHM FOR GESTURE CONTROL - Acconeer\" \/>\n<meta property=\"og:description\" content=\"Acconeer\u2019s A121 sensor is used to recognize four types of gestures made with a finger or a hand: tap in, tap out, double tap in and wiggle.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/acconeer.com\/innovation_lab\/algorithm-for-gesture-control\/\" \/>\n<meta property=\"og:site_name\" content=\"Acconeer\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-19T19:27:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/acconeer.com\/wp-content\/uploads\/2022\/09\/thumbnail-gesture-control2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"500\" \/>\n\t<meta property=\"og:image:height\" content=\"375\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Ber\u00e4knad l\u00e4stid\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minuter\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/acconeer.com\\\/innovation_lab\\\/algorithm-for-gesture-control\\\/\",\"url\":\"https:\\\/\\\/acconeer.com\\\/innovation_lab\\\/algorithm-for-gesture-control\\\/\",\"name\":\"ALGORITHM FOR GESTURE CONTROL - Acconeer\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/acconeer.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/acconeer.com\\\/innovation_lab\\\/algorithm-for-gesture-control\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/acconeer.com\\\/innovation_lab\\\/algorithm-for-gesture-control\\\/#primaryimage\"},\"thumbnailUrl\":\"\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/thumbnail-gesture-control2.png\",\"datePublished\":\"2022-09-12T12:14:43+00:00\",\"dateModified\":\"2026-04-19T19:27:43+00:00\",\"description\":\"Acconeer\u2019s A121 sensor is used to recognize four types of gestures made with a finger or a hand: tap in, tap out, double tap in and wiggle.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/acconeer.com\\\/innovation_lab\\\/algorithm-for-gesture-control\\\/#breadcrumb\"},\"inLanguage\":\"sv-SE\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/acconeer.com\\\/innovation_lab\\\/algorithm-for-gesture-control\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"sv-SE\",\"@id\":\"https:\\\/\\\/acconeer.com\\\/innovation_lab\\\/algorithm-for-gesture-control\\\/#primaryimage\",\"url\":\"\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/thumbnail-gesture-control2.png\",\"contentUrl\":\"\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/thumbnail-gesture-control2.png\",\"width\":500,\"height\":375,\"caption\":\"gesture control\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/acconeer.com\\\/innovation_lab\\\/algorithm-for-gesture-control\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/acconeer.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Innovation labs\",\"item\":\"https:\\\/\\\/acconeer.com\\\/innovation_lab\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"ALGORITHM FOR GESTURE CONTROL\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/acconeer.com\\\/#website\",\"url\":\"https:\\\/\\\/acconeer.com\\\/\",\"name\":\"Acconeer\",\"description\":\"EXPLORE THE NEXT SENSE\",\"publisher\":{\"@id\":\"https:\\\/\\\/acconeer.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/acconeer.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"sv-SE\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/acconeer.com\\\/#organization\",\"name\":\"Acconeer\",\"url\":\"https:\\\/\\\/acconeer.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"sv-SE\",\"@id\":\"https:\\\/\\\/acconeer.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/New-Logo-2.png\",\"contentUrl\":\"\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/New-Logo-2.png\",\"width\":2048,\"height\":767,\"caption\":\"Acconeer\"},\"image\":{\"@id\":\"https:\\\/\\\/acconeer.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ALGORITHM FOR GESTURE CONTROL - Acconeer","description":"Acconeer\u2019s A121 sensor is used to recognize four types of gestures made with a finger or a hand: tap in, tap out, double tap in and wiggle.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/acconeer.com\/innovation_lab\/algorithm-for-gesture-control\/","og_locale":"sv_SE","og_type":"article","og_title":"ALGORITHM FOR GESTURE CONTROL - Acconeer","og_description":"Acconeer\u2019s A121 sensor is used to recognize four types of gestures made with a finger or a hand: tap in, tap out, double tap in and wiggle.","og_url":"https:\/\/acconeer.com\/innovation_lab\/algorithm-for-gesture-control\/","og_site_name":"Acconeer","article_modified_time":"2026-04-19T19:27:43+00:00","og_image":[{"width":500,"height":375,"url":"https:\/\/acconeer.com\/wp-content\/uploads\/2022\/09\/thumbnail-gesture-control2.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Ber\u00e4knad l\u00e4stid":"2 minuter"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/acconeer.com\/innovation_lab\/algorithm-for-gesture-control\/","url":"https:\/\/acconeer.com\/innovation_lab\/algorithm-for-gesture-control\/","name":"ALGORITHM FOR GESTURE CONTROL - Acconeer","isPartOf":{"@id":"https:\/\/acconeer.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/acconeer.com\/innovation_lab\/algorithm-for-gesture-control\/#primaryimage"},"image":{"@id":"https:\/\/acconeer.com\/innovation_lab\/algorithm-for-gesture-control\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2022\/09\/thumbnail-gesture-control2.png","datePublished":"2022-09-12T12:14:43+00:00","dateModified":"2026-04-19T19:27:43+00:00","description":"Acconeer\u2019s A121 sensor is used to recognize four types of gestures made with a finger or a hand: tap in, tap out, double tap in and wiggle.","breadcrumb":{"@id":"https:\/\/acconeer.com\/innovation_lab\/algorithm-for-gesture-control\/#breadcrumb"},"inLanguage":"sv-SE","potentialAction":[{"@type":"ReadAction","target":["https:\/\/acconeer.com\/innovation_lab\/algorithm-for-gesture-control\/"]}]},{"@type":"ImageObject","inLanguage":"sv-SE","@id":"https:\/\/acconeer.com\/innovation_lab\/algorithm-for-gesture-control\/#primaryimage","url":"\/wp-content\/uploads\/2022\/09\/thumbnail-gesture-control2.png","contentUrl":"\/wp-content\/uploads\/2022\/09\/thumbnail-gesture-control2.png","width":500,"height":375,"caption":"gesture control"},{"@type":"BreadcrumbList","@id":"https:\/\/acconeer.com\/innovation_lab\/algorithm-for-gesture-control\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/acconeer.com\/"},{"@type":"ListItem","position":2,"name":"Innovation labs","item":"https:\/\/acconeer.com\/innovation_lab\/"},{"@type":"ListItem","position":3,"name":"ALGORITHM FOR GESTURE CONTROL"}]},{"@type":"WebSite","@id":"https:\/\/acconeer.com\/#website","url":"https:\/\/acconeer.com\/","name":"Acconeer","description":"EXPLORE THE NEXT SENSE","publisher":{"@id":"https:\/\/acconeer.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/acconeer.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"sv-SE"},{"@type":"Organization","@id":"https:\/\/acconeer.com\/#organization","name":"Acconeer","url":"https:\/\/acconeer.com\/","logo":{"@type":"ImageObject","inLanguage":"sv-SE","@id":"https:\/\/acconeer.com\/#\/schema\/logo\/image\/","url":"\/wp-content\/uploads\/2026\/05\/New-Logo-2.png","contentUrl":"\/wp-content\/uploads\/2026\/05\/New-Logo-2.png","width":2048,"height":767,"caption":"Acconeer"},"image":{"@id":"https:\/\/acconeer.com\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/acconeer.com\/sv\/wp-json\/wp\/v2\/innovation_lab\/2318","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/acconeer.com\/sv\/wp-json\/wp\/v2\/innovation_lab"}],"about":[{"href":"https:\/\/acconeer.com\/sv\/wp-json\/wp\/v2\/types\/innovation_lab"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/acconeer.com\/sv\/wp-json\/wp\/v2\/media\/2664"}],"wp:attachment":[{"href":"https:\/\/acconeer.com\/sv\/wp-json\/wp\/v2\/media?parent=2318"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}