Show Posts
Pages: 1 ... 44 45 [46] 47 48 ... 196
676  Using Arduino / Project Guidance / Re: Daft Punk Thomas helmet programming on: December 18, 2013, 03:26:28 pm
I made a video, and i'll give you a link when its ready.
677  Using Arduino / Project Guidance / Re: Daft Punk Thomas helmet programming on: December 18, 2013, 03:03:26 pm
I got it working. Make sure your buttons are wired correctly, meaning when pressed, they go LOW, not HIGH. Now to see the animations, you need to press and hold button 2 for 4 seconds until they start.
678  Using Arduino / Project Guidance / Re: Daft Punk Thomas helmet programming on: December 18, 2013, 01:00:38 am
Maybe your matrix is on wrong, take it off and try to rotate the screen.
679  Using Arduino / Project Guidance / Re: Daft Punk Thomas helmet programming on: December 17, 2013, 09:10:39 pm
Sure, I guess you could.
680  Using Arduino / Project Guidance / Re: Daft Punk Thomas helmet programming on: December 17, 2013, 05:34:49 pm
Make sure when you upload the sketch, that nothing is in pins 0 and 1. Afterwards you can put them back.
681  Using Arduino / Programming Questions / Re: Including VirtualWire and Servo give compiler error [SOLVED] on: December 17, 2013, 03:08:42 pm
Both libraries use the same timer, so they can't be used together. If you want, you can try and change one of the libraries to use a different timer. I had the same issue which I solved with hardware. this chip  This chip uses a serial communication via the TX pin or a pin of your choice with software serial.

I have made a library that I can attach below. This library works with the other chip versions too, so you can control up to 32 servos total.
682  Using Arduino / Project Guidance / Re: Daft Punk Thomas helmet programming on: December 17, 2013, 04:07:38 am
Try it
683  Using Arduino / Project Guidance / Re: Daft Punk Thomas helmet programming on: December 16, 2013, 07:55:17 pm
yea of course.
684  Using Arduino / Project Guidance / Re: Daft Punk Thomas helmet programming on: December 16, 2013, 06:18:04 pm
I don't know then. Sorry.

Can you upload anything to the arduino?
685  Using Arduino / Project Guidance / Re: Daft Punk Thomas helmet programming on: December 16, 2013, 05:46:06 pm
Do this with Arduino plugged in.

Click Update driver:
Click "Browse My Computer"   Now you should be able to search your computer for the driver.
Go into your C drive, and in Program Files, there should be an Arduino folder.
Go into it and if you can, just click the drivers folder or go into that and click FTDI USB DRIVERS.
The computer should be able to do the rest from there. If that still does not work, reinstall the Arduino software.
686  Using Arduino / Project Guidance / Re: Daft Punk Thomas helmet programming on: December 16, 2013, 05:26:29 pm
You might just need to re-download the Arduino Software, or go into Device Manager, and manually find the drivers.
687  Using Arduino / Project Guidance / Re: Daft Punk Thomas helmet programming on: December 16, 2013, 04:50:05 pm
I commented out a few things in my loop, uncomment them, and try it.

Im using this.
Dot matrix

It uses the MAX7219 chip.
688  Using Arduino / Project Guidance / Re: Daft Punk Thomas helmet programming on: December 16, 2013, 04:39:16 pm
Swap your D10 and D11.

Quote
pin 12 is connected to the DataIn
 pin 11 is connected to the CLK
 pin 10 is connected to LOAD/CS
689  Using Arduino / Project Guidance / Re: Daft Punk Thomas helmet programming on: December 16, 2013, 03:50:57 pm
DIN; CS; CLK these need to be connected to the nano. Din = 12, CS = 10, CLK = 11.
Perhaps you have something wired wrong.

Try this sketch to test your DMs.
Code:
//We always have to include the library
#include "LedControl.h"

/*
 Now we need a LedControl to work with.
 ***** These pin numbers will probably not work with your hardware *****
 pin 12 is connected to the DataIn
 pin 11 is connected to the CLK
 pin 10 is connected to LOAD
 We have only a single MAX72XX.
 */
LedControl lc=LedControl(12,11,10,1);
LedControl lcs=LedControl(7,6,5,1);

/* we always wait a bit between updates of the display */
unsigned long delaytime=100;

void setup() {
  /*
   The MAX72XX is in power-saving mode on startup,
   we have to do a wakeup call
   */
  lc.shutdown(0,false);
  /* Set the brightness to a medium values */
  lc.setIntensity(0,8);
  /* and clear the display */
  lc.clearDisplay(0);
  lcs.shutdown(0,false);
  /* Set the brightness to a medium values */
  lcs.setIntensity(0,8);
  /* and clear the display */
  lcs.clearDisplay(0);
}

/*
 This method will display the characters for the
 word "Arduino" one after the other on the matrix.
 (you need at least 5x7 leds to see the whole chars)
 */
void writeArduinoOnMatrix() {
  /* here is the data for the characters */
  byte a[5]={B01111110,B10001000,B10001000,B10001000,B01111110};
  byte r[5]={B00111110,B00010000,B00100000,B00100000,B00010000};
  byte d[5]={B00011100,B00100010,B00100010,B00010010,B11111110};
  byte u[5]={B00111100,B00000010,B00000010,B00000100,B00111110};
  byte i[5]={B00000000,B00100010,B10111110,B00000010,B00000000};
  byte n[5]={B00111110,B00010000,B00100000,B00100000,B00011110};
  byte o[5]={B00011100,B00100010,B00100010,B00100010,B00011100};

  /* now display them one by one with a small delay */
  lc.setRow(0,0,a[0]);
  lc.setRow(0,1,a[1]);
  lc.setRow(0,2,a[2]);
  lc.setRow(0,3,a[3]);
  lc.setRow(0,4,a[4]);
  delay(delaytime);
  lc.setRow(0,0,r[0]);
  lc.setRow(0,1,r[1]);
  lc.setRow(0,2,r[2]);
  lc.setRow(0,3,r[3]);
  lc.setRow(0,4,r[4]);
  delay(delaytime);
  lc.setRow(0,0,d[0]);
  lc.setRow(0,1,d[1]);
  lc.setRow(0,2,d[2]);
  lc.setRow(0,3,d[3]);
  lc.setRow(0,4,d[4]);
  delay(delaytime);
  lc.setRow(0,0,u[0]);
  lc.setRow(0,1,u[1]);
  lc.setRow(0,2,u[2]);
  lc.setRow(0,3,u[3]);
  lc.setRow(0,4,u[4]);
  delay(delaytime);
  lc.setRow(0,0,i[0]);
  lc.setRow(0,1,i[1]);
  lc.setRow(0,2,i[2]);
  lc.setRow(0,3,i[3]);
  lc.setRow(0,4,i[4]);
  delay(delaytime);
  lc.setRow(0,0,n[0]);
  lc.setRow(0,1,n[1]);
  lc.setRow(0,2,n[2]);
  lc.setRow(0,3,n[3]);
  lc.setRow(0,4,n[4]);
  delay(delaytime);
  lc.setRow(0,0,o[0]);
  lc.setRow(0,1,o[1]);
  lc.setRow(0,2,o[2]);
  lc.setRow(0,3,o[3]);
  lc.setRow(0,4,o[4]);
  delay(delaytime);
  lc.setRow(0,0,0);
  lc.setRow(0,1,0);
  lc.setRow(0,2,0);
  lc.setRow(0,3,0);
  lc.setRow(0,4,0);
  delay(delaytime);
}

/*
  This function lights up a some Leds in a row.
 The pattern will be repeated on every row.
 The pattern will blink along with the row-number.
 row number 4 (index==3) will blink 4 times etc.
 */
void rows() {
  for(int row=0;row<8;row++) {
    delay(delaytime);
    lc.setRow(0,row,B10100000);
    delay(delaytime);
    lc.setRow(0,row,(byte)0);
    for(int i=0;i<row;i++) {
      delay(delaytime);
      lc.setRow(0,row,B10100000);
      delay(delaytime);
      lc.setRow(0,row,(byte)0);
    }
  }
}

/*
  This function lights up a some Leds in a column.
 The pattern will be repeated on every column.
 The pattern will blink along with the column-number.
 column number 4 (index==3) will blink 4 times etc.
 */
void columns() {
  for(int col=0;col<8;col++) {
    delay(delaytime);
    lc.setColumn(0,col,B10100000);
    delay(delaytime);
    lc.setColumn(0,col,(byte)0);
    for(int i=0;i<col;i++) {
      delay(delaytime);
      lc.setColumn(0,col,B10100000);
      delay(delaytime);
      lc.setColumn(0,col,(byte)0);
    }
  }
}

/*
 This function will light up every Led on the matrix.
 The led will blink along with the row-number.
 row number 4 (index==3) will blink 4 times etc.
 */
void single() {
  for(int row=0;row<8;row++) {
    for(int col=0;col<8;col++) {
      delay(delaytime);
      lc.setLed(0,row,col,true);
      lcs.setLed(0,row,col,true);
      delay(delaytime);
      for(int i=0;i<col;i++) {
        lc.setLed(0,row,col,false);
        lcs.setLed(0,row,col,false);
        delay(delaytime);
        lc.setLed(0,row,col,true);
        lcs.setLed(0,row,col,true);
        delay(delaytime);
      }
    }
  }
}

void loop() {
 // writeArduinoOnMatrix();
 // rows();
 // columns();
  single();
}
690  Using Arduino / Project Guidance / Re: Daft Punk Thomas helmet programming on: December 16, 2013, 03:25:00 pm
I have the same library, Im using my nano and your sketch. I only have two DM, but I am able to see something. However, I ran a test using your same pin setup, and both DMs work.

I looked over your code, and other than confuse me, it seems your loop is not checking the buttons. It also could just be the confusion on my end, not knowing where the buttons are, or why your using while loops to check them, and not IF statements.
But other than that,  it seems to work. Could you show me a video or picture of whats happening on your end?
Pages: 1 ... 44 45 [46] 47 48 ... 196