Show Posts
|
|
Pages: 1 ... 6 7 [8] 9
|
|
106
|
Using Arduino / LEDs and Multiplexing / Re: drive current of 5x5 RGB LED matrix—NEED URGENT HELP!
|
on: April 30, 2011, 04:15:40 pm
|
Thanks so much! I figured out how to light up individual rows of LEDs using row-column scanning AND using shift registers. Both methods work. The brightness isn't an issue at all. I think I'm going to make a 3x3x3 RGB LED cube instead. It'll utilize about the same amount of LEDs as a 5x5 matrix, so I figure it shouldn't be an issue. I'm already about a third finished with the construction of the cube. I just need to know though, how do I control the different levels of the cube? Do you have experience with those? I came across an Instructable that uses transistors for that, but the schematic/instructions were very unclear: http://www.instructables.com/id/LED-Cube-and-Arduino-Lib/step4/Using-the-Software/. Any ideas? Thanks!
|
|
|
|
|
108
|
Using Arduino / LEDs and Multiplexing / Re: drive current of 5x5 RGB LED matrix—NEED URGENT HELP!
|
on: April 29, 2011, 08:34:51 pm
|
|
What do you mean by daisy-chaining and piggy-backing, exactly?
Also, when you say "it's not guaranteed to last forever," what does that mean? How bright will it be?
What do you mean by "de-activating the output drivers"?
How would I wire all of this? Do you have a schematic? That would help IMMENSELY!
Remember that you're dealing with a real noob here. You're using a lot of terminology that is new to me. Having said that, I can't stress how grateful I am for your help. Thanks!
|
|
|
|
|
110
|
Using Arduino / LEDs and Multiplexing / Re: drive current of 5x5 RGB LED matrix—NEED URGENT HELP!
|
on: April 29, 2011, 06:51:42 pm
|
Oh hey madworm, are you the same madworm who made that RGB LED matrix on Instructables? I'm the one who posted that question about whether you had any schematics or photos of the circuit before you had your PCB made. lol. To answer your questions: - I had my LEDs powered by an external source of 6.4 V. I didn't measure the current. Where should I measure it on my circuit? - No, they were all equally dim. - I have one transistor for each color, but I have two LEDs connected to those transistors. It's all there in my schematic. - I tried measuring the voltage across it. I took my multimeter and put the probes to the resistors while the circuit was being powered. Nothing happened. I tried taking out one leed of the resistor and sticking a wire in its place instead, then measuring the voltage between the two. The LEDs got really, really bright when I did that. Then once I took the probes away, the LEDs got even dimmer. They don't even light up now, except for when I touch one of the transistors or resistors. Then they get really, really bright. I have no idea what's going on. Could I use something like this to power my matrix instead? http://arduino.cc/en/Tutorial/RowColumnScanning or multiplexers or shift registers?
|
|
|
|
|
111
|
Using Arduino / LEDs and Multiplexing / drive current of 5x5 RGB LED matrix—NEED URGENT HELP!
|
on: April 29, 2011, 05:58:38 pm
|
|
Hi everyone,
I have a project that's due on Tuesday. I was going to make a 5x5 RGB LED matrix powered by the arduino (and connect it to shift registers), but I just realized that I'm going to need something to drive the current to the LEDs. I tried using PNP transistors to do this (see the schematic I attached), but then the LEDs went really dim. I really don't know what to do. Please help me out—it's my final project and it's due Tuesday! Thanks!!
|
|
|
|
|
112
|
Using Arduino / Programming Questions / button switch sensor program—need urgent help!
|
on: April 28, 2011, 08:57:11 am
|
|
I have a sharp IR sensor, a push button and some LEDs connected to my arduino. I'm trying to write a program in which the sensor collects data and sends it to the LEDs, but the user has the option of turning off the lights entirely using a push-button switch. I also want to create an option using another push-button in which the user can press it and the LEDs will retain that particular brightness. Basically, I'm trying to make an LED flashlight in which the user can control the brightness using the sensor.
Here is my code so far. It's a school project, so it's due very soon. Please help me out! Thanks!
int debounce = 10; //length of time to debounce switch in milliseconds int ButtonValue; //used to feel current button state int LastButtonValue = LOW; //used to remember last button state int PushButton = 2; int led = 9;
double y; int analogPin = 4; int val; //assume unpressed button at startup int state = LOW;
void setup() { pinMode(led, OUTPUT); //sets the LED pin as output pinMode(PushButton, INPUT); //sets PushButton pin as input Serial.begin(9600); }
void loop() {
ButtonValue = digitalRead(PushButton); //digitally reads value of PushButton into variable ButtonValue if (ButtonValue == HIGH && LastButtonValue == LOW){ delay(debounce); //wait long enough to know that the input is real ButtonValue = digitalRead(PushButton); if (ButtonValue == HIGH && LastButtonValue == LOW){ Serial.print("pressed "); state = !state; digitalWrite(led, state); //toggle the LED Serial.println(state);
if (ButtonValue != LOW){
val = analogRead(analogPin); // read the sensor's data Serial.print("Analog value =\t"); y = (772.92 * 9.723 * 1/(val))*(5/2.5); //this equation linearizes the sensor data Serial.println(y); delay(500);
analogWrite(led, y); }
} } LastButtonValue = ButtonValue; //make a note of the state we're in for }
|
|
|
|
|
114
|
Using Arduino / Installation & Troubleshooting / experiencing first-time issues with the lilypad
|
on: April 27, 2011, 03:54:25 pm
|
Hello, I recently purchased a lilypad arduino (ATmega 328) and an FTDI cable (this one: http://www.sparkfun.com/products/9718). I just reinstalled the arduino software just in case I hadn't previously installed the necessary FTDI drivers. However, I keep encountering the following message every time I try to upload code: Problem uploading to board. avrdude: stk500_getsync(): not in sync: resp=0x30 avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51 I'm running OS X 10.6.7. I think it might be a driver issue. Also, the board doesn't light up when I plug it into my computer. Does anybody know what's going on? Please help! Thanks!
|
|
|
|
|
115
|
Using Arduino / Displays / Re: newhaven serial display — HELP NEEDED
|
on: April 04, 2011, 09:21:07 pm
|
|
Thank you so much, Don. I really appreciate all your help. I have a few questions:
1. In that code that you posted, where do I specify the characters that I want to output? Is there any way you could actually give me a sample program (not too complicated) that works on this particular module?
2. For some reason, whenever I output data to the LCD, there are always a bunch of random bits of data that show up beforehand. For this reason, I cannot output anything static to the LCD, because the random bits just stay there and never go away. Why are those random bits there, and how can I make those go away? In case you don't know what I'm referring to, I attached an image to this message.
3. I was thinking that perhaps the approach I want to take to make this animation is one in which I output a series of static images using custom-made characters—as opposed to moving the cursor around. How do I do this? I put the data in void setup() as opposed to void loop(), so that they would stay still, but then I ran into that annoying problem with the random characters. I was thinking of running through my images using a loop or an array, but how would I do that?
Thanks so much!
|
|
|
|
|
116
|
Using Arduino / Displays / Re: newhaven serial display — HELP NEEDED
|
on: April 04, 2011, 04:36:26 pm
|
|
Yes, but how do you implement a command like the reset cursor position command? This is what I typed:
Serial.print(254, BYTE); Serial.print(69, BYTE);//change cursor position
But then how do you indicate WHERE you want the cursor to go or what character you want to move? Also, where in the link that you posted does it tell you how to make the ASCII characters move across the screen?
|
|
|
|
|
119
|
Using Arduino / Displays / Re: newhaven serial display — HELP NEEDED
|
on: April 03, 2011, 03:16:17 pm
|
|
Okay, thanks a whole lot. I managed to get the device turned on, and I'm able to transmit data by outputting the decimal numbers that correspond to each ASCII code. I also figured out how to get some of the special commands to work.
However, I need to make an animation for this thing. How can I make characters move wherever I want on the screen? Like, suppose I want to make a character jump from cell 1 on row 2 to cell 15 on row 1? How would I do that?
Thanks!
|
|
|
|
|