Not sure if your ones are diffused though Brad?
Here are some Diffused RGB 5mm Leds (50pcs) that are still quite cheap.
http://cgi.ebay.co.uk/50-Pcs-5mm-tri-co ... 19b6ba14cc
What leds do you use on your pov projects
Moderators: Chuckt, Garth, bitfogav
- brad
- Site Admin
- Posts: 2578
- Joined: Fri Mar 26, 2010 10:30 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: What leds do you use on your pov projects
Yes you're right!
The diffused ones are the ones you really want to go for
The diffused ones are the ones you really want to go for
- waywardson07
- decided to stick around...
- Posts: 25
- Joined: Wed Nov 24, 2010 5:01 am [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: What leds do you use on your pov projects
thanks alot for the info brad :]] i think im going to get some of those.....
in the meantime i bought one of the ones from radioshack just to play around with and i found out that this full color led has a common anode instead of cathode like i was hoping. well i was wondering how would i go about setting this led with a common anode to cycle through the rgb colors? i could figure a way to do it if it had a common cathode but im a little stumped with the common anode
in the meantime i bought one of the ones from radioshack just to play around with and i found out that this full color led has a common anode instead of cathode like i was hoping. well i was wondering how would i go about setting this led with a common anode to cycle through the rgb colors? i could figure a way to do it if it had a common cathode but im a little stumped with the common anode
- brad
- Site Admin
- Posts: 2578
- Joined: Fri Mar 26, 2010 10:30 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: What leds do you use on your pov projects
If you just wanted to test it out without using a microcontroller or any other hardware, then just connect the common anode straight to your power supply (most commonly 5volts if you are working with microcontroller circuits)
Then you will need three resistors. One for each cathode.
Connect each cathode to ground and you will light up that corresponding color. you can also mix the colors by lighting up more than one at a time.
If you are connecting it to a microcontroller then again just connect the common anode to your power rail (VCC) and then the other three connections (through your resistors) to three port pins of the microcontroller. The easiest way to work with it now is to just pretend they are common cathodes but before you send the data out to the LED pins, you just need to invert the data.
so if you wanted to cycle through the colors and you connect the LED to PORTA pins 0, 1 and 2 and you're programming in basic, you would do this:
If you ever are dealing with common anode (rather than common cathode) then you just need to invert the data before sending it to your port. Remember we are only dealing with the first three port pins of porta so if we started at 000 and sent that data to a common anode RGB LED, it would actually light them all up, so before we send the data out, we invert it using the xor instruction.
we xor our 8-bit variable with 255 (which is binary 11111111)
if we had the number 00000101 (which means that we wanted the first and third color to be lit) then putting it through the xor instruction we get:
Hopefully that helps!
Then you will need three resistors. One for each cathode.
Connect each cathode to ground and you will light up that corresponding color. you can also mix the colors by lighting up more than one at a time.
If you are connecting it to a microcontroller then again just connect the common anode to your power rail (VCC) and then the other three connections (through your resistors) to three port pins of the microcontroller. The easiest way to work with it now is to just pretend they are common cathodes but before you send the data out to the LED pins, you just need to invert the data.
so if you wanted to cycle through the colors and you connect the LED to PORTA pins 0, 1 and 2 and you're programming in basic, you would do this:
Code: Select all
while true
inc(leds)
leds = leds xor 255 ; this inverts the data in leds and stores it back in leds
porta = leds
leds = leds xor 255 ; invert back to original
delayms(500)
wend
we xor our 8-bit variable with 255 (which is binary 11111111)
if we had the number 00000101 (which means that we wanted the first and third color to be lit) then putting it through the xor instruction we get:
Code: Select all
00000101
xor 11111111
= 11111010
-
- newbie
- Posts: 3
- Joined: Fri Mar 25, 2011 12:33 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: What leds do you use on your pov projects
To diffuse LEDs I have used fine wet/dry sandpaper...600+ grit
A very light sanding works well.
A very light sanding works well.
- brad
- Site Admin
- Posts: 2578
- Joined: Fri Mar 26, 2010 10:30 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: What leds do you use on your pov projects
Thanks for the tip!22hertz wrote:To diffuse LEDs I have used fine wet/dry sandpaper...600+ grit
A very light sanding works well.
clear LED's are often quite a bit cheaper than diffused, so it would be a good way to save money.
Who is online
Users browsing this forum: No registered users and 3 guests