Thursday, December 15, 2011

Pic 16f84a Led cube

                      Here is my 3x3x3 LED Cube project. It runs using a PIC16F84A. Each layer of 9 LEDS are connected with all of the cathodes together. The cube is multiplexed, means that only one layer is on at any one time. It happens so quickly so the whole cube looks like it is illuminated.







Circuit:
In my circuit i don"t mention about the power supply you can use a regulated 5v supply for the proper working of the cube.You can substitute the value of the 2N3904 with any npn high current rating transistor.The value of the oscillator(crystal) is 4 MHz.


Crystal Connection

                        

                               
              3x3x3 led cube made up of Pic16f84a micro-controller.



                        












                                                                                       

39 comments:

  1. can we get the program of this project?

    ReplyDelete
  2. hi,my name is skydiver,can we get the program ___hex of this project?

    ReplyDelete
  3. Hi sir,i send you a mail but no response.Please give me the hex for your project.Many thanks!

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. Replies
    1. Cristi plz look the post i had updated with the codes

      Delete
  6. for the cube, i am using 2mA diodes, how many mA is the output current of PIC16F84A-04/p, cause i think that 220ohm resistors are not enough. Can i put on +Udd more than 1kohm resistor ?

    ReplyDelete
    Replies
    1. plz refer this information.

      Voltage on any pin with respect to VSS (except VDD, MCLR, and RA4):-0.3V to (VDD + 0.3V)
      Voltage on VDD with respect to VSS:-0.3V to +7.5V
      Voltage on MCLR with respect to VSS:-0.3V to +14V
      Voltage on RA4 with respect to VSS:-0.3V to +8.5V
      Total power dissipation:800mW
      Maximum current out of VSS pin:150mA
      Maximum current into VDD pin:100mA
      Input clamp current, IIK (VI < 0 or VI > VDD):± 20mA
      Output clamp current, IOK (VO < 0 or VO > VDD):± 20mA
      Maximum output current sunk by any I/O:25mA
      Maximum output current sourced by any I/O pin:20mA
      Maximum current sunk by PORTA:80mA
      Maximum current sourced by PORTA:50mA
      Maximum current sunk by PORTB:150mA
      Maximum current sourced by PORTB: 100mA.

      Delete
    2. So i wouldn't burn my LED's ?

      Delete
    3. i had already build with 220R resistor. I don't face any problem till now.

      Delete
  7. it's ok, but your diodes works at 2mA or 20mA ?

    ReplyDelete
    Replies
    1. please check the circuit once again where you find the diode in the circuit. A 220R resistor is connect blw the led and the ports.

      Delete
  8. oh god, I've made a circuit... but i ask you for LED's, are they working on 2 milli amps or 20 milli amps. i know that you put 220 ohm resistors, but if my diodes works on 2mA i will burn them with that low resistance. So i am asking you, how much milli amps your LED's are using.

    ReplyDelete
  9. You still don't understand my question.

    ReplyDelete
    Replies
    1. What help did i want do for u? I don't get your ques..........

      Delete
    2. Can i put on +Udd more than 1kohm resistor. What you mean by +Udd ????

      Delete
    3. Ivan are you using a 2mA rating leds in your circuit???

      Delete
    4. The Data Sheet says the PIC16F628A, can sink 25ma on each I/O pin. And, the chip can sink a total of 200ma. at any one time.

      If you connect an LED in series with a 220 ohms resistor to each PortB I/O pin, you will never come close to reaching the 200ma limit. (with each LED circuit tied to +5v, the LED is lit when the controlling I/O pin is at logic LOW, providing a ground path for the LED current {sink current})but if you connect it without the resistor the led will fried before the pic.

      Delete
  10. yes, i am using 2mA led diodes in my circuit, and i ask you, your your leds, how mA are they rating ?

    ReplyDelete
  11. ivan wants to know the power rating of the led's you are currently using. Are you using 2mA 20mA or 25mA in your ciruit?

    ReplyDelete
  12. thanks. Do i need 2 capacitors of 22 - 33 pF with quartz crystal, cause i don't see them on the scheme ?

    ReplyDelete
    Replies
    1. Ivan you need only 2 capacitor of either 22 or 33 pF. I don't add in my circuit. i will update it now

      Delete
    2. Ivan if u have any problems plz share with me.....

      Delete
  13. Can I have the hex_ code for this project?

    ReplyDelete
  14. Can I have the hex_ code for this project?

    ReplyDelete
  15. I will update the link. You can download from there.

    ReplyDelete
  16. please albin george help me on my project and send me th programme for cube3*3*3 '16f84a' .i sended to u a message on ur gmail . please help me!

    ReplyDelete
  17. can we the code program of this proyect

    ReplyDelete
  18. can we the code program of this proyect

    ReplyDelete
  19. Please send programme code on ivanctr8@gmail.com

    ReplyDelete