subinalex
Junior Member level 1
- Joined
- May 27, 2010
- Messages
- 15
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- kattappana
- Activity points
- 1,427
dear friends,
For a project i have 8 leds connected to port 0 with 1k zip pull ups
now my question is about connecting led
1.Is it safe connecting led's anode to Vcc through a 220 ohm resistor and cathode to port 0 which already has 1k zip resistors.
2. for connecting led to output of a driver ic l293d..which output 9v...what confgn of led i must use?..and need i connect it with cathode of led to pin of l293d and anode to vcc through 220 ohm?.....
Please answer my questions...i am afraid to connect it because i fear uc will burn or so?...and i hav only 1 uc.....
Added after 6 minutes:
when i connected buzzer red wire to port pin and black wire to gnd i couldnt hear any sound....i also connected led also in this manner...then it didnt blinked...
but when i connected its red wire to vcc and black wire to port pin i was able to hear sound as per i wrote in the program......thiss why i ask whether same should be done for leds.??
For a project i have 8 leds connected to port 0 with 1k zip pull ups
now my question is about connecting led
1.Is it safe connecting led's anode to Vcc through a 220 ohm resistor and cathode to port 0 which already has 1k zip resistors.
2. for connecting led to output of a driver ic l293d..which output 9v...what confgn of led i must use?..and need i connect it with cathode of led to pin of l293d and anode to vcc through 220 ohm?.....
Please answer my questions...i am afraid to connect it because i fear uc will burn or so?...and i hav only 1 uc.....
Added after 6 minutes:
when i connected buzzer red wire to port pin and black wire to gnd i couldnt hear any sound....i also connected led also in this manner...then it didnt blinked...
but when i connected its red wire to vcc and black wire to port pin i was able to hear sound as per i wrote in the program......thiss why i ask whether same should be done for leds.??