Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
LinkBack Thread Tools Display Modes
Old 14th August 2006, 10:26 AM   (permalink)
Default 2 digit 7 segment display

Seeking help.

Im currently doing a project relating to microcontroller, temperature sensor and a whole lot of small stuff to make a big bunch of stuff.

To cut things short, im doing the 2 digit 7 segment display.
I manage to get single digit 7 segment to lit up but not 2 digit together. I start to doubt 2x7447 could not make up 2 digit 7 segment. If it is possible could someone care to show me how it could be done?

Here is the current schematic i made up but it is still 2 individual 7 segment instead of 2 digits.

**anyway, i forget the connection from the 7447's GND to GN
Attached Images
File Type: jpg drawn schematic00.jpg (59.9 KB, 94 views)

Last edited by soryo; 14th August 2006 at 10:29 AM.
soryo is offline  
Old 14th August 2006, 11:02 AM   (permalink)
Default

Why not drive the displays from the micro-controller? - it seems a complete waste of two extra chips?.

Check my PIC tutorials for an example of how to do it with a PIC.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 14th August 2006, 12:07 PM   (permalink)
Default

Well, using microcontroller to run it require 14 input port to the 2 digit 7 segmet and plus 1 more for LED to indicate polarity.

Using transistor will make it less. True.

Since im already done the 7 segment and troubleshooting it. I thought i could continue. Then i will not need to do so much programming on my limited space microcontroller.

Im using AT89S52 (only contain 8Kb Programmable Flash Memory). I still have programs for other part of my system.

Back to 7 segment. Is there any combination of logic that will make the thwo 7447 to form a 2 digit decoder?
soryo is offline  
Old 14th August 2006, 12:56 PM   (permalink)
Default

Quote:
Originally Posted by soryo
Well, using microcontroller to run it require 14 input port to the 2 digit 7 segmet and plus 1 more for LED to indicate polarity.

Using transistor will make it less. True.
No, you only need eight connections in total to the two LED's, plus an extra for your polarity indication - it's called multiplexing, and is almost universal with LED displays.

There's also a more complicated version called 'charlie-plexing' which uses even less wires.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 14th August 2006, 01:34 PM   (permalink)
Default

http://esd.cs.ucr.edu/labs/mdec_coun...c_counter.html

this is one example link and resource i found. But i have no knowledge on those and it is a counter instead of a normal 7 segment display. Instead i go for something i know but it doesnt work as i want it to be =(

I have 12-bits output to my microcontroller that will be feed into my 7 segment ( 8/12 -bit )

Someone can give me a head start on using multiplexer?
soryo is offline  
Old 14th August 2006, 01:45 PM   (permalink)
Default

Quote:
Originally Posted by soryo
http://esd.cs.ucr.edu/labs/mdec_coun...c_counter.html

this is one example link and resource i found. But i have no knowledge on those and it is a counter instead of a normal 7 segment display. Instead i go for something i know but it doesnt work as i want it to be =(
That's the sort of thing, except as it only uses two digits, you can use a single pin to select between them, saving an extra pin - like this http://www.winpicprog.co.uk/pic_tutorial_7seg_board.htm.

Being a counter makes no difference, it's the hardware you're looking for, and just take the pieces of sofware you need, or write your own from scratch?.

Quote:

I have 12-bits output to my microcontroller that will be feed into my 7 segment ( 8/12 -bit )
Well 12 bits gives four digits resolution (0-4095), so how do you want to display it on two digits (0-99)? - basically you're probably looking at maths routines.

Quote:

Someone can give me a head start on using multiplexer?
Although you can't use the PIC code, http://www.winpicprog.co.uk/pic_tutorial10.htm will give you an idea of how multiplexing works.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 14th August 2006, 03:22 PM   (permalink)
Default

Quote:
Originally Posted by Nigel Goodwin
That's the sort of thing, except as it only uses two digits, you can use a single pin to select between them, saving an extra pin - like this http://www.winpicprog.co.uk/pic_tutorial_7seg_board.htm.

Being a counter makes no difference, it's the hardware you're looking for, and just take the pieces of sofware you need, or write your own from scratch?.
will look into it. Thx nigel

Quote:
Originally Posted by Nigel Goodwin
Well 12 bits gives four digits resolution (0-4095), so how do you want to display it on two digits (0-99)? - basically you're probably looking at maths routines.
the output is from a digital thermometer that has fix address for certain range of temperature. Those are fixed addresses that cannot be altered, therefore the output is at a 12-bit resolution.

Unless i convert the 12-bit to a 8-bit resolution, which is very hard in term of programming a decoder for it in the microcontroller. But i shall see what i can do 1st.
The 12-bit digital thermometer read from a range of +125 Degree C to -55 degree C. Between the polarity(+ve, 0, -ve), the MSB is the indicator of the polarity. Even though it is a 12-bit, it do not make use of every bit and address

Quote:
Originally Posted by Nigel Goodwin
Although you can't use the PIC code, http://www.winpicprog.co.uk/pic_tutorial10.htm will give you an idea of how multiplexing works.
will look into it more in detail. thx

Last edited by soryo; 14th August 2006 at 03:26 PM.
soryo is offline  
Old 14th August 2006, 04:00 PM   (permalink)
Default

Quote:
Originally Posted by soryo
Unless i convert the 12-bit to a 8-bit resolution, which is very hard in term of programming a decoder for it in the microcontroller.
It's dead simple - just use the top 8 bits, and discard the bottom 4 bits (VERY simple divide by 16).

However, that probably isn't what you want? - you will probably need to scale (multiply and/or divide) the 12 bit number to get the temperature readings you want.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk

Last edited by Nigel Goodwin; 14th August 2006 at 04:06 PM.
Nigel Goodwin is online now  
Old 14th August 2006, 05:10 PM   (permalink)
Default

You beat me to it with the multiplexing idea Nigel, but I've never actually heard of Charlie-Plexing...

Brian
ThermalRunaway is offline  
Old 14th August 2006, 05:12 PM   (permalink)
Default

Here's something google turned up for me, if anyone else is interested in Charlie Plexing.. http://www.maxim-ic.com/appnotes.cfm...te_number/1880

Good luck with your project Soryo - keep us updated on how you're getting on

Brian
ThermalRunaway is offline  
Old 14th August 2006, 05:17 PM   (permalink)
Default

Quote:
Originally Posted by ThermalRunaway
You beat me to it with the multiplexing idea Nigel, but I've never actually heard of Charlie-Plexing...
You've not been paying attention!!!.

Expect 'Mike, K8LH' to pop up any moment, he's posted LOT'S of charlie-plexing projects on these forums!.

You might also check http://en.wikipedia.org/wiki/Charlieplexing - interesting where the name came from!.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 11:28 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

eXTReMe Tracker