{"id":224,"date":"2015-08-14T02:59:25","date_gmt":"2015-08-14T02:59:25","guid":{"rendered":"http:\/\/rogerbit.com\/wprb\/?p=224"},"modified":"2021-12-25T15:34:23","modified_gmt":"2021-12-25T15:34:23","slug":"abriendo-aplicaciones-de-windows-con-dos-handy-baofeng-uv-5r-mt8870de-y-arduino-mini-pro","status":"publish","type":"post","link":"https:\/\/rogerbit.com\/wprb\/2015\/08\/abriendo-aplicaciones-de-windows-con-dos-handy-baofeng-uv-5r-mt8870de-y-arduino-mini-pro\/","title":{"rendered":"Abriendo aplicaciones de windows con dos handy baofeng uv-5r mt8870de y arduino mini pro"},"content":{"rendered":"<p><iframe loading=\"lazy\" title=\"\u2705 Abriendo aplicaciones de windows con dos handy baofeng uv-5r mt8870de y arduino mini pro\" width=\"1160\" height=\"653\" src=\"https:\/\/www.youtube.com\/embed\/CgAFhyG9FA8?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n<p>Suscribete en mi canal de youtube en https:\/\/www.youtube.com\/c\/Carlosvolt<br \/>\nSeguinos en https:\/\/www.facebook.com\/groups\/407445649459365<br \/>\nBuenos d\u00edas amigos de youtube, hoy les traigo un video bastante interesante. Les muestro como mediante dos Handy uv-5r un circuito integrado mt8870de un arduino mini pro y una aplicaci\u00f3n de visual basic 6, se puede abrir aplicaciones de windows en forma remota, apretando las distintas teclas del teclado num\u00e9rico del handy, seria algo as\u00ed como un control remoto de larga distancia, si bien en el ejemplo que les muestro abre algunas que otras aplicaciones, este proyecto es f\u00e1cilmente adaptable para otro tipo de usos mas complejos como lo son el automatismo la seguridad y la rob\u00f3tica, etc.<\/p>\n<p>C\u00f3digo fuente<\/p>\n<p>Descargar&#8211;&gt; <a href=\"https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2015\/08\/BotonTono.rar\">BotonTono<\/a><\/p>\n<p>const int Pin2 = 2;<br \/>\nconst int Pin3 = 3;<br \/>\nconst int Pin4 = 4;<br \/>\nconst int Pin5 = 5;<br \/>\nconst int Pin6 = 6;<\/p>\n<p>int EstadoPin2 = 0;<br \/>\nint EstadoPin3 = 0;<br \/>\nint EstadoPin4 = 0;<br \/>\nint EstadoPin5 = 0;<br \/>\nint EstadoPin6 = 0;<br \/>\nvoid setup() {<br \/>\nSerial.begin(9600);<\/p>\n<p>\/\/ initialize the pushbutton pin as an input:<br \/>\npinMode(Pin2, INPUT);<br \/>\npinMode(Pin3, INPUT);<br \/>\npinMode(Pin4, INPUT);<br \/>\npinMode(Pin5, INPUT);<br \/>\npinMode(Pin6, INPUT);<br \/>\n}<\/p>\n<p>void loop() {<br \/>\n\/\/ read the state of the pushbutton value:<br \/>\nEstadoPin2 = digitalRead(Pin2);<br \/>\nEstadoPin3 = digitalRead(Pin3);<br \/>\nEstadoPin4 = digitalRead(Pin4);<br \/>\nEstadoPin5 = digitalRead(Pin5);<br \/>\nEstadoPin6 = digitalRead(Pin6);<br \/>\ndelay(110);<br \/>\n\/\/Boton 1<br \/>\nif (EstadoPin2 == HIGH &amp;&amp; EstadoPin3 == LOW &amp;&amp; EstadoPin4 == LOW &amp;&amp; EstadoPin5 == LOW &amp;&amp; EstadoPin6 == HIGH ) {<\/p>\n<p>Serial.print(&#8220;1&#8221;);<br \/>\nwhile(EstadoPin2 == HIGH &amp;&amp; EstadoPin3 == LOW &amp;&amp; EstadoPin4 == LOW &amp;&amp; EstadoPin5 == LOW &amp;&amp; EstadoPin6 == HIGH){<br \/>\nEstadoPin2 = digitalRead(Pin2);<br \/>\nEstadoPin3 = digitalRead(Pin3);<br \/>\nEstadoPin4 = digitalRead(Pin4);<br \/>\nEstadoPin5 = digitalRead(Pin5);<br \/>\nEstadoPin6 = digitalRead(Pin6);<br \/>\ndelay(110);<br \/>\n}<br \/>\n}<br \/>\n\/\/Boton 2<br \/>\nif (EstadoPin2 == LOW &amp;&amp; EstadoPin3 == HIGH &amp;&amp; EstadoPin4 == LOW &amp;&amp; EstadoPin5 == LOW &amp;&amp; EstadoPin6 == HIGH ) {<\/p>\n<p>Serial.print(&#8220;2&#8221;);<br \/>\nwhile(EstadoPin2 == LOW &amp;&amp; EstadoPin3 == HIGH &amp;&amp; EstadoPin4 == LOW &amp;&amp; EstadoPin5 == LOW &amp;&amp; EstadoPin6 == HIGH ){<br \/>\nEstadoPin2 = digitalRead(Pin2);<br \/>\nEstadoPin3 = digitalRead(Pin3);<br \/>\nEstadoPin4 = digitalRead(Pin4);<br \/>\nEstadoPin5 = digitalRead(Pin5);<br \/>\nEstadoPin6 = digitalRead(Pin6);<br \/>\ndelay(110);<br \/>\n}<br \/>\n}<br \/>\n\/\/Boton 3 11001<br \/>\nif (EstadoPin2 == HIGH &amp;&amp; EstadoPin3 == HIGH &amp;&amp; EstadoPin4 == LOW &amp;&amp; EstadoPin5 == LOW &amp;&amp; EstadoPin6 == HIGH ) {<\/p>\n<p>Serial.print(&#8220;3&#8221;);<br \/>\nwhile(EstadoPin2 == HIGH &amp;&amp; EstadoPin3 == HIGH &amp;&amp; EstadoPin4 == LOW &amp;&amp; EstadoPin5 == LOW &amp;&amp; EstadoPin6 == HIGH ){<br \/>\nEstadoPin2 = digitalRead(Pin2);<br \/>\nEstadoPin3 = digitalRead(Pin3);<br \/>\nEstadoPin4 = digitalRead(Pin4);<br \/>\nEstadoPin5 = digitalRead(Pin5);<br \/>\nEstadoPin6 = digitalRead(Pin6);<br \/>\ndelay(110);<br \/>\n}<br \/>\n}<br \/>\n\/\/Boton 4 00101<br \/>\nif (EstadoPin2 == LOW &amp;&amp; EstadoPin3 == LOW &amp;&amp; EstadoPin4 == HIGH &amp;&amp; EstadoPin5 == LOW &amp;&amp; EstadoPin6 == HIGH ) {<\/p>\n<p>Serial.print(&#8220;4&#8221;);<br \/>\nwhile(EstadoPin2 == LOW &amp;&amp; EstadoPin3 == LOW &amp;&amp; EstadoPin4 == HIGH &amp;&amp; EstadoPin5 == LOW &amp;&amp; EstadoPin6 == HIGH ){<br \/>\nEstadoPin2 = digitalRead(Pin2);<br \/>\nEstadoPin3 = digitalRead(Pin3);<br \/>\nEstadoPin4 = digitalRead(Pin4);<br \/>\nEstadoPin5 = digitalRead(Pin5);<br \/>\nEstadoPin6 = digitalRead(Pin6);<br \/>\ndelay(110);<br \/>\n}<br \/>\n}<br \/>\n\/\/Boton 5 10101<br \/>\nif (EstadoPin2 == HIGH &amp;&amp; EstadoPin3 == LOW &amp;&amp; EstadoPin4 == HIGH &amp;&amp; EstadoPin5 == LOW &amp;&amp; EstadoPin6 == HIGH ) {<\/p>\n<p>Serial.print(&#8220;5&#8221;);<br \/>\nwhile(EstadoPin2 == HIGH &amp;&amp; EstadoPin3 == LOW &amp;&amp; EstadoPin4 == HIGH &amp;&amp; EstadoPin5 == LOW &amp;&amp; EstadoPin6 == HIGH ){<br \/>\nEstadoPin2 = digitalRead(Pin2);<br \/>\nEstadoPin3 = digitalRead(Pin3);<br \/>\nEstadoPin4 = digitalRead(Pin4);<br \/>\nEstadoPin5 = digitalRead(Pin5);<br \/>\nEstadoPin6 = digitalRead(Pin6);<br \/>\ndelay(110);<br \/>\n}<br \/>\n}<br \/>\n\/\/Boton 6 01101<br \/>\nif (EstadoPin2 == LOW &amp;&amp; EstadoPin3 == HIGH &amp;&amp; EstadoPin4 == HIGH &amp;&amp; EstadoPin5 == LOW &amp;&amp; EstadoPin6 == HIGH ) {<\/p>\n<p>Serial.print(&#8220;6&#8221;);<br \/>\nwhile(EstadoPin2 == LOW &amp;&amp; EstadoPin3 == HIGH &amp;&amp; EstadoPin4 == HIGH &amp;&amp; EstadoPin5 == LOW &amp;&amp; EstadoPin6 == HIGH ){<br \/>\nEstadoPin2 = digitalRead(Pin2);<br \/>\nEstadoPin3 = digitalRead(Pin3);<br \/>\nEstadoPin4 = digitalRead(Pin4);<br \/>\nEstadoPin5 = digitalRead(Pin5);<br \/>\nEstadoPin6 = digitalRead(Pin6);<br \/>\ndelay(110);<br \/>\n}<br \/>\n}<br \/>\n\/\/Boton 7 11101<br \/>\nif (EstadoPin2 == HIGH &amp;&amp; EstadoPin3 == HIGH &amp;&amp; EstadoPin4 == HIGH &amp;&amp; EstadoPin5 == LOW &amp;&amp; EstadoPin6 == HIGH ) {<\/p>\n<p>Serial.print(&#8220;7&#8221;);<br \/>\nwhile(EstadoPin2 == HIGH &amp;&amp; EstadoPin3 == HIGH &amp;&amp; EstadoPin4 == HIGH &amp;&amp; EstadoPin5 == LOW &amp;&amp; EstadoPin6 == HIGH ){<br \/>\nEstadoPin2 = digitalRead(Pin2);<br \/>\nEstadoPin3 = digitalRead(Pin3);<br \/>\nEstadoPin4 = digitalRead(Pin4);<br \/>\nEstadoPin5 = digitalRead(Pin5);<br \/>\nEstadoPin6 = digitalRead(Pin6);<br \/>\ndelay(110);<br \/>\n}<br \/>\n}<br \/>\n\/\/Boton 8 00011<br \/>\nif (EstadoPin2 == LOW &amp;&amp; EstadoPin3 == LOW &amp;&amp; EstadoPin4 == LOW &amp;&amp; EstadoPin5 == HIGH &amp;&amp; EstadoPin6 == HIGH ) {<\/p>\n<p>Serial.print(&#8220;8&#8221;);<br \/>\nwhile(EstadoPin2 == LOW &amp;&amp; EstadoPin3 == LOW &amp;&amp; EstadoPin4 == LOW &amp;&amp; EstadoPin5 == HIGH &amp;&amp; EstadoPin6 == HIGH ){<br \/>\nEstadoPin2 = digitalRead(Pin2);<br \/>\nEstadoPin3 = digitalRead(Pin3);<br \/>\nEstadoPin4 = digitalRead(Pin4);<br \/>\nEstadoPin5 = digitalRead(Pin5);<br \/>\nEstadoPin6 = digitalRead(Pin6);<br \/>\ndelay(110);<br \/>\n}<br \/>\n}<br \/>\n\/\/Boton 9 10011<br \/>\nif (EstadoPin2 == HIGH &amp;&amp; EstadoPin3 == LOW &amp;&amp; EstadoPin4 == LOW &amp;&amp; EstadoPin5 == HIGH &amp;&amp; EstadoPin6 == HIGH ) {<\/p>\n<p>Serial.print(&#8220;9&#8221;);<br \/>\nwhile(EstadoPin2 == HIGH &amp;&amp; EstadoPin3 == LOW &amp;&amp; EstadoPin4 == LOW &amp;&amp; EstadoPin5 == HIGH &amp;&amp; EstadoPin6 == HIGH ){<br \/>\nEstadoPin2 = digitalRead(Pin2);<br \/>\nEstadoPin3 = digitalRead(Pin3);<br \/>\nEstadoPin4 = digitalRead(Pin4);<br \/>\nEstadoPin5 = digitalRead(Pin5);<br \/>\nEstadoPin6 = digitalRead(Pin6);<br \/>\ndelay(110);<br \/>\n}<br \/>\n}<br \/>\n\/\/Boton 0 01011<br \/>\nif (EstadoPin2 == LOW &amp;&amp; EstadoPin3 == HIGH &amp;&amp; EstadoPin4 == LOW &amp;&amp; EstadoPin5 == HIGH &amp;&amp; EstadoPin6 == HIGH ) {<\/p>\n<p>Serial.print(&#8220;0&#8221;);<br \/>\nwhile(EstadoPin2 == LOW &amp;&amp; EstadoPin3 == HIGH &amp;&amp; EstadoPin4 == LOW &amp;&amp; EstadoPin5 == HIGH &amp;&amp; EstadoPin6 == HIGH ){<br \/>\nEstadoPin2 = digitalRead(Pin2);<br \/>\nEstadoPin3 = digitalRead(Pin3);<br \/>\nEstadoPin4 = digitalRead(Pin4);<br \/>\nEstadoPin5 = digitalRead(Pin5);<br \/>\nEstadoPin6 = digitalRead(Pin6);<br \/>\ndelay(110);<br \/>\n}<br \/>\n}<br \/>\n\/\/Boton * 11011<br \/>\nif (EstadoPin2 == HIGH &amp;&amp; EstadoPin3 == HIGH &amp;&amp; EstadoPin4 == LOW &amp;&amp; EstadoPin5 == HIGH &amp;&amp; EstadoPin6 == HIGH ) {<\/p>\n<p>Serial.print(&#8220;*&#8221;);<br \/>\nwhile(EstadoPin2 == HIGH &amp;&amp; EstadoPin3 == HIGH &amp;&amp; EstadoPin4 == LOW &amp;&amp; EstadoPin5 == HIGH &amp;&amp; EstadoPin6 == HIGH ){<br \/>\nEstadoPin2 = digitalRead(Pin2);<br \/>\nEstadoPin3 = digitalRead(Pin3);<br \/>\nEstadoPin4 = digitalRead(Pin4);<br \/>\nEstadoPin5 = digitalRead(Pin5);<br \/>\nEstadoPin6 = digitalRead(Pin6);<br \/>\ndelay(110);<br \/>\n}<br \/>\n}<br \/>\n\/\/Boton # 00111<br \/>\nif (EstadoPin2 == LOW &amp;&amp; EstadoPin3 == LOW &amp;&amp; EstadoPin4 == HIGH &amp;&amp; EstadoPin5 == HIGH &amp;&amp; EstadoPin6 == HIGH ) {<\/p>\n<p>Serial.print(&#8220;#&#8221;);<br \/>\nwhile(EstadoPin2 == LOW &amp;&amp; EstadoPin3 == LOW &amp;&amp; EstadoPin4 == HIGH &amp;&amp; EstadoPin5 == HIGH &amp;&amp; EstadoPin6 == HIGH ){<br \/>\nEstadoPin2 = digitalRead(Pin2);<br \/>\nEstadoPin3 = digitalRead(Pin3);<br \/>\nEstadoPin4 = digitalRead(Pin4);<br \/>\nEstadoPin5 = digitalRead(Pin5);<br \/>\nEstadoPin6 = digitalRead(Pin6);<br \/>\ndelay(110);<br \/>\n}<br \/>\n}<br \/>\n\/\/Boton MENU 10111<br \/>\nif (EstadoPin2 == HIGH &amp;&amp; EstadoPin3 == LOW &amp;&amp; EstadoPin4 == HIGH &amp;&amp; EstadoPin5 == HIGH &amp;&amp; EstadoPin6 == HIGH ) {<\/p>\n<p>Serial.print(&#8220;m&#8221;);<br \/>\nwhile(EstadoPin2 == HIGH &amp;&amp; EstadoPin3 == LOW &amp;&amp; EstadoPin4 == HIGH &amp;&amp; EstadoPin5 == HIGH &amp;&amp; EstadoPin6 == HIGH ){<br \/>\nEstadoPin2 = digitalRead(Pin2);<br \/>\nEstadoPin3 = digitalRead(Pin3);<br \/>\nEstadoPin4 = digitalRead(Pin4);<br \/>\nEstadoPin5 = digitalRead(Pin5);<br \/>\nEstadoPin6 = digitalRead(Pin6);<br \/>\ndelay(110);<br \/>\n}<br \/>\n}<br \/>\n\/\/Boton ALTO 01111<br \/>\nif (EstadoPin2 == LOW &amp;&amp; EstadoPin3 == HIGH &amp;&amp; EstadoPin4 == HIGH &amp;&amp; EstadoPin5 == HIGH &amp;&amp; EstadoPin6 == HIGH ) {<\/p>\n<p>Serial.print(&#8220;a&#8221;);<br \/>\nwhile(EstadoPin2 == LOW &amp;&amp; EstadoPin3 == HIGH &amp;&amp; EstadoPin4 == HIGH &amp;&amp; EstadoPin5 == HIGH &amp;&amp; EstadoPin6 == HIGH ){<br \/>\nEstadoPin2 = digitalRead(Pin2);<br \/>\nEstadoPin3 = digitalRead(Pin3);<br \/>\nEstadoPin4 = digitalRead(Pin4);<br \/>\nEstadoPin5 = digitalRead(Pin5);<br \/>\nEstadoPin6 = digitalRead(Pin6);<br \/>\ndelay(110);<br \/>\n}<br \/>\n}<br \/>\n\/\/Boton BAJO 11111<br \/>\nif (EstadoPin2 == HIGH &amp;&amp; EstadoPin3 == HIGH &amp;&amp; EstadoPin4 == HIGH &amp;&amp; EstadoPin5 == HIGH &amp;&amp; EstadoPin6 == HIGH ) {<\/p>\n<p>Serial.print(&#8220;b&#8221;);<br \/>\nwhile(EstadoPin2 == HIGH &amp;&amp; EstadoPin3 == HIGH &amp;&amp; EstadoPin4 == HIGH &amp;&amp; EstadoPin5 == HIGH &amp;&amp; EstadoPin6 == HIGH ){<br \/>\nEstadoPin2 = digitalRead(Pin2);<br \/>\nEstadoPin3 = digitalRead(Pin3);<br \/>\nEstadoPin4 = digitalRead(Pin4);<br \/>\nEstadoPin5 = digitalRead(Pin5);<br \/>\nEstadoPin6 = digitalRead(Pin6);<br \/>\ndelay(110);<br \/>\n}<br \/>\n}<br \/>\n\/\/Boton EXIT 00001<br \/>\nif (EstadoPin2 == LOW &amp;&amp; EstadoPin3 == LOW &amp;&amp; EstadoPin4 == LOW &amp;&amp; EstadoPin5 == LOW &amp;&amp; EstadoPin6 == HIGH ) {<\/p>\n<p>Serial.print(&#8220;e&#8221;);<br \/>\nwhile(EstadoPin2 == LOW &amp;&amp; EstadoPin3 == LOW &amp;&amp; EstadoPin4 == LOW &amp;&amp; EstadoPin5 == LOW &amp;&amp; EstadoPin6 == HIGH ){<br \/>\nEstadoPin2 = digitalRead(Pin2);<br \/>\nEstadoPin3 = digitalRead(Pin3);<br \/>\nEstadoPin4 = digitalRead(Pin4);<br \/>\nEstadoPin5 = digitalRead(Pin5);<br \/>\nEstadoPin6 = digitalRead(Pin6);<br \/>\ndelay(110);<br \/>\n}<br \/>\n}<br \/>\n}<\/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>Suscribete en mi canal de youtube en https:\/\/www.youtube.com\/c\/Carlosvolt Seguinos en https:\/\/www.facebook.com\/groups\/407445649459365 Buenos d\u00edas amigos de youtube, hoy les traigo un video bastante interesante. Les muestro como mediante dos Handy uv-5r un circuito integrado mt8870de un arduino mini pro y una aplicaci\u00f3n de visual basic 6, se puede abrir aplicaciones de windows en forma remota, apretando [&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":225,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/posts\/224"}],"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=224"}],"version-history":[{"count":5,"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/posts\/224\/revisions"}],"predecessor-version":[{"id":227,"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/posts\/224\/revisions\/227"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/media\/225"}],"wp:attachment":[{"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/media?parent=224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/categories?post=224"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/tags?post=224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}