Deprecated: Creation of dynamic property Joomla\CMS\Document\HtmlDocument::$helix3 is deprecated in /srv/vhost/iesjuanlopezmorillas.es/home/html/templates/flex/index.php on line 30
Resistencias pull-up/pull down - IES Juan López Morillas

Deprecated: Creation of dynamic property Helix3FeatureContact::$position is deprecated in /srv/vhost/iesjuanlopezmorillas.es/home/html/templates/flex/features/contact.php on line 17

Deprecated: Creation of dynamic property Helix3FeatureFooter::$position is deprecated in /srv/vhost/iesjuanlopezmorillas.es/home/html/templates/flex/features/footer.php on line 17

Deprecated: Creation of dynamic property Helix3FeatureFooter::$load_pos is deprecated in /srv/vhost/iesjuanlopezmorillas.es/home/html/templates/flex/features/footer.php on line 18

Deprecated: Creation of dynamic property Helix3FeatureLogo::$load_pos is deprecated in /srv/vhost/iesjuanlopezmorillas.es/home/html/templates/flex/features/logo.php on line 22

Deprecated: Creation of dynamic property Helix3FeatureMenu::$position is deprecated in /srv/vhost/iesjuanlopezmorillas.es/home/html/templates/flex/features/menu.php on line 19

Deprecated: Creation of dynamic property Helix3FeaturePreloader::$position is deprecated in /srv/vhost/iesjuanlopezmorillas.es/home/html/templates/flex/features/preloader.php on line 20

Deprecated: Creation of dynamic property Helix3FeatureSocial::$load_pos is deprecated in /srv/vhost/iesjuanlopezmorillas.es/home/html/templates/flex/features/social.php on line 19

Deprecated: Creation of dynamic property Helix3FeatureTitle::$position is deprecated in /srv/vhost/iesjuanlopezmorillas.es/home/html/templates/flex/features/title.php on line 22

Deprecated: Creation of dynamic property Joomla\CMS\Layout\FileLayout::$helix3 is deprecated in /srv/vhost/iesjuanlopezmorillas.es/home/html/templates/flex/html/layouts/helix3/frontend/generate.php on line 25

Deprecated: Creation of dynamic property Joomla\CMS\Layout\FileLayout::$helix3 is deprecated in /srv/vhost/iesjuanlopezmorillas.es/home/html/templates/flex/html/layouts/helix3/frontend/modules.php on line 13

Deprecated: Creation of dynamic property Joomla\CMS\Layout\FileLayout::$helix3 is deprecated in /srv/vhost/iesjuanlopezmorillas.es/home/html/templates/flex/html/layouts/helix3/frontend/modules.php on line 13
  • 953779710
  • Esta dirección de correo electrónico está siendo protegida contra los robots de spam. Necesita tener JavaScript habilitado para poder verlo.

Deprecated: Creation of dynamic property Joomla\CMS\Layout\FileLayout::$helix3 is deprecated in /srv/vhost/iesjuanlopezmorillas.es/home/html/templates/flex/html/layouts/helix3/frontend/generate.php on line 25

Deprecated: Creation of dynamic property Joomla\CMS\Layout\FileLayout::$helix3 is deprecated in /srv/vhost/iesjuanlopezmorillas.es/home/html/templates/flex/html/layouts/helix3/frontend/modules.php on line 13

Deprecated: Creation of dynamic property Joomla\CMS\Layout\FileLayout::$helix3 is deprecated in /srv/vhost/iesjuanlopezmorillas.es/home/html/templates/flex/html/layouts/helix3/frontend/modules.php on line 13

Deprecated: Creation of dynamic property Joomla\CMS\Layout\FileLayout::$helix3 is deprecated in /srv/vhost/iesjuanlopezmorillas.es/home/html/templates/flex/html/layouts/helix3/frontend/modules.php on line 13

Deprecated: Creation of dynamic property Joomla\CMS\Layout\FileLayout::$helix3 is deprecated in /srv/vhost/iesjuanlopezmorillas.es/home/html/templates/flex/html/layouts/helix3/frontend/generate.php on line 25

Deprecated: Creation of dynamic property Joomla\CMS\Layout\FileLayout::$helix3 is deprecated in /srv/vhost/iesjuanlopezmorillas.es/home/html/templates/flex/html/layouts/helix3/frontend/modules.php on line 13

IES JUAN LÓPEZ MORILLAS


Deprecated: Creation of dynamic property Joomla\CMS\Layout\FileLayout::$helix3 is deprecated in /srv/vhost/iesjuanlopezmorillas.es/home/html/templates/flex/html/layouts/helix3/frontend/generate.php on line 25

Deprecated: Creation of dynamic property Joomla\CMS\Layout\FileLayout::$helix3 is deprecated in /srv/vhost/iesjuanlopezmorillas.es/home/html/templates/flex/html/layouts/helix3/frontend/conponentarea.php on line 16
Resistencias pull-up/pull down

Resistencias pull-up/pull down


Uno de los problemas que podemos encontrarnos al trabajar con Arduino es el «ruido electrónico» que puede afectar a las lecturas en los pin de nuestra placa, produciendo falsos estados.

No son un tipo de resistencia especial, sino una forma de conectar las resistencias en el circuito de forma que evitemos los falsos estados que pueden producirse como consecuencia del ruido generado en los circuitos electrónicos. Se suelen usar resistencias de 10kΩ.

En el trabajo con pulsadores se hace muy necesario el tener en cuenta este fenómeno, que puede hacer que nuestro circuito no funcione como debiera. Debemos ser cuidadosos en este aspecto. Podemos ver a continuación un vídeo de un circuito sin resistencia que defina el estado inicial del pin digital 13 de Arduino que controla el LED integrado en la placa.

Como podemos ver, el funcionamiento del circuito es errático. Al pulsar se queda encendido el LED aunque reiniciemos el programa en Arduino.

Resistencia pull-down
En esta forma de conectar la resistencia, cuando el circuito está en reposo, la caída de tensión en la resistencia es prácticamente nula (LOW). Cuando pulsamos el pulsador, dejará de pasar corriente y tendremos una tensión de 5V (HIGH) en la resistencia. Este método se emplea para el uso normal LOW-HIGH.

 

Resistencia pull-up
En esta forma de conectar la resistencia, cuando el circuito está en reposo, la caída de tensión en la resistencia es 5V (HIGH). Cuando pulsamos el pulsador, toda la corriente se va a masa y tendremos una tensión de 0V (LOW) en la resistencia. Este método se emplea para el uso normal HIGH-LOW.

En los estados de reposo, cuando el pulsador está abierto, cada esquema nos garantiza un valor determinado en el pin digital de Arduino. Cuando accionamos el pulsador, la corriente recorrerá el camino más fácil, donde no hay resistencia.

  • La resistencia Pull Up nos proporciona un valor HIGH en la entrada digital de Arduino cuando el pulsador está abierto y LOW cuando está pulsado.
  • La resistencia Pull Down nos proporcionará un valor LOW en el pin digital de Arduino cuando el pulsador está abierto (que suele ser el montaje más habitual) y HIGH cuando está pulsado.

Un ejemplo de código para encender el LED conectado al pin 13 integrado en la placa a través de un pulsador con resistencia pull down sería el siguiente:

/*
 Creador: Esta dirección de correo electrónico está siendo protegida contra los robots de spam. Necesita tener JavaScript habilitado para poder verlo.
 */

//Definimos una variable para almacenar el estado del pulsador
int valorPulsador=0;

void setup() {
  //Definimos los pines de entrada y de salida
  pinMode(6,INPUT);
  pinMode(13, OUTPUT);

}

void loop() {
  // Leemos el valor del pin del pulsador
  valorPulsador=digitalRead(6);

  //Encendemos o apagamos el pin del LED
  if(valorPulsador==HIGH) {
    digitalWrite(13,HIGH);
  }
  else {
    digitalWrite(13,LOW);
  }
}

A continuación un pequeño vídeo del funcionamiento de este circuito que enciende un LED a través de un pulsador usando una resistencia Pull Down.

 

Y otro circuito que apaga un LED a través de un pulsador usando una resistencia Pull Up. (El sketch de Arduino es el mismo).



Deprecated: Creation of dynamic property Joomla\CMS\Layout\FileLayout::$helix3 is deprecated in /srv/vhost/iesjuanlopezmorillas.es/home/html/templates/flex/html/layouts/helix3/frontend/modules.php on line 13

CFGS Energías Renovables


Deprecated: Creation of dynamic property Joomla\CMS\Layout\FileLayout::$helix3 is deprecated in /srv/vhost/iesjuanlopezmorillas.es/home/html/templates/flex/html/layouts/helix3/frontend/generate.php on line 25

Deprecated: Creation of dynamic property Joomla\CMS\Layout\FileLayout::$helix3 is deprecated in /srv/vhost/iesjuanlopezmorillas.es/home/html/templates/flex/html/layouts/helix3/frontend/modules.php on line 13

Deprecated: Creation of dynamic property Joomla\CMS\Layout\FileLayout::$helix3 is deprecated in /srv/vhost/iesjuanlopezmorillas.es/home/html/templates/flex/html/layouts/helix3/frontend/modules.php on line 13

Deprecated: Creation of dynamic property Joomla\CMS\Layout\FileLayout::$helix3 is deprecated in /srv/vhost/iesjuanlopezmorillas.es/home/html/templates/flex/html/layouts/helix3/frontend/modules.php on line 13

Localización


Deprecated: Creation of dynamic property SppagebuilderAddonOpenstreetmap::$addon is deprecated in /srv/vhost/iesjuanlopezmorillas.es/home/html/components/com_sppagebuilder/parser/addons.php on line 36

Deprecated: Creation of dynamic property Joomla\CMS\Layout\FileLayout::$helix3 is deprecated in /srv/vhost/iesjuanlopezmorillas.es/home/html/templates/flex/html/layouts/helix3/frontend/modules.php on line 13

Visitas

1208442
Hoy: 258
Ayer: 3.212
Esta semana: 18.242
Última semana: 18.358
Este mes: 12.345
Último mes: 103.065

Deprecated: Creation of dynamic property Joomla\CMS\Layout\FileLayout::$helix3 is deprecated in /srv/vhost/iesjuanlopezmorillas.es/home/html/templates/flex/html/layouts/helix3/frontend/generate.php on line 25