Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Question about using PIC OR ATMEL

Status
Not open for further replies.

kobre98

Full Member level 2
Joined
Sep 18, 2011
Messages
145
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Location
Gaza, Palestine
Activity points
2,523
I want to make a Rotating led display in which I will connect 30 leds that will light at the same time,
I tried to this with PIC but it miss function cause of current drain !!!
Could this be done with ATMEL AT89C51 ?!?!
 

put some your circuit diagram or code.
 

it's not ready yet, but it involve 30 led with 220 resistor for each connected to 30 pins of the micro-controller
 

it's not ready yet, but it involve 30 led with 220 resistor for each connected to 30 pins of the micro-controller
so 30 pin use then which micro controller u used ? and what is your resistor value? and your goal is light up all L.E.D right ?
 

I used PIC18F and PIC16F
with resistor value 220 ohm
it didn't work
I heard that I can use AT89C51 and it can provide more power
 

On pic mcu you have max 20mA per pin, dont forgot this info....
 

Do you want to turn ON/OFF each LED individually or or you multiplexing some or all of them? You can use 4 X 74HC595 to drive 32 LEDs and it connects to micro with 3 pins. You need micro with 3 digital IO pins and some 2KB ROM. You can also use any 14 pin IC with I2C/SPI and use 2 X MCP23017/23S17. If you can get any 8 pin micro with I2C/SPI then it is also ok or you can use 8 pin micro with software i2c/spi.

**broken link removed**
 
Last edited:

thanks for your reply but I really need something compact, I don't need more ICs to be attached to the system, I just want a controller and the LEDs
since it will be rotating using a motor and I can't afford additional weight on the motor head
 

rotating using motor means input as a motor and led blink as a rotate motor state ?
 

Last edited:

thanks for your reply but I really need something compact, I don't need more ICs to be attached to the system, I just want a controller and the LEDs
since it will be rotating using a motor and I can't afford additional weight on the motor head


Hi,

You still have not answered the key question, how many leds will be on at any one time ?

A typical Pic 16F or 18F micro can handle up to 25ma per output pin BUT the total load on the chip is about 200-300ma so that limits how many leds you can drive directly.
Thats a different current load if you are multiplexing the leds, which again you do not say.
 

Hi,

You still have not answered the key question, how many leds will be on at any one time ?

A typical Pic 16F or 18F micro can handle up to 25ma per output pin BUT the total load on the chip is about 200-300ma so that limits how many leds you can drive directly.
Thats a different current load if you are multiplexing the leds, which again you do not say.

I want to light the 30 leds at the very same time, and does ATMEL support only 200-300ma as well ?!
 

Hi check the sinking current limitation and connect the current limiting resistors as to divide the current to 30 individual LEDs....
 

This is the best circuit for you. LEDs and resistors packs are needed for circuit using any micro. The space taken by 2 X port expanders and micro is less than that of 40 pin micro.

Another method is using one 74HC595, PIC12F1823, ULN2803 or 4 PNP transistors. Each transistor will drive 8 LEDs. 4 pins for transistors, 3 pins for 74HC595 (total 7 pins in micro). Multiplexed display. 8 leds turn ON at a time for a short period and then turn OFF.

97541d1382346584-30led.png


97551d1382351232-led1.png
 

Attachments

  • 30led.png
    30led.png
    61.7 KB · Views: 91
  • led1.png
    led1.png
    67.3 KB · Views: 83
Last edited:

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top