Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

PIC16F876 - 7 segment display

Status
Not open for further replies.

pkvasan

New Member
Hi

For my Taximeter project i want to display data on a 7 segment display. I need to connect 10 nos of 7 segment displays. First five digit display fare and next five digit displaying distance in KM.

I have tried with LCD display and it works perfectly, but i am confused with driving 7 segment display.

can any one help in suggesting proper way to connect 10 nos of 7 Segment Display & is PIC16F876 capable of doing this with BCD chip. Please help.

Thanks
KV
 
These are from a tutorial,you can learn how to connect and every thing just use your program instead of this one!
 
Last edited:
For ten 7 segment displays you could use two M5451's. Do search for 74HC164 or 74HC595 for other options, this has been discussed a lot.
 
MAJOR EDIT so that this actually makes sense. Apologies for the previous nonsense.

I'd probably try this using some sort of 1-in-10 chip (4017) with the outputs connected to the 7seg displays' anodes (common anode type display). This gives one display power at a time; you then need to get something like a 4511 (BCD to 7-segment decoder) and connect the INVERTED result to the cathodes. Then put resistors between those connections and 0V:

Code:
			a--o--[ R ]-|
			b--o--[ R ]-|
			c--o--[ R ]-|
4017 -> Display -> 	d--o--[ R ]-|
			e--o--[ R ]-|
			f--o--[ R ]-|
			g--o--[ R ]-|
				    |
				    0V

The o's above are the appropriate inverted outputs from the 4511, and the [ R ]'s are resistors. My theory behind the above circuit is that when the 4511 lights a segment, the inverted output is low and so current flows from the 4017 to 0V, lighting the segment; as the 4511 turns a segment off, there is no potential difference between the 4017 and the display pin and so the segment does not light.

The 4511 reads your 4 of your PIC's output ports which have been coded to do BCD; you'll also need two output ports to control the 4017 (clock and reset). You maintain a variable to indicate which display is being written to. Set this to the first display and tell your PIC to reset the 4017 to sync up, then output this display. Next rapidly oscillate (>60Hz or so) the output connected to the 4017's clock while modifying the variable and setting the outputs appropriately to do the rest of the displays.

The main reason I suggest this solution, which is probably a bad one :), is because I don't know how to use transistors.:confused: In any case however, if you're multiplexing displays like this, you shouldn't do it direct from the PIC as you may not get enough current.

ahydra
 
Last edited:
Status
Not open for further replies.

Latest threads

Back
Top