Show Posts
Pages: [1] 2 3 4
1  Using Arduino / LEDs and Multiplexing / Re: Multiplexing with TLC5940 on: May 19, 2011, 06:30:18 pm
My original idea was to use a 595 with a UDN2981 to source the current and the TLC5490 as the sink, but I'm quite a noob to multiplexing and really have no idea how to code it, the hardware is easy always been a hardware guy.
2  Using Arduino / LEDs and Multiplexing / Re: Tlc5940 multiplexing code on: May 19, 2011, 05:57:56 pm
I'm with you on this one, all I seem to find is some old outdated posts and many of them have very basic documentation.
3  Using Arduino / LEDs and Multiplexing / Multiplexing with TLC5940 on: May 19, 2011, 05:55:51 pm
I have been trying to figure out how to get the TLC5949mux library to work, but there is almost no documentation or schematics as to how things are supposed to be hooked up. 

I can of course use the standard TCL library and work them that way but I am really looking to multiplex them, or if anyone has other suggestions on using TLC5940 to multiplex please feel free to add.

My main goal is a 5x4 RGB matrix will PWM capabilities

Thanks in advance!!
4  Community / Exhibition / Gallery / Custom LED tail lights for vehicle on: April 20, 2011, 08:37:34 am
Made my Dad some custom tail lights for his old car, it's a show car all modified, 600HP, etc.

So we worked on a project to retrofit some LED lights.

It uses an arduino but not any traditional board, I designed my own board with the LEDs and Maxim chips (Used for LED control) all built in, also added a USB port for programing and since there are 2 lights and you want them to be in sync, there is an I2C wire bus running between the 2.

Since the car will be at car shows I added a fourth function of a remote control to switch on a 'Show' mode that cycles through some displays, again using the I2C bus to keep the 2 in sync since resonators aren't perfect and there is a trimmer to set the speed, it's almost impossible to get them set the same speed, so the drivers side tells the passenger side light where it's at and what it's doing at what speed.

Made a nice all shrink wrapped wiring harness with molex connectors so it would install just like the stock lights, here is a video that show one in operation, they have 4 modes: Brake, Turn Signal, Tail light, and Show Mode.   smiley-mr-green

The black box in the video uses tiny switching power supplies (Less heat, practically none) to convert the 12VDC signals to 5VDC for the board, also contains the remote hardware.

5  Using Arduino / Programming Questions / Re: LedControl Problem on: February 23, 2011, 08:22:24 am
Anyone else have an idea?
6  Using Arduino / Programming Questions / Re: LedControl Problem on: February 22, 2011, 09:57:49 am
I'm sorry I ment pull down, I have a 10k resistor from the pin to ground.  It's not a matter of debounce as I'm not using a switch, just a jumper wire on a breadboard.  If I remove the jumper to VCC it will take about 3 seconds to turn off the display.  I've added a line to clear the display when ever the routine is called (See code) and I can see the display blink very rapidly, so it must be calling the routine even after the pin has gone low when the jumper is removed.

Code:
#include "LedControl.h"

LedControl lc=LedControl(44,46,45,1);

void setup() {
 
  lc.shutdown(0,false);
  lc.setIntensity(0,1);
  lc.clearDisplay(0);
}

void light() {
 
  byte z[8]={B10101010,
             B01010101,
             B10101010,
             B01010101,
             B10101010,
             B01010101,
             B10101010,
             B01010101};
 
  lc.setRow(0,0,z[0]);
  lc.setRow(0,1,z[1]);
  lc.setRow(0,2,z[2]);
  lc.setRow(0,3,z[3]);
  lc.setRow(0,4,z[4]);
  lc.setRow(0,5,z[5]);
  lc.setRow(0,6,z[6]);
  lc.setRow(0,7,z[7]);
  lc.clearDisplay(0);
}

void loop() {
 
 
  if (digitalRead(3)==HIGH)
    {
      light();
    }
  else
    {
    lc.clearDisplay(0);
    }
   
}
7  Using Arduino / LEDs and Multiplexing / Re: LedControl delay problem? on: February 22, 2011, 09:20:52 am
Yes I figured I posted in the wrong forum.  I did have a pulldown resistor.
8  Using Arduino / LEDs and Multiplexing / LedControl delay problem? on: February 22, 2011, 09:05:42 am
Probably should have posted this in this forum...

I have a MAX7219 wired up to a Mega and it's works, but after I let the pin go low it takes about 2-3 seconds for the display to turn off, like it keep looping though the code after the pin goes low.  Here is my code, any ideas?  I did have a pull up resistor, no effect, it's always the same amount of time every time.


 
Code:
#include "LedControl.h"

LedControl lc=LedControl(44,46,45,1);

void setup() {
 
  lc.shutdown(0,false);
  lc.setIntensity(0,1);
  lc.clearDisplay(0);
}

void light() {
  
  byte z[8]={B10101010,
             B01010101,
             B10101010,
             B01010101,
             B10101010,
             B01010101,
             B10101010,
             B01010101};
  
  lc.setRow(0,0,z[0]);
  lc.setRow(0,1,z[1]);
  lc.setRow(0,2,z[2]);
  lc.setRow(0,3,z[3]);
  lc.setRow(0,4,z[4]);
  lc.setRow(0,5,z[5]);
  lc.setRow(0,6,z[6]);
  lc.setRow(0,7,z[7]);

}

void loop() {
 
  
  if (digitalRead(3)==HIGH)
    {
      light();
    }
  else
    {
    lc.clearDisplay(0);
    }
    
}
9  Using Arduino / Programming Questions / Re: LedControl Problem on: February 22, 2011, 08:55:11 am
I did have a pull up resistor, also I think it would be more random if that was a problem (could be wrong) but it exactly the same amount of time every time.  Kind of at a loss on this one.
10  Using Arduino / Programming Questions / LedControl Problem on: February 21, 2011, 10:41:12 pm
I have a MAX7219 wired up to a Mega and it's works, but after I let the pin go low it takes about 3 seconds for the display to turn off, like it keep looping though the code after the pin goes low.  Here is my code, any ideas?

 
Code:
#include "LedControl.h"

LedControl lc=LedControl(44,46,45,1);

void setup() {
 
  lc.shutdown(0,false);
  lc.setIntensity(0,1);
  lc.clearDisplay(0);
}

void light() {
 
  byte z[8]={B10101010,
             B01010101,
             B10101010,
             B01010101,
             B10101010,
             B01010101,
             B10101010,
             B01010101};
 
  lc.setRow(0,0,z[0]);
  lc.setRow(0,1,z[1]);
  lc.setRow(0,2,z[2]);
  lc.setRow(0,3,z[3]);
  lc.setRow(0,4,z[4]);
  lc.setRow(0,5,z[5]);
  lc.setRow(0,6,z[6]);
  lc.setRow(0,7,z[7]);

}

void loop() {
 
 
  if (digitalRead(3)==HIGH)
    {
      light();
    }
  else
    {
    lc.clearDisplay(0);
    }
   
}
11  Forum 2005-2010 (read only) / Syntax & Programs / Re: EEPROM hold more then 255 as a value? on: April 13, 2009, 03:43:49 pm
Yup works like a charm, much thanks!
12  Forum 2005-2010 (read only) / Syntax & Programs / Re: EEPROM hold more then 255 as a value? on: April 12, 2009, 11:10:49 pm
Thanks so much I understand now, couldn't figure out how to read it back in   ;D smiley-grin
13  Forum 2005-2010 (read only) / Syntax & Programs / Re: EEPROM hold more then 255 as a value? on: April 12, 2009, 10:17:57 pm
Thanks for the link, but will this work for writing 8 values?  Sorry I'm a noob trying to learn.
14  Forum 2005-2010 (read only) / Syntax & Programs / EEPROM hold more then 255 as a value? on: April 12, 2009, 09:33:43 pm
Is there a way to save a value larger then 255 into the eeprom?  all I see is that is the max, I don't care about using more space as I'm not writing a lot of data but values up to 1500 or so.
15  Forum 2005-2010 (read only) / Syntax & Programs / Upload sketch or hex with out Arduino IDE on: March 31, 2009, 09:57:32 am
Not sure if this can be done, here is an example.

Lets say I made a sketch for my Dad to read various sensors on his car, is there a way he could upload a new sketch or even the hex version via usb without having to use the Arduino IDE?  

He's not all that good with computers but would love to be able to send him a new version with a bug fix and he can just simply plug in a usb and click and upload, or am I dreaming?

Thanks!
Pages: [1] 2 3 4