Ir al contenido principal

Que es un letrero POV? Aprende a hacer uno con PCBWAY


Materiales:


Diagrama:



Programacion:

/*
    Writes "Ardunio" with Persistance of Vision (POV) with 16 LEDs (output 0
    is on bottom, output 15 is top).  The animation below doesn't work with
    more than 1 TLC.

    I generated the animation with the included java code:
    <arduino folder>/hardware/libraries/Tlc5940/examples/BasicAnimations

    To use the code, run
        java AnimationCreator
    in the folder above and it will parse all images in the folder to
    .h files.  For best results use images that are 16 pixels high.

    See the BasicUse example for hardware setup.

    Alex Leone <acleone ~AT~ gmail.com>, 2009-02-03 */

#include "Tlc5940.h"
#include "tlc_animations.h"
#include "ani_arduino.h"

void setup()
{
  Tlc.init();
}

void loop()
{
  // checks to see if the animation is finished playing
  if (!tlc_onUpdateFinished) {

    delay(100);

    /*
      void tlc_playAnimation(prog_uint8_t *animation, uint16_t frames,
                             uint16_t periodsPerFrame);
      periods per frame is PWM periods, 1.024ms per frame (0 is valid - this
      will play the animation as fast as possible).

      Plays an animation in the "background".
      Don't call Tlc.update() while this is running.
      You can check if this is done with !tlc_onUpdateFinished */
    tlc_playAnimation(ani_arduino, ANI_ARDUINO_FRAMES, 0);


    // If you don't want to do anything until it's finished, use:
    // while (!tlc_onUpdateFinished);

  }

}

Comentarios

Entradas populares de este blog

Robot sigue lineas sencillo

Este es el diagrama en vista real de como va conectado los sensores y el circuito en la protoboard Diagrama electronico Lista materiales: 1 CI lm339 2 potenciometros de 100K 2 resistencias de 47K 2 resistencias de 330 2 resistencias de 1K 2 resistencias de 56 2 sensores CNY70 2 transistores BC548 2 transistores TIP31C 2 motores DC 2 motorreductores 2 llantas 1 rueda loca 1 tabla de 21 x 8.5 cm 2 ligas grandes 2 argollas para sujetar de 1" 4 pijas 6 tornillos con sus tuercas Pilas de 6 o 9 volts 1 protoboard 1 pistola silicon 1 metro de cable UTP 1 cautin La conexión del CNY es como sigue: Viendo de frente el sensor como se muestra en la foto la patita que esta mas cerca de las letras "CN" se conecta el alambre azul, la patita que esta mas cerca del numero "70" es decir de la parte derecha se conecta el alambre azul con blanco y justo en el pin detrás de ese alambre se conecta el alambre blanco con naranja y

Tipos de LEDS comercialmente

Mezcladora de audio de 3 canales

Entrada para 2 fuentes mono de sonido y 1 micrófono electret DIAGRAMA: