
{"id":908,"date":"2017-02-23T07:46:53","date_gmt":"2017-02-23T07:46:53","guid":{"rendered":"http:\/\/dyor.roboticafacil.es\/?p=908"},"modified":"2018-04-23T18:34:12","modified_gmt":"2018-04-23T18:34:12","slug":"qcad-hc-sr04","status":"publish","type":"post","link":"https:\/\/dyor.webs.upv.es\/en\/qcad-hc-sr04\/","title":{"rendered":"QCAD Design of ultrasound sensor HC-SR04"},"content":{"rendered":"<p>The purpose of this entry is to show necessary steps to create a CAD design to represent the ultrasound sensor HC-SR04 of your robot.<\/p>\n<p><!--more--><\/p>\n<p>Our design aim is to obtain a CAD design for the range distance module based on the HC-SR04 ultrasound sensor. This sensor is part of the robot&#8217;s face, so we require two holes of 8mm radius to fit the caps of the sensor. Once insice, the ultrasound sensor will be glued to the face (on the back side). We will use a cutting layer for the holes and and an auxiliary layer for the shape of the sensor.<\/p>\n<p>Dimensions of the sensor are shown below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-909 aligncenter\" src=\"https:\/\/dyor.webs.upv.es\/wp-content\/uploads\/2017\/02\/sonar_anotaciones.png\" alt=\"\" width=\"556\" height=\"417\" srcset=\"https:\/\/dyor.webs.upv.es\/wp-content\/uploads\/2017\/02\/sonar_anotaciones.png 640w, https:\/\/dyor.webs.upv.es\/wp-content\/uploads\/2017\/02\/sonar_anotaciones-300x225.png 300w\" sizes=\"auto, (max-width: 556px) 100vw, 556px\" \/><\/p>\n<p>We will use the following template:<\/p>\n<p style=\"text-align: center;\"><div class=\"\"><a href=\"https:\/\/dyor.webs.upv.es\/qcad\/dxf\/plantilla_componentes.dxf\" target=\"_self\" class=\"emd_dl_green_dark\" download>QCAD Template<\/a><\/div>    <style>            \r\n    .emd_dl_green_dark {\r\n        -moz-box-shadow:inset 0px 1px 0px 0px #caefab;\r\n        -webkit-box-shadow:inset 0px 1px 0px 0px #caefab;\r\n        box-shadow:inset 0px 1px 0px 0px #caefab;\r\n        background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #77d42a), color-stop(1, #5cb811) );\r\n        background:-moz-linear-gradient( center top, #77d42a 5%, #5cb811 100% );\r\n        filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#77d42a', endColorstr='#5cb811');\r\n        background-color:#77d42a;\r\n        -webkit-border-top-left-radius:0px;\r\n        -moz-border-radius-topleft:0px;\r\n        border-top-left-radius:0px;\r\n        -webkit-border-top-right-radius:0px;\r\n        -moz-border-radius-topright:0px;\r\n        border-top-right-radius:0px;\r\n        -webkit-border-bottom-right-radius:0px;\r\n        -moz-border-radius-bottomright:0px;\r\n        border-bottom-right-radius:0px;\r\n        -webkit-border-bottom-left-radius:0px;\r\n        -moz-border-radius-bottomleft:0px;\r\n        border-bottom-left-radius:0px;\r\n        text-indent:0;\r\n        border:1px solid #268a16;\r\n        display:inline-block;\r\n        color:#306108 !important;\r\n        font-family:Georgia;\r\n        font-size:15px;\r\n        font-weight:bold;\r\n        font-style:normal;\r\n        height:41px;\r\n        line-height:41px;\r\n        width:250px;\r\n        text-decoration:none;\r\n        text-align:center;\r\n        text-shadow:1px 1px 0px #aade7c;\r\n    }\r\n    .emd_dl_green_dark:hover {\r\n        background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #5cb811), color-stop(1, #77d42a) );\r\n        background:-moz-linear-gradient( center top, #5cb811 5%, #77d42a 100% );\r\n        filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#5cb811', endColorstr='#77d42a');\r\n        background-color:#5cb811;\r\n    }.emd_dl_green_dark:active {\r\n        position:relative;\r\n        top:1px;\r\n    }<\/style><\/p>\n<p>Select the auxiliary layer and create a polyline with the following commands:<\/p>\n<p>polyline<\/p>\n<p>0,0<\/p>\n<p>@45,0<\/p>\n<p>@0,20<\/p>\n<p>@-17.5,0<\/p>\n<p>@0,4.5<\/p>\n<p>@-10,0<\/p>\n<p>@0,-4.5<\/p>\n<p>@-17.5,0<\/p>\n<p>@0,-20<\/p>\n<p>Afterwards, create two circles in the cutting layer:<\/p>\n<p>circle<\/p>\n<p>9.5,10<\/p>\n<p>8<\/p>\n<p>circle<\/p>\n<p>35.5,10<\/p>\n<p>8<\/p>\n<p>Finally, we can add dimensions and text on the auxiliary layer by selecting the appropriate tools on the left-side menu.<\/p>\n<p>Here, you can find the DXF file with the solution:<\/p>\n<p style=\"text-align: center;\"><div class=\"\"><a href=\"https:\/\/dyor.webs.upv.es\/qcad\/dxf\/sonar_cotas.dxf\" target=\"_self\" class=\"emd_dl_green_dark\" download>QCAD Ultrasound<\/a><\/div>    <style>            \r\n    .emd_dl_green_dark {\r\n        -moz-box-shadow:inset 0px 1px 0px 0px #caefab;\r\n        -webkit-box-shadow:inset 0px 1px 0px 0px #caefab;\r\n        box-shadow:inset 0px 1px 0px 0px #caefab;\r\n        background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #77d42a), color-stop(1, #5cb811) );\r\n        background:-moz-linear-gradient( center top, #77d42a 5%, #5cb811 100% );\r\n        filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#77d42a', endColorstr='#5cb811');\r\n        background-color:#77d42a;\r\n        -webkit-border-top-left-radius:0px;\r\n        -moz-border-radius-topleft:0px;\r\n        border-top-left-radius:0px;\r\n        -webkit-border-top-right-radius:0px;\r\n        -moz-border-radius-topright:0px;\r\n        border-top-right-radius:0px;\r\n        -webkit-border-bottom-right-radius:0px;\r\n        -moz-border-radius-bottomright:0px;\r\n        border-bottom-right-radius:0px;\r\n        -webkit-border-bottom-left-radius:0px;\r\n        -moz-border-radius-bottomleft:0px;\r\n        border-bottom-left-radius:0px;\r\n        text-indent:0;\r\n        border:1px solid #268a16;\r\n        display:inline-block;\r\n        color:#306108 !important;\r\n        font-family:Georgia;\r\n        font-size:15px;\r\n        font-weight:bold;\r\n        font-style:normal;\r\n        height:41px;\r\n        line-height:41px;\r\n        width:250px;\r\n        text-decoration:none;\r\n        text-align:center;\r\n        text-shadow:1px 1px 0px #aade7c;\r\n    }\r\n    .emd_dl_green_dark:hover {\r\n        background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #5cb811), color-stop(1, #77d42a) );\r\n        background:-moz-linear-gradient( center top, #5cb811 5%, #77d42a 100% );\r\n        filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#5cb811', endColorstr='#77d42a');\r\n        background-color:#5cb811;\r\n    }.emd_dl_green_dark:active {\r\n        position:relative;\r\n        top:1px;\r\n    }<\/style><\/p>\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>Sorry, this entry is only available in Espa\u00f1ol.<\/p>\n","protected":false},"author":1,"featured_media":1008,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[12],"tags":[14,20,31,27,19,42],"class_list":["post-908","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-qcad","tag-dyor","tag-hc-sr04","tag-qcad","tag-robot","tag-sonar","tag-ultrasonidos"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/dyor.webs.upv.es\/wp-content\/uploads\/2017\/02\/sonar_cad.jpg","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":1308,"url":"https:\/\/dyor.webs.upv.es\/en\/tinkercad-hc-sr04\/","url_meta":{"origin":908,"position":0},"title":"Dise\u00f1o TinkerCAD Ultrasonidos HC-SR04","author":"soporte","date":"Saturday March  4th, 2017","format":false,"excerpt":"Aprende a dise\u00f1ar un modelo simplificado del sensor de ultrasonidos HC-SR04 para tu robot DYOR. A continuaci\u00f3n os mostraremos los pasos necesarios para dise\u00f1ar el sensor de ultrasonidos HC-SR04 para vuestro robot DYOR. El modelo a dise\u00f1ar es un modelo simplificado para que f\u00e1cilmente lo pod\u00e1is hacer en el aula.\u2026","rel":"","context":"In &quot;tinkercad&quot;","block_context":{"text":"tinkercad","link":"https:\/\/dyor.webs.upv.es\/en\/category\/diseno\/tinkercad\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/dyor.webs.upv.es\/wp-content\/uploads\/2017\/03\/hcsr04_7.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/dyor.webs.upv.es\/wp-content\/uploads\/2017\/03\/hcsr04_7.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/dyor.webs.upv.es\/wp-content\/uploads\/2017\/03\/hcsr04_7.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":7806,"url":"https:\/\/dyor.webs.upv.es\/en\/robot-control-bluetooth\/","url_meta":{"origin":908,"position":1},"title":"Robot Control Bluetooth","author":"Xavier Edo Vicente","date":"Wednesday June 26th, 2024","format":false,"excerpt":"Sorry, this entry is only available in Espa\u00f1ol.","rel":"","context":"In &quot;Blog&quot;","block_context":{"text":"Blog","link":"https:\/\/dyor.webs.upv.es\/en\/category\/blog\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/dyor.webs.upv.es\/wp-content\/uploads\/2024\/06\/FrontalYBase.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":6180,"url":"https:\/\/dyor.webs.upv.es\/en\/robot-dtr\/","url_meta":{"origin":908,"position":2},"title":"Robot DTR","author":"salm.sotos","date":"Thursday June 16th, 2022","format":false,"excerpt":"Sorry, this entry is only available in Espa\u00f1ol.","rel":"","context":"In &quot;Blog&quot;","block_context":{"text":"Blog","link":"https:\/\/dyor.webs.upv.es\/en\/category\/blog\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/dyor.webs.upv.es\/wp-content\/uploads\/2022\/06\/robot-1.jpeg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/dyor.webs.upv.es\/wp-content\/uploads\/2022\/06\/robot-1.jpeg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/dyor.webs.upv.es\/wp-content\/uploads\/2022\/06\/robot-1.jpeg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/dyor.webs.upv.es\/wp-content\/uploads\/2022\/06\/robot-1.jpeg?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/dyor.webs.upv.es\/wp-content\/uploads\/2022\/06\/robot-1.jpeg?resize=1050%2C600&ssl=1 3x"},"classes":[]},{"id":3021,"url":"https:\/\/dyor.webs.upv.es\/en\/medicion-de-distancia-en-facilino\/","url_meta":{"origin":908,"position":3},"title":"Measuring Distances in Facilino","author":"soporte","date":"Friday April  6th, 2018","format":false,"excerpt":"In this presentation we explain how to use some of the distance measuring block programming instructions in Facilino using the ultrasound sensor HC-SR04. Presentation Video","rel":"","context":"In &quot;Facilino Tutorial&quot;","block_context":{"text":"Facilino Tutorial","link":"https:\/\/dyor.webs.upv.es\/en\/category\/programacion\/facilino\/facilino-tutorial\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":6245,"url":"https:\/\/dyor.webs.upv.es\/en\/robot-q-ped-xeskotron\/","url_meta":{"origin":908,"position":4},"title":"Robot Q-PED Xeskotron","author":"AlvaroArgente","date":"Sunday June 19th, 2022","format":false,"excerpt":"Sorry, this entry is only available in Espa\u00f1ol.","rel":"","context":"In &quot;Blog&quot;","block_context":{"text":"Blog","link":"https:\/\/dyor.webs.upv.es\/en\/category\/blog\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/dyor.webs.upv.es\/wp-content\/uploads\/2022\/06\/8a9e2847-015c-43af-9dfd-61d1585007e5.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/dyor.webs.upv.es\/wp-content\/uploads\/2022\/06\/8a9e2847-015c-43af-9dfd-61d1585007e5.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/dyor.webs.upv.es\/wp-content\/uploads\/2022\/06\/8a9e2847-015c-43af-9dfd-61d1585007e5.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/dyor.webs.upv.es\/wp-content\/uploads\/2022\/06\/8a9e2847-015c-43af-9dfd-61d1585007e5.jpg?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":4584,"url":"https:\/\/dyor.webs.upv.es\/en\/hallyebot-el-brilloso-robot\/","url_meta":{"origin":908,"position":5},"title":"HallyeBot: el brilloso robot","author":"Hallye","date":"Wednesday May 15th, 2019","format":false,"excerpt":"Sorry, this entry is only available in Espa\u00f1ol.","rel":"","context":"In &quot;Blog&quot;","block_context":{"text":"Blog","link":"https:\/\/dyor.webs.upv.es\/en\/category\/blog\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/dyor.webs.upv.es\/wp-content\/uploads\/2019\/05\/robot3.jpeg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/dyor.webs.upv.es\/wp-content\/uploads\/2019\/05\/robot3.jpeg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/dyor.webs.upv.es\/wp-content\/uploads\/2019\/05\/robot3.jpeg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/dyor.webs.upv.es\/wp-content\/uploads\/2019\/05\/robot3.jpeg?resize=700%2C400&ssl=1 2x"},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/dyor.webs.upv.es\/en\/wp-json\/wp\/v2\/posts\/908","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dyor.webs.upv.es\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dyor.webs.upv.es\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dyor.webs.upv.es\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dyor.webs.upv.es\/en\/wp-json\/wp\/v2\/comments?post=908"}],"version-history":[{"count":0,"href":"https:\/\/dyor.webs.upv.es\/en\/wp-json\/wp\/v2\/posts\/908\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dyor.webs.upv.es\/en\/wp-json\/wp\/v2\/media\/1008"}],"wp:attachment":[{"href":"https:\/\/dyor.webs.upv.es\/en\/wp-json\/wp\/v2\/media?parent=908"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dyor.webs.upv.es\/en\/wp-json\/wp\/v2\/categories?post=908"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dyor.webs.upv.es\/en\/wp-json\/wp\/v2\/tags?post=908"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}