Show Posts
Pages: [1]
1  Using Arduino / LEDs and Multiplexing / Re: 595 Shift register problems. on: September 10, 2012, 12:00:40 am
Hi, not using a cap at all, I'll give that a try.

And sorry, meant the guides are for common cathode.
2  Using Arduino / LEDs and Multiplexing / Re: 595 Shift register problems. on: September 09, 2012, 10:18:55 pm
An attempt at photographing the setup:





3  Using Arduino / LEDs and Multiplexing / 595 Shift register problems. on: September 09, 2012, 10:10:10 pm
1.
I bought two 74HC595 shift registers with plans of using them to power 4x7 segment displays, and am working through this tutorial to learn how to use them: http://arduino.cc/en/Tutorial/ShiftOut

I am fairly certain everything is wired up ok, loaded the first program but all it does it just light the first LED continually, where from the discription it should cycle through the numbers 0-255 in binary using the 8 LED's.



2.
All the tutorial I can find use common cathode 4x7 segment displays, however the ones I bought are common anode, does anyone now of a tutorial for powering a common anode 4x7 segment display using 595 shift registers?
4  Topics / Robotics / Re: Researching first chassis, or suitable donor RC Truck on: August 31, 2012, 12:36:48 am
The problem with the Tamiya motors is that they run at 3v with a high current draw (~2amps at stall). Most motor controllers have a minimum of 6v, there are a few for 4.5v. You can get replacement motors from other brands, but that is an added cost.
5  Topics / Robotics / Re: Radio Control unit for Robot on: August 28, 2012, 04:51:49 pm
Think I'm going to use this Tx "Spektrum DX6i 6 CH Trans". Will give me one joystick for movement, the second for a tilt pan camera, and 2 extra toggle switches to control other aspects of the robot.

Another bonus is I can grab another receiver for any future robots and I can use the same Tx again for another robot.
6  Topics / Robotics / Radio Control unit for Robot on: August 24, 2012, 01:22:37 am
I'm currently in the planning stage for a semi- autonomous robot useing the wild thumper 6 wheel drive chassis. I'm looking for an RC unit, preferably 4-5 channels, but I don't really know where to start. I've been looking at aircraft ones but don' t know if they would be suitable.
7  Community / Exhibition / Gallery / Re: Airsoft Timer/Bomb Multi-Mod by Vector (Countdown/Flags/Infiltrato/TNT/Tournam.) on: August 11, 2012, 07:18:50 am
It's basically a mock bomb used for airsoft games. Has a time till detonation you can set. One team would be planting/defending the bomb while the other tries to disarm it.
8  Community / Exhibition / Gallery / Re: Airsoft Timer/Bomb Multi-Mod by Vector (Countdown/Flags/Infiltrato/TNT/Tournam.) on: August 11, 2012, 01:22:20 am
Would you be able to share any details on how you made this? Looking to build something like this for my airsoft club.
9  Community / Exhibition / Gallery / Re: Lite Brite LED clock on: August 09, 2012, 02:14:02 am
Can't be sure but it looks like it's hooked up as a grid, suing X,Y cordinates. So each coulmna and row needs one digital header, meaning 15 digital pins required.
10  Using Arduino / Programming Questions / Re: Unexpected behavior using digital pins to control an RGB LED on: August 08, 2012, 04:15:24 pm
Founds the spec sheet, I work it out to be 150 ohm for the red, and 90 ohm's each for the blue/green. (5v power source, 20mA draw and 2.00v drop for Red, 3.0v for green/blue).

Also something interesting I spotted on the spec sheet, there listed as common Annode. From the way I have them wired up I would think they are the opposite?

Edit: Tested all four LED's I bought, 2 where common cathode, and two common anode, the website had them listed as common anode. Doesn't bother me, but I'll probably send the website an email in-case they send the wrong LED's to someone that actually needs them on way or the other.
11  Using Arduino / Programming Questions / Re: Unexpected behavior using digital pins to control an RGB LED on: August 08, 2012, 03:47:39 pm
I was following through an arudino tutorial (http://www.ladyada.net/learn/arduino/lesson3.html).

I missread this as 10k smiley-razz  "Always use a resistor! A 1.0K ohm is a good place to start. We'll cover how to figure out the best resistor value later on."

Thanks for the help guys.
12  Using Arduino / Programming Questions / Re: Unexpected behavior using digital pins to control an RGB LED on: August 08, 2012, 03:49:32 am
Cheers grumpy, I'll give that a try, I did it the way I have now as I only had two 10k resisters left, I'll go pick some more up tomorrow smiley-razz
13  Using Arduino / Programming Questions / Unexpected behavior using digital pins to control an RGB LED on: August 08, 2012, 03:33:34 am
Bought my first arduino board two days ago and have just been playing around with LED's etc, I've built a 3x3 cube and have had no problem programming it to display an array of patterns etc.

Today I got some 3mm RGB LED's. I have it plugged into a breadboard with the common cathode plugged into a 10k Ohm resister, and then into the 5v on the arudino board.
Each of the three annodes is plugged into digital pins 8,9 and 10.

This is the code I'm using:
Code:
int red = 8;
int blue = 9;
int green = 10;
int time = 500;

// the setup routine runs once when you press reset:
void setup() {               
  // initialize the digital pin as an output.
  pinMode(red, OUTPUT);
  pinMode(blue, OUTPUT);
  pinMode(green, OUTPUT);
 
  digitalWrite(red, HIGH);
  digitalWrite(green, HIGH);
  digitalWrite(blue, HIGH);
}


void loop() {

  digitalWrite(red, LOW);     //Red
  delay(time);   
  digitalWrite(red, HIGH);
  delay(time);
  digitalWrite(green, LOW);   //Green
  delay(time);
  digitalWrite(green, HIGH);
  delay(time);
  digitalWrite(blue, LOW);    //Blue
  delay(time);
  digitalWrite(blue, HIGH);
  delay(time);
 
  digitalWrite(red, LOW);    //Red & Green
  digitalWrite(green, LOW);
  delay(time);
  digitalWrite(red, HIGH);
  digitalWrite(green, HIGH);
  delay(time);
 
  digitalWrite(green, HIGH);  //Green & Blue
  digitalWrite(blue, HIGH);
  delay(time);
  digitalWrite(green, HIGH);
  digitalWrite(blue, HIGH);
  delay(time);
 
  digitalWrite(red, LOW);   //Red & Blue
  digitalWrite(blue, LOW);
  delay(time);
  digitalWrite(red, HIGH);
  digitalWrite(blue, HIGH);
  delay(time);
 
}

With the above code I was trying to flash on then off each color on separately, then start mixing to colors  two at a time.

When the program runs, turning on each colour one at a time works as expected, but things start turning weird when I try to use two colours.

This is what I see happening:

red on
pause
red off
pause

blue on
pause
blue off
pause

green on
pause
green off
pause
(where it gets weird)
red on
red off
blue on
blue off
pause
green on
green off
pause


This red bit then continually repeats.
Pages: [1]