Pages: [1]   Go Down
Author Topic: negative wire problem  (Read 305 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi! i'm having a little problem. Then i touch negative wire led's turn on, I don't know why...
Pin 2 in arduino always turned on. Then i don't touch negative wire, led don't turn on... Image:
« Last Edit: December 27, 2013, 08:58:05 am by donce16 » Logged

Cumming, GA
Offline Offline
Edison Member
*
Karma: 20
Posts: 1643
Ultimate DIY: Arduino
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Where are you getting such bad ideas about how transistors really work.

Your drawing is wrong,  For one, you are missing a base current limit resistor.  Are you sure you have a PNP transistor?  Because that is what you have drawn... and that would be the wrong part here.



* LED.JPG (56.67 KB, 775x788 - viewed 26 times.)
« Last Edit: December 27, 2013, 10:19:40 am by pwillard » Logged

0
Offline Offline
Shannon Member
****
Karma: 200
Posts: 11730
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The original bad circuit is holding the PNP base-emitter junction at the point
of reverse breakdown, so a small extra voltage is perhaps all that's needed to
modulate the current substantially.   Or it could be that the circuit is undergoing
parasitic oscillation which is damped down by touching the ground wire.

Anyway it doesn't matter, its completely wrong in the first place!  You may have
damaged both pin 2 and the PNP transistor, note, double check they still work
(reverse biasing the base-emitter junctions usually fries a transistor, and the breakdown
voltage is often about 5V)
Logged

[ I won't respond to messages, use the forum please ]

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Now i have problem, pin from  2 to 12 led didn't turn on, but then i connect led to pin 13 its perfectly work. Please help. IMAGE:
Logged

Lacey, Washington, USA
Offline Offline
Edison Member
*
Karma: 154
Posts: 2263
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

LEDs require current limiting resistors when used this way. Pin 13 has one built-in, none of the other pins do. You may have burned out either the LED or the pins on the Arduino.
Logged

Steve Greenfield AE7HD
CET Consumer Electronics and Computer
Please don't read your attitudes into my messages

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Arduino nano. from 2-12 pins i get 1.52 volts, from 13 3.40 volts, from 5v only 3.5 volts.
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 604
Posts: 33432
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
from 2-12 pins i get 1.52 volts,
Have you set the pins to be outputs using a pinMode call?

Quote
from 5v only 3.5 volts.
You sure your meter is correct?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
from 2-12 pins i get 1.52 volts,
Have you set the pins to be outputs using a pinMode call?
OH YES, i forget to write  pinMode(ledPin, OUTPUT); Thanks dude, very helped. smiley)

Quote
from 5v only 3.5 volts.
You sure your meter is correct?
Then all led's off i get 3.60 volts.
Logged

Pages: [1]   Go Up
Jump to: