        <style>
            #donation_buttons td{
                border:medium none;
                background: inherit !important;
            }
            #donation_buttons table{               
                border:medium none;
                margin: auto;
                width: auto;
            }
        </style>
        {"id":5999,"date":"2020-10-26T23:45:31","date_gmt":"2020-10-26T23:45:31","guid":{"rendered":"http:\/\/rogerbit.com\/wprb\/?p=5999"},"modified":"2020-10-27T15:52:16","modified_gmt":"2020-10-27T15:52:16","slug":"automatic-gel-alcohol-dispenser-with-esp32","status":"publish","type":"post","link":"https:\/\/rogerbit.com\/wprb\/2020\/10\/automatic-gel-alcohol-dispenser-with-esp32\/","title":{"rendered":"Automatic gel alcohol dispenser with esp32"},"content":{"rendered":"<p><iframe loading=\"lazy\" width=\"1160\" height=\"653\" src=\"https:\/\/www.youtube.com\/embed\/HjvY-U1Nrkw?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n<p>In tutorial we will see how to make a complete prototype, to assemble an automatic gel alcohol dispenser with esp32, it will include step-by-step assembly, electronic circuit and also the source code explained all step by step.<\/p>\n<p>Art\u00edculo en espa\u00f1ol en &#8211;&gt;\u00a0<a href=\"http:\/\/rogerbit.com\/wprb\/2020\/10\/dispensador-de-alcohol-en-gel-automatico-con-esp32\/\">http:\/\/rogerbit.com\/wprb\/2020\/10\/dispensador-de-alcohol-en-gel-automatico-con-esp32\/<\/a><\/p>\n<hr \/>\n<p>Maybe you might be interested in projects in arduino, pic, robotics, telecommunications, subscribe at http:\/\/www.youtube.com\/user\/carlosvolt?sub_confirmation=1 a lot of videos with complete source code and diagrams<\/p>\n<div id=\"ubm-banners-rotation-n1\" data-interval=\"4000\" class=\"ubm_banners_rotation\" style=\"overflow: hidden; width: 200px; height: 150px;\"><div id=\"3_ubm_banner\" class=\"ubm_rotating_banner\"><a href=\"https:\/\/bit.ly\/3aXRDAu\" target=\"_blank\" rel=\"dofollow\"><img src=\"https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/useful_banner_manager_banners\/3-2-logo youtube.png\" width=\"100%\" height=\"100%\" alt=\"SUSCRIBETE A NUESTRO CANAL DE YOUTUBE, TUTORIALES GRATIS\" \/><\/a><\/div><\/div>\n<hr \/>\n<p><strong>Circuit<\/strong><\/p>\n<p><a href=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/10\/circuito-sanitizador-gel.jpg\"><img loading=\"lazy\" class=\"alignnone size-large wp-image-5984\" src=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/10\/circuito-sanitizador-gel-1024x621.jpg\" sizes=\"(max-width: 1024px) 100vw, 1024px\" srcset=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/10\/circuito-sanitizador-gel-1024x621.jpg 1024w, http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/10\/circuito-sanitizador-gel-300x182.jpg 300w, http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/10\/circuito-sanitizador-gel-768x466.jpg 768w, http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/10\/circuito-sanitizador-gel-600x364.jpg 600w, http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/10\/circuito-sanitizador-gel-820x497.jpg 820w, http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/10\/circuito-sanitizador-gel-1320x801.jpg 1320w\" alt=\"\" width=\"1024\" height=\"621\" \/><\/a><\/p>\n<p>The circuit of this project is composed, of the ky-033 module, which has a reflective optical sensor, which is the TCRT5000L, an esp32-t module, although we can also use an Arduino, in any of its views, with some minimal modifications to the source code, an MG995 servo motor, in its 360-degree version, so that we can take a complete turn with a high torque , inside it is built with metal gears, and of course a printed circuit, which I will leave the gerber file below so that they can download for free.<\/p>\n<h4>Features of the ESP32-T module<\/h4>\n<p><img src=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2017\/08\/esp32pinout-227x300.jpg\" \/><\/p>\n<h3>Connectivity<\/h3>\n<hr \/>\n<p>The ESP32 module has all the\u00a0<strong>wiFi variants:<\/strong><\/p>\n<ul>\n<li>802.11 b\/g\/n\/e\/i\/n<\/li>\n<li>Wi-Fi Direct (P2P), P2P Discovery, P2P Group Owner mode and P2P Power Management<\/li>\n<\/ul>\n<p>This new version includes low-power<strong>\u00a0Bluethoot<\/strong>\u00a0connectivity<\/p>\n<ul>\n<li>Bluetooth v4.2 BR\/EDR and BLE<\/li>\n<li>BLE Beacon<\/li>\n<\/ul>\n<p>In addition, you can communicate using<strong>\u00a0SPI, I2C, UART, MAC Ethernet, Host SD protocols<\/strong><\/p>\n<h3>Microcontroller features<\/h3>\n<hr \/>\n<p>The\u00a0<strong>CPU<\/strong>\u00a0consists of a\u00a0<strong>Tensilica LX6 Model SoC<\/strong>\u00a0with the following features and memory<\/p>\n<ul>\n<li>Dual 32-bit core with 160MHz speed<\/li>\n<li>448 kBytes ROM<\/li>\n<li>520kByteS SRAM<\/li>\n<\/ul>\n<p>Have<strong>\u00a048 Pins<\/strong><\/p>\n<ul>\n<li>18 12-bit ADC<\/li>\n<li>2 8-bit DAC<\/li>\n<li>10 pin contact sensors<\/li>\n<li>16 PWM<\/li>\n<li>20 Digital inputs\/outputs<\/li>\n<\/ul>\n<h3>Power and consumption modes<\/h3>\n<p>For proper operation of the ESP32 it is necessary to supply a voltage between 2.8V and 3.6V. The energy you consume depends on the mode of operation. It contains a mode,\u00a0<strong>the Ultra Low Power Solution (ULP),<\/strong>in which basic tasks (ADC, PSTN&#8230;) continue to be performed in Sleep mode.<\/p>\n<p><strong>Servo MG995 360-degree version<\/strong><\/p>\n<p><a href=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/10\/servo360mg995.jpg\"><img loading=\"lazy\" class=\"alignnone wp-image-5985\" src=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/10\/servo360mg995.jpg\" sizes=\"(max-width: 469px) 100vw, 469px\" srcset=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/10\/servo360mg995.jpg 640w, http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/10\/servo360mg995-300x169.jpg 300w, http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/10\/servo360mg995-600x338.jpg 600w\" alt=\"\" width=\"469\" height=\"264\" \/><\/a><\/p>\n<p><span data-contrast=\"none\">The mg995 \u2013 360o, is a continuous rotation servo (360o) is a variant of normal servos, in which\u00a0<\/span>the signal we send to the servo controls the rotation<span data-contrast=\"none\">speed, rather than the angular position as happens in conventional servos.<\/span><\/p>\n<p><span data-contrast=\"none\">This continuous rotation servo is an easy way to get a motor with speed control, without having to add additional devices such as controllers or encoders as in the case of DC motors or step by step, since the control is integrated into the servo itself.<\/span><\/p>\n<p><strong>Specifications<\/strong><\/p>\n<ul>\n<li data-aria-posinset=\"1\" data-aria-level=\"1\"><span data-contrast=\"none\">Gear material: Metal<\/span><\/li>\n<li data-aria-posinset=\"2\" data-aria-level=\"1\"><span data-contrast=\"none\">Turning Range: 360<\/span><\/li>\n<li data-aria-posinset=\"3\" data-aria-level=\"1\"><span data-contrast=\"none\">Operating voltage: 3 V to 7.2 V<\/span><\/li>\n<li data-aria-posinset=\"4\" data-aria-level=\"1\"><span data-contrast=\"none\">Operating speed without load : 0.17 seconds \/ 60 degrees (4.8V); 0.13 seconds \/ 60 degrees (6.0V)<\/span><\/li>\n<li data-aria-posinset=\"5\" data-aria-level=\"1\"><span data-contrast=\"none\">Torque: 15 kg \/ cm<\/span><\/li>\n<li data-aria-posinset=\"6\" data-aria-level=\"1\"><span data-contrast=\"none\">Working temperature: -30oC to 60oC<\/span><\/li>\n<li data-aria-posinset=\"7\" data-aria-level=\"1\"><span data-contrast=\"none\">Cable length: 310 mm<\/span><\/li>\n<li data-aria-posinset=\"8\" data-aria-level=\"1\"><span data-contrast=\"none\">Weight: 55g<\/span><\/li>\n<li data-aria-posinset=\"9\" data-aria-level=\"1\"><span data-contrast=\"none\">Dimensions: 40.7 mm x 19.7 mm x 42.9 mm<\/span><\/li>\n<\/ul>\n<p><strong>Includes:<\/strong><\/p>\n<ul>\n<li data-aria-posinset=\"1\" data-aria-level=\"1\"><span data-contrast=\"auto\">1 Servomotor Tower Pro Mg995 continuous rotation.<\/span><\/li>\n<li data-aria-posinset=\"2\" data-aria-level=\"1\"><span data-contrast=\"auto\">3 Screws for assembly.<\/span><\/li>\n<li data-aria-posinset=\"3\" data-aria-level=\"1\"><span data-contrast=\"auto\">3\u00a0Coples\u00a0(horns).\u00a0<\/span><\/li>\n<\/ul>\n<p class=\"ui-pdp-title\">Ky-033 Line Detector\/Follower Sensor Module<\/p>\n<p><a href=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/10\/tcrt5000l.png\"><img loading=\"lazy\" class=\"alignnone wp-image-5987\" src=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/10\/tcrt5000l.png\" sizes=\"(max-width: 339px) 100vw, 339px\" srcset=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/10\/tcrt5000l.png 730w, http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/10\/tcrt5000l-300x296.png 300w, http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/10\/tcrt5000l-600x592.png 600w\" alt=\"\" width=\"339\" height=\"334\" \/><\/a><\/p>\n<p class=\"ui-pdp-description__title\"><strong>Description<\/strong><\/p>\n<p class=\"ui-pdp-description__content\">KY-033 LINE DETECTOR\/FOLLOWER SENSOR MODULE<\/p>\n<p>This module is specially designed for easy, fast and accurate line detection, making it easy for you to assemble line tracker robots. This module is compatible with Arduino as well as any Microcontroller that has a 5V pin.<\/p>\n<p>Operating voltage: 3.3 \u2013 5 VDC<\/p>\n<p>Working current:<\/p>\n<p>20mA Detection distance:<\/p>\n<p>2-40mm Output signal: TTL level<\/p>\n<p>(low level there is an obstacle, High level with obstacle) Sensitivity setting: potentiometer.<br \/>\nIC Comparator:<\/p>\n<p>LM393 IR Sensor:<\/p>\n<p>TCRT5000L Operating Temperature: -10<\/p>\n<p>to +50oC Dimensions:<\/p>\n<p>42x11x11mm Effective Angle: 35o<\/p>\n<p><strong>Source<\/strong><\/p>\n<pre class=\"lang:arduino decode:true \" title=\"Source Font\">#include &lt;Servo.h&gt; \r\nServo myservo;\r\nconst int sensorPin = 12;\/\/Pin del sensor infrarrojo optico refectivo\r\nint value = 0;\r\nvoid setup() {\r\nmyservo.attach(23);\/\/Pin para el servo motor MG995 de 360 grados\r\npinMode(sensorPin, INPUT);  \/\/definir pin como entrada\r\n}\r\nvoid loop() {\r\n  \r\n  value = digitalRead(sensorPin );  \/\/lectura digital de pin del sensor infrarrojo\r\n  if (value == LOW) {\/\/Si detecta un objeto cerca se cumple esta funci\u00f3n\r\n    actuador();\/\/LLama ala funci\u00f3n actuador  \r\n  }\r\n}\r\nvoid actuador(){\r\nmyservo.write(180);\/\/Baja el actuador lineal\r\ndelay(700);\r\nmyservo.write(90);\/\/Detiene al servo motor \r\ndelay(600);\r\nmyservo.write(0);\/\/Sube el actuador lineal\r\ndelay(500);\r\nmyservo.write(90);\/\/Detiene al servo motor\r\ndelay(2000);\/\/Esperamos 2 segundos para que no se vuelva a ctivar el servomotor inmediatamente\r\n }<\/pre>\n<p>&nbsp;<\/p>\n<p>This code can be used with any Arduino, but we should be careful to modify the use of pin 23 (with arduino mega no problem) by any Arduino pin from 2 to 13 (minus 12 because it is used for the reflective optical sensor), since for example in Arduino one or nano pin 23 does not exist.<\/p>\n<p>The servo to use for this project is 360 degrees, so it rotates complements by putting a value of 180o, in a direction -myservo.write(180)-, we stop it with -myservo.write(90)- and we do turn it in the opposite direction with -myservo.write(90)-, that is why it is very important to wait a short time with delay for the linear actuator, to move to the desired position.<\/p>\n<p><strong>ST files<\/strong><\/p>\n<p><a href=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/10\/Archivos-STL.zip\">STL files<\/a><\/p>\n<p>Or you can download them from the original car, but the file above includes a modification to one STL files that look at the video.<\/p>\n<p><a href=\"https:\/\/www.thingiverse.com\/thing:3334797\">https:\/\/www.thingiverse.com\/thing:3334797<\/a><\/p>\n<p><strong>Gerber file<\/strong><\/p>\n<p><a href=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/10\/Gerber_PCB__ESP32.zip\">Gerber_PCB__ESP32<\/a><\/p>\n<p><b>Servo<\/b>\u00a0<strong>library compatible with esp32<\/strong><\/p>\n<p>To control the motor, you can simply use the PWM capabilities of the ESP32 by sending a 50Hz signal with the appropriate pulse width. Or you can use a library to make this task much simpler.<\/p>\n<p><a href=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/04\/ServoESP32-master.zip\">ServoESP32-master<\/a><\/p>\n<p>As you can see, this is a very simple project to assemble, but they will have to have a 3D printer or make printing parts in order to assemble it. The subtraction of the components can be obtained in electronics stores, and they can even assemble everything in a protoboard, without having to do the PCB.<\/p>\n<hr \/>\n<p>SUBSCRIBE TO OUR NEWSLETTERS, RECEIVE IN YOUR EMAIL THE MOST OUTSTANDING NEWS, JUST BY ENTERING YOUR EMAIL<\/p>\n<p style=\"text-align: left;\">[wysija_form id=&#8221;1&#8243;]<\/p>\n<hr \/>\n<p style=\"text-align: left;\"><div class=\"page-sidebar widget\" id=\"donation_buttons\"><form action=\"https:\/\/www.paypal.com\/cgi-bin\/webscr\" method=\"post\" target=\"_blank\" ><input type=\"hidden\" name=\"business\" value=\"donacion@rogerbit.com\"><input type=\"hidden\" name=\"bn\" value=\"mbjtechnolabs_SP\"><input type=\"hidden\" name=\"cmd\" value=\"_donations\"><input type=\"hidden\" name=\"item_name\" value=\"Ayuda a RogerBit.com\"><input type=\"hidden\" name=\"item_number\" value=\"www.rogerbit.com\"><input type=\"hidden\" class=\"set_donation_button_amount\" name=\"amount\" value=\"1\"><table ><tbody><tr><td><label for=\"rogerBit necesita de tu ayuda para seguir existiendo :-)\">rogerBit necesita de tu ayuda para seguir existiendo :-)<\/label><\/td><\/tr><\/tbody><\/table><table ><tbody><tr><td><input style=\"margin-top:10px;\" type=\"image\" name=\"submit\" border=\"0\" src=\"https:\/\/www.paypal.com\/en_US\/i\/btn\/btn_donateCC_LG.gif\" alt=\"PayPal - The safer, easier way to pay online\"><\/td><\/tr><\/tbody><\/table><input type=\"hidden\" name=\"currency_code\" value=\"USD\"><input type=\"hidden\" name=\"notify_url\" value=\"https:\/\/rogerbit.com\/wprb\/?Donation_Button&#038;action=ipn_handler\"><\/form><\/div><\/p>\n<hr \/>\n<p><strong>RECOMMENDED PROJECT<\/strong><\/p>\n<p><iframe loading=\"lazy\" width=\"1160\" height=\"653\" src=\"https:\/\/www.youtube.com\/embed\/vxBG_bew2Eg?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>In tutorial we will see how to make a complete prototype, to assemble an automatic gel alcohol dispenser with esp32, it will include step-by-step assembly, electronic circuit and also the source code explained all step by step. Art\u00edculo en espa\u00f1ol en &#8211;&gt;\u00a0http:\/\/rogerbit.com\/wprb\/2020\/10\/dispensador-de-alcohol-en-gel-automatico-con-esp32\/ Maybe you might be interested in projects in arduino, pic, robotics, telecommunications, subscribe [&hellip;]<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":5989,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[648],"tags":[],"_links":{"self":[{"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/posts\/5999"}],"collection":[{"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/comments?post=5999"}],"version-history":[{"count":3,"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/posts\/5999\/revisions"}],"predecessor-version":[{"id":6006,"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/posts\/5999\/revisions\/6006"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/media\/5989"}],"wp:attachment":[{"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/media?parent=5999"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/categories?post=5999"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/tags?post=5999"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}