Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
#7 Lectura Digital [INPUT - INPUT_PULLUP - digitalRead] - Curso Arduino  💻
Play lesson

Curso Arduino - Principiante - #7 Lectura Digital [INPUT - INPUT_PULLUP - digitalRead] - Curso Arduino 💻

5.0 (1)
19 learners

What you'll learn

This course includes

  • 13.5 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Full Transcript

Aviso: Tuve problemas de sincronización con la grabación de la pantalla y la grabación de mi, creo que mi notebook está muy viejo, perdón :'( Séptima lección de este curso gratuito, en el cual nos adentraremos en el hardware que nos ayudará a hacer lecturas digitales con pulsadores, en conjunto con la instrucción/función digitalRead que nos permitirá extraer el valor del estado lógico del pin que queramos. NOTA: En el arduino nano incluso se pueden usar las entradas analógicas como entradas digitales (excepto el A6 y A7). No olvides dejar un comentario si hay algo que no te queda claro, es normal, ya que esta materia incluye muchos conceptos técnicos propios de ella, y además conocimientos básicos de electrónica digital. *** Código de práctica: //################################### void setup() { Serial.begin(9600); pinMode(10, INPUT); pinMode(2, OUTPUT); } void loop() { int estado = digitalRead(10); if(estado == 1){ digitalWrite(2, HIGH); delay(250); digitalWrite(2, LOW); delay(250); } if(estado == 0){ digitalWrite(2, HIGH); } } //################################### *** Simulación: http://lushprojects.com/circuitjs/circuitjs.html?cct=$+1+0.000005+10.20027730826997+65+5+43%0Aw+224+96+224+352+0%0Aw+224+352+64+352+0%0Aw+224+96+64+96+0%0Ax+130+124+212+127+4+24+Arduino%0AM+176+304+128+304+6+2%0Ax+71+306+111+309+4+12+registro%0Aw+176+304+288+304+0%0As+176+304+176+224+0+1+false%0AR+176+176+176+144+0+0+40+5+0+0+0.5%0Ax+69+269+158+272+4+12+INPUT_PULLUP%0Ar+176+176+176+224+0+10000%0Ax+231+295+261+298+4+14+PINx%0AR+384+128+384+96+0+0+40+5+0+0+0.5%0Ag+384+320+384+336+0%0Ar+384+128+384+224+0+10000%0As+384+320+384+224+0+1+false%0Aw+384+224+288+224+0%0Aw+288+224+288+304+0%0Aw+864+224+864+304+0%0Aw+960+224+864+224+0%0As+960+224+960+128+0+1+false%0Ar+960+224+960+320+0+10000%0Ag+960+320+960+336+0%0AR+960+128+960+96+0+0+40+5+0+0+0.5%0Ax+807+295+837+298+4+14+PINx%0Ar+752+176+752+224+0+10000%0Ax+645+269+734+272+4+12+INPUT_PULLUP%0AR+752+176+752+144+0+0+40+5+0+0+0.5%0As+752+304+752+224+0+1+false%0Aw+752+304+864+304+0%0Ax+647+306+687+309+4+12+registro%0AM+752+304+704+304+6+2%0Ax+706+124+788+127+4+24+Arduino%0Aw+800+96+640+96+0%0Aw+800+352+640+352+0%0Aw+800+96+800+352+0%0Ax+297+64+473+67+4+18+PULL_UP%5CsRESISTOR%0Ax+851+61+1059+64+4+18+PULL_DOWN%5CsRESISTOR%0Ax+-361+295+-331+298+4+14+PINx%0Ar+-416+176+-416+224+0+10000%0Ax+-523+269+-434+272+4+12+INPUT_PULLUP%0AR+-416+176+-416+144+0+0+40+5+0+0+0.5%0As+-416+304+-416+224+0+1+false%0Aw+-416+304+-304+304+0%0Ax+-521+306+-481+309+4+12+registro%0AM+-416+304+-464+304+6+2%0Ax+-462+124+-380+127+4+24+Arduino%0Aw+-368+96+-528+96+0%0Aw+-368+352+-528+352+0%0Aw+-368+96+-368+352+0%0As+-304+240+-192+240+0+1+false%0AR+-192+240+-192+192+0+0+40+5+0+0+0.5%0Aw+-304+240+-304+304+0%0A Gracias por la música a: - MBB - Joakim Karud - Lensko Music Credit: LAKEY INSPIRED Track Name: "*Mix Lo-Fi" Music By: LAKEY INSPIRED @ https://soundcloud.com/lakeyinspired Official "LAKEY INSPIRED" YouTube Channel HERE - https://www.youtube.com/channel/UCOmy8wuTpC95lefU5d1dt2Q ¿Donde encontrarme en internet? https://cefuve.com https://cefuve.com/instagram https://cefuve.com/facebook https://cefuve.com/youtube Donaciones: https://www.paypal.com/paypalme/cefuve 𝘊𝘰𝘱𝘺𝘳𝘪𝘨𝘩𝘵 2020 - 𝘤𝘦𝘧𝘶𝘷𝘦 𝘦𝘭𝘦𝘤𝘵𝘳𝘰𝘯𝘪𝘤𝘴

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere