Simple score board with PIC16F690 & 7 segment display

September 22nd, 2009 by Dragos Leave a reply »

Today i finished my second PIC project The first one was a LED Cube, but i didn’t published anything about it just because there are a lot of similar projects out there.
So my project is a simple score board. Two 7 segments displays with a button for each one, the full source code (assembler) and schematics.

PIC16F690 score board 1

This is a screen shot of the final assembly (yes, i soldered 2 flags :lol: )

To build this board you need 2 330Ω, 7 220Ω and 2 10KΩ resistors, 2 NPN transistors, a PIC16F690, two 7 segment display (i used in my build a common cathode, if you use a common anode you have to change the schematics and code a little)  and 2 push buttons.

On my board i didn’t connected the decimal point (DP) from the displays, so if you want to connect yours then you have to get another 200Ω resistor for it and connect it to port B7.

VN:F [1.9.22_1171]
Rating: 6.9/10 (14 votes cast)
Simple score board with PIC16F690 & 7 segment display, 6.9 out of 10 based on 14 ratings
Advertisement

10 comments

  1. mark shelbourne says:

    please could you let me knowif you have a .hex for this project i cannot get the asm file to build … thanks for your help in this great project

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  2. Dragos says:

    I added the hex file to the archive. please download again.
    What errors did you got when compiling ?

    VN:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VN:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  3. Chris Hurd says:

    This is the answer I have been looking for! I know little about PICs, but this will head me in the right direction.

    One thing though… I would like to be able to score up to 99 to 99.
    Would you be willing to help me do this?

    I am a teacher in upstate NY.

    Thanks!

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
    • Dragos says:

      I can help you out. What do you need to know ? With what exactly do you need help with ? First you will have to replace the two 7 segment display with a double one. Also you will need to change the code. There are a lot of changes to be made to the code but the principle remains the same. You have to show each digit at a time, the same as with only 2 digits.

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
      VN:F [1.9.22_1171]
      Rating: 0 (from 0 votes)
  4. newbie999 says:

    draggo,

    I would like to have a look at your codes too.

    How I I get to the archive here for your codes? I am new here.

    VN:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VN:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  5. Dragos says:

    the download link is on the second page of this post.
    just for short, you can download it here:
    http://www.protung.ro/wp-content/plugins/download-monitor/download.php?id=5

    VN:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VN:F [1.9.22_1171]
    Rating: +1 (from 1 vote)
  6. newbie999 says:

    I got it. Thanks

    i am not so good at electronics, but I love to learn.

    by looking at your schematic, hmm

    I do not really understand one thing.

    r3 and r4 are pull down resistors right?
    when either button is pressed, it gives a “1” but your 7 segment displays are common cathode type

    how come the cathode pins are not connected directly to the ground?

    Thanks

    Ps: by the way i have started learning assembly 2 weeks ago lol It will take me long to figure out the codes you wrote

    VN:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VN:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  7. Dragos says:

    I think i made a mistake in the schematics, the T1 and T2 have the collector and emitter reversed.
    I’m not a big-shot in electronics either, this was just a project i made so i would start to relearn it.
    I will dedicate some time to electronics again next year when i have time again for electronics, but i will try to help you out if i can.

    VN:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VN:F [1.9.22_1171]
    Rating: +1 (from 1 vote)
  8. newbie999 says:

    Cool, pal.

    Keep up the good work!

    VN:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VN:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  9. newbie999 says:

    DRagos,

    by the way, would you kindly fix your shematic in your spare time and repost it on here, please?

    I would like to see the correct circuit.

    Thank you so much!

    VN:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VN:F [1.9.22_1171]
    Rating: +1 (from 1 vote)