0
Offline
Full Member
Karma: 0
Posts: 209
Arduino rocks
|
 |
« on: October 10, 2012, 06:35:46 pm » |
I have two waterproof CDS sensors reading LED output in a vat of pulp that will determine the weight of hand made paper by reading density between the two. The CDS is reading fine on the serial monitor but the LED's are barely lighting even though the voltage is just over 5v on the perf board rails. In another configuration (no shield), the system worked fine powered by the Arduino. I assume an error in the DIY shield has radically compromised current? Any ideas?
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Full Member
Karma: 0
Posts: 209
Arduino rocks
|
 |
« Reply #1 on: October 10, 2012, 07:04:57 pm » |
|
|
|
|
|
Logged
|
|
|
|
|
Dubuque, Iowa, USA
Offline
Edison Member
Karma: 13
Posts: 1539
|
 |
« Reply #2 on: October 10, 2012, 07:36:09 pm » |
Did you remember to pinMode(ledpin, OUTPUT);?
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Full Member
Karma: 0
Posts: 209
Arduino rocks
|
 |
« Reply #3 on: October 11, 2012, 02:55:22 am » |
Yes, pinMode is set to output. The LED's are lighting, just barely visible. Same sketch was lighting them brightly previous to the shield setup.
|
|
|
|
|
Logged
|
|
|
|
|
Valencia, Spain
Offline
Edison Member
Karma: 65
Posts: 2246
|
 |
« Reply #4 on: October 11, 2012, 03:23:06 am » |
the LED's are barely lighting even though the voltage is just over 5v on the perf board rails.
What's the voltage at the LEDs? Have you got correct resistors? Try replacing the LEDs.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Full Member
Karma: 0
Posts: 209
Arduino rocks
|
 |
« Reply #5 on: October 11, 2012, 09:02:19 am » |
Voltage at the LED is just over 5v. An LED at the 5v/gnd connections from the Arduino isn't bright either, even without a resistor!
|
|
|
|
|
Logged
|
|
|
|
|
Valencia, Spain
Offline
Edison Member
Karma: 65
Posts: 2246
|
 |
« Reply #6 on: October 11, 2012, 09:13:38 am » |
Voltage at the LED is just over 5v. An LED at the 5v/gnd connections from the Arduino isn't bright either, even without a resistor!
Damaged LEDs...? Try a different one.
|
|
|
|
|
Logged
|
|
|
|
|
Leeds, England
Offline
Full Member
Karma: 6
Posts: 186
Quick, chuck it in the bin before the boss finds out...
|
 |
« Reply #7 on: October 11, 2012, 09:44:57 am » |
Anything getting warm suggesting a short somewhere?
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Full Member
Karma: 0
Posts: 209
Arduino rocks
|
 |
« Reply #8 on: October 11, 2012, 10:15:29 am » |
Nothing warm and checked LED's with same resistor. They are bright. Seems odd. Can't understand why the LED's are so dim on 5v.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Full Member
Karma: 0
Posts: 209
Arduino rocks
|
 |
« Reply #9 on: October 11, 2012, 11:35:24 am » |
Thanks for the advise. Taking the cowardly way out; going to Radio Shack for a shield. This is my fourth time around with perf board with no guarantee the next attempt will be successful.
|
|
|
|
|
Logged
|
|
|
|
|
Anaheim CA.
Offline
Edison Member
Karma: 31
Posts: 2307
Experienced old Whitebeard with a Full head of Hair...
|
 |
« Reply #10 on: October 11, 2012, 12:26:05 pm » |
Did you verify that ground on the shield was ground?. Frequently the assumption is that "Ground is Ground"... Having the correct voltage on one side is no proof that the other side is correct. If your ground return is the culprit... Always measure across the part as a means of separating bad parts from bad wiring.
Bob
|
|
|
|
|
Logged
|
“The solution of every problem is another problem.” -Johann Wolfgang von Goethe
|
|
|
|
Valencia, Spain
Offline
Edison Member
Karma: 65
Posts: 2246
|
 |
« Reply #11 on: October 11, 2012, 12:47:05 pm » |
Voltage at the LED is just over 5v. An LED at the 5v/gnd connections from the Arduino isn't bright either, even without a resistor!
What I meant was: What's the voltage between the legs of the LED when it's lit up?
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Edison Member
Karma: 13
Posts: 1239
Arduino rocks
|
 |
« Reply #12 on: October 11, 2012, 12:51:17 pm » |
how are you powering this? maybe if using a USB, then you can try external power supply?
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Full Member
Karma: 0
Posts: 209
Arduino rocks
|
 |
« Reply #13 on: October 11, 2012, 01:12:55 pm » |
For unknown reasons, the shield is working as designed. Little afraid the short may reappear but satisfied for now. Thanks.
|
|
|
|
|
Logged
|
|
|
|
|
Anaheim CA.
Offline
Edison Member
Karma: 31
Posts: 2307
Experienced old Whitebeard with a Full head of Hair...
|
 |
« Reply #14 on: October 11, 2012, 04:45:38 pm » |
From the information you reported it is more likely an intermittent ground return to the Uno than a short. Shorts usually draw great amounts of un wanted current. It's also possible that your ground is/was a port pin that was providing the ground. Somewhat appropriate was an incident in the aerospace industry that I was a part of as a consultant, I didn't find or fix the issue but I was there when it was. a designer built a rather big PCB (about 60 Cmos IC's) and it worked well except at rated clock speed and the issue turned out to be the main 5V source lead... not soldered properly on a shrouded connector. Seems that the inputs from outside control elements were powering the board, through the input protection diodes.
Bob
|
|
|
|
|
Logged
|
“The solution of every problem is another problem.” -Johann Wolfgang von Goethe
|
|
|
|
|