Lesson 5 - Some are brighter than others?

For makers who have purchased an Adafruit Starter Pack, get help with the tutorials here!

Moderators: adafruit_support_bill, adafruit

Lesson 5 - Some are brighter than others?

Postby threebean » Wed Oct 29, 2008 9:18 am

Hi,

I just got done playing around with lesson 5 and changed it to have 10 LEDs. I am using pins 3 - 12 as outputs.

The thing is, some of the LEDs are dimmer than the others. It almost seems as though pin 3 is the brightest and pin 12 is the dimmest. Pins 9, 10, 11, 12 are noticeably dimmer than 3. I think the others are also dimmer, but they are not that different that it calls attention to them.

I have swapped the LEDs around and it doesn't matter. I have tried new resistors, and swapping them too. Same thing 3 brightest, 12 dimmest.

I thought it might be due to too many being on at once, but even when there is only 1 on at a time, the level of brightness is in correlation to it's pin position.

Any ideas?

I have pictures of the setup, but I will have to post another one to show the dimm effect.

Thanks for the tutorial - it was awesome! I am going to use this in my Halloween robot costume. :)

-Steven
Image
Image
Last edited by threebean on Thu Oct 30, 2008 10:33 pm, edited 1 time in total.
threebean
 
Posts: 19
Joined: Thu Oct 25, 2007 9:46 am

Re: Lesson 5 - Some are brighter than others?

Postby threebean » Wed Oct 29, 2008 9:28 am

OH,

I also want to give a HUGE THANK YOU to ladyada!

I really appreciate the time you took to write and publish the lessons/tutorials.

I was thinking of how I could use my Arduino for my costume control panel and I thought to check back with your site to see if any of your lessons could get me started. Lesson 5 was perfect!

THANKS AGAIN - you really made my day!!!
threebean
 
Posts: 19
Joined: Thu Oct 25, 2007 9:46 am

Re: Lesson 5 - Some are brighter than others?

Postby adafruit » Wed Oct 29, 2008 10:06 am

pins 9, 10, 11 & 12 are used for serial programming. try using the analog input pins (they can be setup as outputs, just call them pins 14-20)
User avatar
adafruit
 
Posts: 10548
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: Lesson 5 - Some are brighter than others?

Postby threebean » Wed Oct 29, 2008 1:45 pm

Cool, thanks for helping me out. I will give that a try tonight!
threebean
 
Posts: 19
Joined: Thu Oct 25, 2007 9:46 am

Re: Lesson 5 - Some are brighter than others?

Postby threebean » Thu Oct 30, 2008 9:21 am

Hi,

I gave that a try last night, but got the same results. I am posting a picture of it.

Turns out that those 4 didn't matter, tho i would like to figure it out for my own knowing. I went to put it into the box and i didn't have room for 10 anyway, 6 is just perfect.

I will have to post a picture of it in the box and maybe a video of it if i can.

Thanks again for the help on my Halloween costume!

Image
Last edited by threebean on Thu Oct 30, 2008 10:33 pm, edited 1 time in total.
threebean
 
Posts: 19
Joined: Thu Oct 25, 2007 9:46 am

Re: Lesson 5 - Some are brighter than others?

Postby westfw » Thu Oct 30, 2008 9:41 am

While 1k resistors are nice safe values for experiments, when you have "exotic" colored LEDs like you have (very pretty, BTW), you're severely UNDER-driving them. Assuming Vf of about 3.5V, you're only putting about 1.5mA through them (and presumably they're 20mA LEDs.) That MIGHT be a drive level where relatively minor changes in pin characteristics make significant differences in illumination. Try 100 to 220 ohms?

(I don't see brightness differences in the little chase circuit I've got going next to me, but I don't have any resistors in the red led paths, so I'm presumably overdriving the LEDs a lot...)
User avatar
westfw
 
Posts: 1328
Joined: Fri Apr 27, 2007 12:01 pm
Location: SF Bay area

Re: Lesson 5 - Some are brighter than others?

Postby trialex » Thu Oct 30, 2008 8:23 pm

Also double check you have a

Code: Select all
pinMode(pin, OUTPUT);


for every pin - if you don't they can't source/sink as much current and LEDs are a lot dimmer.
trialex
 
Posts: 188
Joined: Mon Apr 03, 2006 5:25 pm

Re: Lesson 5 - Some are brighter than others?

Postby threebean » Thu Oct 30, 2008 10:39 pm

trialex - you get a beer! That is exactly what is wrong. I only have that for pins 1-5. It is in it's costume now, but when I take it apart I will give it a try again!

westfw - thanks for your input too. I have to admit, I know very little about electronics. I got a bunch of these LEDs off of eBay without much knowledge on them. I know some are supposed to be 2.2v and some 3.2v.
threebean
 
Posts: 19
Joined: Thu Oct 25, 2007 9:46 am

Re: Lesson 5 - Some are brighter than others?

Postby threebean » Thu Oct 30, 2008 10:49 pm

Here is my costume. I had seen this costume and made mine based off it.

Image

My son had lots of fun running around me as we were trick-or-treating.

Here is a video of the control panel.
threebean
 
Posts: 19
Joined: Thu Oct 25, 2007 9:46 am

Re: Lesson 5 - Some are brighter than others?

Postby Amberwolf » Fri Oct 31, 2008 1:26 am

That's cool--John of TeamDroid is a friend of mine, though I never saw that costume of his except in photos. :) If it's ok with you, I'll link him to your pics.
Watch me build an electric bike from assorted junk!
Alternative Energy Sources for the Home from Recycled Junk
A subsidiary of Cybernetic Necromancers, Discorporated:
"We Bring Dead Things To Life"
User avatar
Amberwolf
 
Posts: 310
Joined: Wed Oct 08, 2008 1:42 am
Location: Phoenix, AZ, USA

Re: Lesson 5 - Some are brighter than others?

Postby threebean » Fri Oct 31, 2008 7:41 am

Yeah that is cool, i sent him an email about my costume too.
threebean
 
Posts: 19
Joined: Thu Oct 25, 2007 9:46 am


Return to Arduino Starter Pack

Who is online

Users browsing this forum: No registered users and 4 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [114]

Raspberry Pi[82]
 
FLORA[24]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[12]
Arduino[60]
 
NETduino[14]
 
BeagleBone[23]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[39]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[9]


 
Breakout Boards[35]
LCDs & Displays[49]
Components & Parts[70]
Batteries & Power[54]
EL Wire/Tape/Panel[52]
LEDs[112]
 
Wireless[16]
Cables[66]
 
Lasers[6]
Sensors/Parts[147]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[41]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[25]


 
Stickers[41]
 
Skill badges[55]
 
Books[26]
 
Circuit Playground[7]
 
Gift Certificates[4]