{"id":512,"date":"2022-07-25T09:52:56","date_gmt":"2022-07-25T09:52:56","guid":{"rendered":"https:\/\/www.niraltek.com\/?p=512"},"modified":"2022-11-08T09:56:31","modified_gmt":"2022-11-08T09:56:31","slug":"spinning-of-dc-motor-with-esp32-and-sound-sensor","status":"publish","type":"post","link":"https:\/\/www.niraltek.com\/blog\/spinning-of-dc-motor-with-esp32-and-sound-sensor\/","title":{"rendered":"Spinning of DC Motor with ESP32 and Sound Sensor"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"512\" class=\"elementor elementor-512\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-76432d7e elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"76432d7e\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6df4c3b2\" data-id=\"6df4c3b2\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-7b640517 elementor-widget elementor-widget-text-editor\" data-id=\"7b640517\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.8.0 - 30-10-2022 *\/\n.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:#818a91;color:#fff}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap{color:#818a91;border:3px solid;background-color:transparent}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap{margin-top:8px}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap-letter{width:1em;height:1em}.elementor-widget-text-editor .elementor-drop-cap{float:left;text-align:center;line-height:1;font-size:50px}.elementor-widget-text-editor .elementor-drop-cap-letter{display:inline-block}<\/style>\t\t\t\t<h1 style=\"text-align: center;\"><strong><span style=\"font-family: helvetica; font-size: 24pt;\">This tutorial shows how to spin a DC MOTOR using ESP32, L293D motor driver, and SOUND SENSOR(CZN-15E).<\/span><\/strong><\/h1>\n<div style=\"width: 300px; padding: 15px; border: 1px solid lightgray; background-color: #e6f7ff;\">\n<p><span style=\"font-size: 14pt; margin-bottom: 5px;\"><strong><span style=\"font-family: helvetica; margin-bottom: 5px;\">TABLE OF CONTENT<\/span><\/strong><\/span><\/p>\n<ul>\n<li><a href=\"https:\/\/www.niraltek.com\/blog\/spinning-of-dc-motor-with-esp32-and-sound-sensor\/#prerequisites\">Prerequisites<\/a><\/li>\n<li><a href=\"https:\/\/www.niraltek.com\/blog\/spinning-of-dc-motor-with-esp32-and-sound-sensor\/#czn\">CZN-15E sound sensor<\/a><\/li>\n<li><a href=\"https:\/\/www.niraltek.com\/blog\/spinning-of-dc-motor-with-esp32-and-sound-sensor\/#motorDriver\">L293D motor drives<\/a><\/li>\n<li><a href=\"https:\/\/www.niraltek.com\/blog\/spinning-of-dc-motor-with-esp32-and-sound-sensor\/#circuitConnection\">Circuit connection<\/a><\/li>\n<li><a href=\"https:\/\/www.niraltek.com\/blog\/spinning-of-dc-motor-with-esp32-and-sound-sensor\/#programe\">program<\/a><\/li>\n<\/ul>\n<\/div>\n<p><\/p>\n<p><h5><span id=\"prerequisites\" style=\"font-size: 14pt;\"><strong><span style=\"font-family: helvetica;\">PREREQUISITES :<\/span><\/strong><\/span><\/h5><span style=\"font-family: helvetica;\">We will require the following components for spinning the DC motor using the sound sensor.<\/span><\/p>\n<h2><span style=\"font-size: 14pt;\"><strong><span style=\"font-family: helvetica;\">REQUIRED COMPONENTS:<\/span><\/strong><\/span><\/h2>\n<p><span style=\"font-family: helvetica; color: #2170b7;\">*ESP32 development board.<\/span><\/p>\n<p><span style=\"font-family: helvetica; color: #2170b7;\">*Sound sensor (CZN-15E).<\/span><\/p>\n<p><span style=\"font-family: helvetica; color: #2170b7;\">*L293D motor driver.<\/span><\/p>\n<p><span style=\"font-family: helvetica; color: #2170b7;\">*DC motor.<\/span><\/p>\n<p><span style=\"font-family: helvetica; color: #2170b7;\">*Connecting wires.<\/span><\/p>\n<p><span style=\"font-family: helvetica;\">We will use Arduino IDE to program our ESP32 development board. You should have the latest version of Arduino IDE. Additionally, you also need to install the ESP32 plugin.<\/span><\/p>\n<h2><span id=\"czn\" style=\"font-size: 14pt;\"><strong><span style=\"font-family: helvetica;\">CZN-15E SOUND SENSOR:<\/span><\/strong><\/span><\/h2>\n<p><span style=\"font-family: helvetica;\">In this fully automated world, we want to operate things through sound for our easiness. To make this automation, we need a sound sensor. Basically, the sound is a waveform of energy which is produced by the form of mechanical vibration. The type of sound determines its frequency.<\/span><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-515 aligncenter\" src=\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2022\/07\/CZN-15E-SOUND-SENSOR-300x272.jpg\" alt=\"SOUND-SENSO\" width=\"300\" height=\"272\" srcset=\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2022\/07\/CZN-15E-SOUND-SENSOR-300x272.jpg 300w, https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2022\/07\/CZN-15E-SOUND-SENSOR.jpg 320w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p style=\"text-align: center;\"><span style=\"font-family: helvetica; font-size: 12pt;\"><strong>CZN-15E SOUND SENSOR<\/strong><\/span><\/p>\n<p><span style=\"font-family: helvetica;\">This CZN-15E Electret microphone-based module can be used to detect sound intensities using an adjustable potentiometer to adjust the trigger level. Its output is binary, the output goes high if sound intensity level crosses preset trigger level.<\/span><\/p>\n<h2><span id=\"motorDriver\" style=\"font-size: 14pt;\"><strong><span style=\"font-family: helvetica;\">L293D MOTOR DRIVER:<\/span><\/strong><\/span><\/h2>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-514 aligncenter\" src=\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2022\/07\/L293D-MOTOR-DRIVER-300x300.jpg\" alt=\"MOTOR-DRIVER\" width=\"300\" height=\"300\" srcset=\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2022\/07\/L293D-MOTOR-DRIVER-300x300.jpg 300w, https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2022\/07\/L293D-MOTOR-DRIVER-150x150.jpg 150w, https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2022\/07\/L293D-MOTOR-DRIVER.jpg 500w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p style=\"text-align: center;\"><span style=\"font-family: helvetica;\"><strong>L293D <span style=\"font-size: 12pt;\">MOTOR<\/span> DRIVER<\/strong><\/span><\/p>\n<p><span style=\"font-family: helvetica;\">L293D motor driver module is a medium power motor driver perfect for driving DC motors and stepper motors. It uses the popular L293 motor driver IC. It can drive motors up to 12V with a total DC current of up to 600mA.<\/span><\/p>\n<h2><strong><span id=\"circuitConnection\" style=\"font-family: helvetica; font-size: 14pt;\">CIRCUIT CONNECTIONS:<\/span><\/strong><\/h2>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-516 aligncenter\" src=\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2022\/07\/CIRCUIT-CONNECTIONS-300x204.jpg\" alt=\"CIRCUIT-CONNECTIONS\" width=\"486\" height=\"331\" srcset=\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2022\/07\/CIRCUIT-CONNECTIONS-300x204.jpg 300w, https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2022\/07\/CIRCUIT-CONNECTIONS-1024x698.jpg 1024w, https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2022\/07\/CIRCUIT-CONNECTIONS-768x523.jpg 768w, https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2022\/07\/CIRCUIT-CONNECTIONS-1536x1047.jpg 1536w, https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2022\/07\/CIRCUIT-CONNECTIONS-2048x1396.jpg 2048w\" sizes=\"(max-width: 486px) 100vw, 486px\" \/><\/p>\n<h2><strong><span style=\"font-size: 14pt; font-family: helvetica;\">PIN CONFIGURATION:<\/span><\/strong><\/h2>\n<p><span style=\"font-family: helvetica;\">This sensor includes three pins and they are,<\/span><\/p>\n<p><span style=\"font-family: helvetica; color: #2170b7;\">*Pin 1(VCC): 3.3V DC to 5V DC.<\/span><\/p>\n<p><span style=\"font-family: helvetica; color: #2170b7;\">*Pin 2(GND): This is a ground pin.<\/span><\/p>\n<p><span style=\"font-family: helvetica; color: #2170b7;\">*Pin 3(OUT): This is an output pin; we will connect ADC pin 34 with AO. You can use any appropriate analog pin of ESP32.<\/span><\/p>\n<table style=\"width: 300px; border-collapse: collapse; text-align: center; border: 1px solid black;\">\n<tbody>\n<tr style=\"border: 1px solid black;\">\n<th style=\"border: 1px solid black; text-align: center;\">ESP32<\/th>\n<th style=\"border: 1px solid black; text-align: center;\">SOUND SENSOR<\/th>\n<\/tr>\n<tr style=\"border: 1px solid black;\">\n<td style=\"border: 1px solid black; text-align: center;\">VIN<\/td>\n<td style=\"border: 1px solid black; text-align: center;\">VCC<\/td>\n<\/tr>\n<tr style=\"border: 1px solid black;\">\n<td style=\"border: 1px solid black; text-align: center;\">GROUND<\/td>\n<td style=\"border: 1px solid black; text-align: center;\">GROUND<\/td>\n<\/tr>\n<tr style=\"border: 1px solid black;\">\n<td style=\"border: 1px solid black; text-align: center;\">GPIO34<\/td>\n<td style=\"border: 1px solid black; text-align: center;\">AO<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-family: helvetica;\">Since we\u2019re just driving one motor for this tutorial, we won\u2019t be using all the motor driver\u2019s pins.<\/span><\/p>\n<p><span style=\"font-family: helvetica;\">*Startup by connecting input pin1 and input pin2 with ESP32 GPIO26 and GPIO27.<\/span><\/p>\n<p><span style=\"font-family: helvetica;\">*Next give VS pin to 5V, which supplies power to the motor and ground to ground of ESP32.<\/span><\/p>\n<p><span style=\"font-family: helvetica;\">*Connect both the motor pins to motor1 pins of the L293D motor driver, if we use two DC motors then connect the second motor to motor2 pins of the L293D motor driver.<\/span><\/p>\n<p><\/p>\n<p><span id=\"programe\" style=\"font-size: 14pt;\"><strong><span style=\"font-family: helvetica;\">PROGRAM:<\/span><\/strong><\/span><br><code>#define Sound_sensor 34<br>#define motorPin1 26<br>#define motorPin2 27<\/code><\/p>\n<p><code>const int sampleWindow = 50; \/\/sample window width in ms(50mS=20Hz)<\/code><br><code>const int dbMax=70;<\/code><br><code>unsigned int volume;<\/code><\/p>\n<p><code>void setup()<\/code><br><code>{<\/code><br><code>pinMode(Sound_sensor, INPUT);<\/code><br><code>pinMode(motorPin1,OUTPUT);<\/code><br><code>pinMode(motorPin2,OUTPUT);<\/code><br><code>Serial.begin(115200);<\/code><br><code>}<\/code><\/p>\n<p><code>void loop()<\/code><br><code>{<\/code><br><code>unsigned long startMillis= millis(); \/\/start of sample window<\/code><br><code>int peakToPeak = 0; \/\/peak-to-peak level<\/code><\/p>\n<p><code>unsigned int signalMax = 0; \/\/minimum value<\/code><br><code>unsigned int signalMin = 4096; \/\/maximum value<\/code><\/p>\n<p><code>while (millis() - startMillis &lt; sampleWindow) \/\/collect data for 50ms<\/code><br><code>{<\/code><br><code>volume = analogRead(Sound_sensor); \/\/get reading from microphone<\/code><\/p>\n<p><code>if (volume &lt; signalMin) { if (volume &gt; signalMax)<\/code><br><code>{<\/code><br><code>signalMax = volume;<\/code><br><code>}<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>peakToPeak = signalMax;<\/code><br><code>int db = (peakToPeak\/10);<\/code><br><code>Serial.print(\"Db = \");<\/code><br><code>Serial.println(db);<\/code><\/p>\n<p><code>if(db&gt;dbMax){<\/code><br><code>digitalWrite(motorPin1,HIGH);<\/code><br><code>digitalWrite(motorPin2,LOW);<\/code><br><code>}<\/code><br><code>else{<\/code><br><code>digitalWrite(motorPin1,LOW);<\/code><br><code>digitalWrite(motorPin2,LOW);<\/code><br><code>}<\/code><br><code>}<\/code><br><strong><a href=\"https:\/\/github.com\/niraltek\/spin-dc-motor-esp32\/blob\/main\/dc-motor-sound-esp32.ino\" target=\"_blank\" rel=\"noopener\"><span style=\"font-family: helvetica;\">Download the code directly from <span style=\"color: #171515;\">Github <\/span><\/span><\/a><\/strong><\/p>\n<p><span style=\"font-family: helvetica;\">Upload the code to your ESP32. Make sure you have the right board and COM port selected. In this tutorial shows you how to spin a DC motor based on sound frequency using an ESP32, L293D motor driver and a sound sensor.<\/span><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>This tutorial shows how to spin a DC MOTOR using ESP32, L293D motor driver, and SOUND SENSOR(CZN-15E). TABLE OF CONTENT Prerequisites CZN-15E sound sensor L293D motor drives Circuit connection program PREREQUISITES : We will require the following components for spinning the DC motor using the sound sensor. REQUIRED COMPONENTS: *ESP32 development board. *Sound sensor (CZN-15E). [&hellip;]<\/p>\n <a href=\"https:\/\/www.niraltek.com\/blog\/spinning-of-dc-motor-with-esp32-and-sound-sensor\/\" class=\"ReadMore\" title=\"Read More\">Read More<\/a>","protected":false},"author":4,"featured_media":522,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.5.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Spinning of DC Motor with ESP32 and Sound Sensor - Niraltek Blog<\/title>\n<meta name=\"description\" content=\"how to spin a DC MOTOR using ESP32, L293D motor driver, and SOUND SENSOR(CZN-15E).\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.niraltek.com\/blog\/spinning-of-dc-motor-with-esp32-and-sound-sensor\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Spinning of DC Motor with ESP32 and Sound Sensor - Niraltek Blog\" \/>\n<meta property=\"og:description\" content=\"how to spin a DC MOTOR using ESP32, L293D motor driver, and SOUND SENSOR(CZN-15E).\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.niraltek.com\/blog\/spinning-of-dc-motor-with-esp32-and-sound-sensor\/\" \/>\n<meta property=\"og:site_name\" content=\"Niraltek Blog\" \/>\n<meta property=\"article:published_time\" content=\"2022-07-25T09:52:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-08T09:56:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2022\/07\/dc-motor.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"801\" \/>\n\t<meta property=\"og:image:height\" content=\"401\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Benitta Arogana\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.niraltek.com\/blog\/#website\",\"url\":\"https:\/\/www.niraltek.com\/blog\/\",\"name\":\"Niraltek Blog\",\"description\":\"Niraltek, IOT, BLOGS\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.niraltek.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.niraltek.com\/blog\/spinning-of-dc-motor-with-esp32-and-sound-sensor\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2022\/07\/dc-motor.jpg\",\"contentUrl\":\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2022\/07\/dc-motor.jpg\",\"width\":801,\"height\":401,\"caption\":\"DC motor with esp32\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.niraltek.com\/blog\/spinning-of-dc-motor-with-esp32-and-sound-sensor\/#webpage\",\"url\":\"https:\/\/www.niraltek.com\/blog\/spinning-of-dc-motor-with-esp32-and-sound-sensor\/\",\"name\":\"Spinning of DC Motor with ESP32 and Sound Sensor - Niraltek Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.niraltek.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.niraltek.com\/blog\/spinning-of-dc-motor-with-esp32-and-sound-sensor\/#primaryimage\"},\"datePublished\":\"2022-07-25T09:52:56+00:00\",\"dateModified\":\"2022-11-08T09:56:31+00:00\",\"author\":{\"@id\":\"https:\/\/www.niraltek.com\/blog\/#\/schema\/person\/148d5997dffae26a9ba784fb467c3aaf\"},\"description\":\"how to spin a DC MOTOR using ESP32, L293D motor driver, and SOUND SENSOR(CZN-15E).\",\"breadcrumb\":{\"@id\":\"https:\/\/www.niraltek.com\/blog\/spinning-of-dc-motor-with-esp32-and-sound-sensor\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.niraltek.com\/blog\/spinning-of-dc-motor-with-esp32-and-sound-sensor\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.niraltek.com\/blog\/spinning-of-dc-motor-with-esp32-and-sound-sensor\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.niraltek.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Spinning of DC Motor with ESP32 and Sound Sensor\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.niraltek.com\/blog\/#\/schema\/person\/148d5997dffae26a9ba784fb467c3aaf\",\"name\":\"Benitta Arogana\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.niraltek.com\/blog\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/166f2ff68b64692cd13e9cd238ccbd5d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/166f2ff68b64692cd13e9cd238ccbd5d?s=96&d=mm&r=g\",\"caption\":\"Benitta Arogana\"},\"sameAs\":[\"http:\/\/www.niraltek.com\"],\"url\":\"https:\/\/www.niraltek.com\/blog\/author\/benitta\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Spinning of DC Motor with ESP32 and Sound Sensor - Niraltek Blog","description":"how to spin a DC MOTOR using ESP32, L293D motor driver, and SOUND SENSOR(CZN-15E).","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:\/\/www.niraltek.com\/blog\/spinning-of-dc-motor-with-esp32-and-sound-sensor\/","og_locale":"en_US","og_type":"article","og_title":"Spinning of DC Motor with ESP32 and Sound Sensor - Niraltek Blog","og_description":"how to spin a DC MOTOR using ESP32, L293D motor driver, and SOUND SENSOR(CZN-15E).","og_url":"https:\/\/www.niraltek.com\/blog\/spinning-of-dc-motor-with-esp32-and-sound-sensor\/","og_site_name":"Niraltek Blog","article_published_time":"2022-07-25T09:52:56+00:00","article_modified_time":"2022-11-08T09:56:31+00:00","og_image":[{"width":801,"height":401,"url":"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2022\/07\/dc-motor.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Written by":"Benitta Arogana","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/www.niraltek.com\/blog\/#website","url":"https:\/\/www.niraltek.com\/blog\/","name":"Niraltek Blog","description":"Niraltek, IOT, BLOGS","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.niraltek.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/www.niraltek.com\/blog\/spinning-of-dc-motor-with-esp32-and-sound-sensor\/#primaryimage","inLanguage":"en-US","url":"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2022\/07\/dc-motor.jpg","contentUrl":"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2022\/07\/dc-motor.jpg","width":801,"height":401,"caption":"DC motor with esp32"},{"@type":"WebPage","@id":"https:\/\/www.niraltek.com\/blog\/spinning-of-dc-motor-with-esp32-and-sound-sensor\/#webpage","url":"https:\/\/www.niraltek.com\/blog\/spinning-of-dc-motor-with-esp32-and-sound-sensor\/","name":"Spinning of DC Motor with ESP32 and Sound Sensor - Niraltek Blog","isPartOf":{"@id":"https:\/\/www.niraltek.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.niraltek.com\/blog\/spinning-of-dc-motor-with-esp32-and-sound-sensor\/#primaryimage"},"datePublished":"2022-07-25T09:52:56+00:00","dateModified":"2022-11-08T09:56:31+00:00","author":{"@id":"https:\/\/www.niraltek.com\/blog\/#\/schema\/person\/148d5997dffae26a9ba784fb467c3aaf"},"description":"how to spin a DC MOTOR using ESP32, L293D motor driver, and SOUND SENSOR(CZN-15E).","breadcrumb":{"@id":"https:\/\/www.niraltek.com\/blog\/spinning-of-dc-motor-with-esp32-and-sound-sensor\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.niraltek.com\/blog\/spinning-of-dc-motor-with-esp32-and-sound-sensor\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.niraltek.com\/blog\/spinning-of-dc-motor-with-esp32-and-sound-sensor\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.niraltek.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Spinning of DC Motor with ESP32 and Sound Sensor"}]},{"@type":"Person","@id":"https:\/\/www.niraltek.com\/blog\/#\/schema\/person\/148d5997dffae26a9ba784fb467c3aaf","name":"Benitta Arogana","image":{"@type":"ImageObject","@id":"https:\/\/www.niraltek.com\/blog\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/166f2ff68b64692cd13e9cd238ccbd5d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/166f2ff68b64692cd13e9cd238ccbd5d?s=96&d=mm&r=g","caption":"Benitta Arogana"},"sameAs":["http:\/\/www.niraltek.com"],"url":"https:\/\/www.niraltek.com\/blog\/author\/benitta\/"}]}},"_links":{"self":[{"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/posts\/512"}],"collection":[{"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/comments?post=512"}],"version-history":[{"count":37,"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/posts\/512\/revisions"}],"predecessor-version":[{"id":909,"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/posts\/512\/revisions\/909"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/media\/522"}],"wp:attachment":[{"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/media?parent=512"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/categories?post=512"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/tags?post=512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}