Show Posts
Pages: [1] 2 3 ... 232
1  Using Arduino / Project Guidance / Re: RGB LED Coffee Table on: July 30, 2014, 03:31:09 pm
Im an idiot, I see what your saying, yes, those are common anodes

I thought you were looking at the actual vertical wires.
2  Using Arduino / Project Guidance / Re: RGB LED Coffee Table on: July 30, 2014, 03:28:12 pm
If your looking at my wiring diagram, all the pins at the top are common cathode, so all the RED LEDs in column 9 are tied together by their cathodes. Blue...Green...
3  Using Arduino / Project Guidance / Re: RGB LED Coffee Table on: July 30, 2014, 03:19:29 pm






8x8x8 cube thread


4  Using Arduino / Project Guidance / Re: RGB LED Coffee Table on: July 30, 2014, 03:11:56 pm
The link to CrossRoads 9x9x9 cube thread
5  Using Arduino / Project Guidance / Re: Have an issue trying to run two fans on a relay controlled by thermistor on: July 30, 2014, 02:46:20 pm
Its ok, it happens. Im glad to hear its working now.
6  Using Arduino / Programming Questions / Re: && help on: July 30, 2014, 02:41:36 pm
Quote
(now.minute == 19))
Should be
(now.minute() == 19))
7  Using Arduino / Project Guidance / Re: RGB LED Coffee Table on: July 30, 2014, 02:38:06 pm
Yea, it would probably help if it was in color, but it is the best I could find.

Actually, I found it!
http://www.seeedstudio.com/wiki/images/thumb/d/de/8x8_RGB_Matrix_Schematic.png/500px-8x8_RGB_Matrix_Schematic.png
8  Using Arduino / Project Guidance / Re: RGB LED Coffee Table on: July 30, 2014, 02:30:05 pm
Yes.
9  Using Arduino / Project Guidance / Re: RGB LED Coffee Table on: July 30, 2014, 02:28:29 pm
Matrix wiring: http://www.logiccircuit.org/images/LEDMatrix0.jpg

This is the driver you can use if you don't want to get the individual chips:
http://www.dx.com/p/full-color-8-x-8-led-rgb-matrix-screen-driver-board-296126?tc=USD&gclid=COHjqLTi7b8CFSgV7Aods3oATg#.U9lHLPldWSo

*Note this only controls 64 LEDs, so two of these will be needed.
10  Using Arduino / Project Guidance / Re: RGB LED Coffee Table on: July 30, 2014, 02:22:56 pm
The module was just an example to show the 64 LEDs. You can use individual LEDs, just make sure your wiring is correct.
11  Using Arduino / Project Guidance / Re: RGB LED Coffee Table on: July 30, 2014, 02:19:59 pm
Quote
Yes something like that but I was wondering if it had to be 8x8 or if I could do 6x10? Also It says I can use a max of 64 leds, how would I go about being able to use 128 leds?
A single driver (MAX7219 module) can control 64 LEDs, to add more, you need another chip and cascade the two, as done in the wiring diagram. ( See the yellow line going from the first driver to the second)
12  Using Arduino / Project Guidance / Re: RGB LED Coffee Table on: July 30, 2014, 02:12:42 pm
So basically you want to make this RGB Dot Matrix into a table? Sounds doable. And you are in luck, because you can wire multiple matrices together and there is an easy to use library.

Option one: http://playground.arduino.cc/Main/LEDMatrix
Option two: https://code.google.com/p/arudino-maxmatrix-library/

Wiring diagram: http://www.instructables.com/id/16x8-LED-dot-matrix-with-MAX7219-module/
13  Using Arduino / Project Guidance / Re: Have an issue trying to run two fans on a relay controlled by thermistor on: July 30, 2014, 01:46:51 pm
Your problem is not a software issue, but a wiring or circuit design issue.

Please post a schematic and/or a picture.

Added:
You also have unneeded open and closing brackets in your code.
See under this line "digitalWrite(Relay2,HIGH);"
14  Using Arduino / Project Guidance / Re: Sending packets to Arduino on: July 30, 2014, 01:33:24 pm
This sketch here can receive a packet of data in this format, <Aaa,Bbb,Cccc...Z>
Code:
int buffer[8]; // adjust to the size of data you are receiving, this example is receiving no more then 8 ints
int counter = 0;

void setup(){
  Serial.begin(115200);
}

void loop()
{
  if(Serial.available() > 0)
  {
    char temp = Serial.read(); // example incomming data <1,23,456,7890>
    if( temp == '<' ) // is incoming char equal to <, if so gather the rest
    {
      counter = 0; // make sure counter is set to zero
      while(1)
      {
        if(Serial.available() > 0)
        {
          char temp = Serial.read(); // read in incoming char
          
          if(temp != ',' && temp != '>')
          {
            buffer[counter] = (buffer[counter]*10) + (temp - '0');// converts temp into an int then stores it
          }

          if(temp == ',') // split data from the comma
          {
            counter++; // increment buffer index
          }

          if(temp == '>') // if incoming char is >, then break out of loop
          {  
            break; // breaks out of the while loop
          }
        }
      }
    }
    for(int NUM = 0; NUM <= counter; NUM++) //will output "1,23,456,7890"
     {
     Serial.print(buffer[NUM]);
     if(NUM != counter) Serial.print(",");
     }
     Serial.println();
  }

  while(counter != -1)
  {
    buffer[counter] = 0;
    --counter;
  }
}

You can use sprintf() to structure the packet to be sent, like so:
int Output[10]; // create an array large enough to hold the newly formed string.
sprintf(Output, "<%d, %d, %d, %d>", data1, data2, data3, data4);

send Output either serially or whatever.
15  Using Arduino / Programming Questions / Re: Serial.read on: July 29, 2014, 09:14:53 pm
It does kinda work if you send "YesnoYes"
I've been playing around with it and for multiple strings, its not very responsive. but I never said it was the best way to solve the OP's issue.

Also PeterH made my first option already.
Pages: [1] 2 3 ... 232