Saltar al contenido principal
LibreTexts Español

9.4: Asignación

  • Page ID
    83114
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    Alterar el programa para que se invirta la lógica de iluminación, es decir, aumentar la fuerza debería iluminar un mayor número de LEDs en modo barra e invierte el movimiento del modo punto. No altere el circuito del FSR. Esto se debe lograr solo vía código. En segundo lugar, agregue un switch al pin 7 de Arduino (puerto D.7). La posición de este interruptor debería permitir al usuario elegir entre un modo punto y una pantalla en modo barra. No debería ser necesario desrebotar este interruptor. Para crédito extra, agregue un segundo switch (Arduino pin 6, Port D.6) que permita al usuario elegir entre la escala lineal existente y una escala logarítmica correspondiente a 6 dB por LED (es decir, reducir a la mitad de los niveles, la iluminación LED superior por encima de 512). Incluya su código y un diagrama esquemático adecuado con valores de componentes.


    This page titled 9.4: Asignación is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by James M. Fiore via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.