+ Reply to Thread
Page 1 of 2
1 2 Last
Results 1 to 15 of 21

Thread: controlling Displays

  1. #1
    Thunderchild Good Thunderchild Good Thunderchild Good Thunderchild Good
    Join Date
    Jul 2005
    Location
    UK
    Posts
    2,010

    Default controlling Displays

    OK so I'm taking my limited pic skills one step further: controlling displays.

    Now my first project will be a simple voltmeter, now what is the best way of interfacing with a 7 segment display from a pic ? I'm using mikroebasic so have the option of HD44780 communication but I think thats a bit too much as I'm only talking 3 characters and I think they come in a minimum of 8 chars. whats my best option ? because if I choose to "manually" interface 3 characters I'm going to be needing 3 7-8 bit ports on the pic or some contyrol circuitry that will make it awful cumbersome unless there are some semi intelligent diplays out there !

    ideas anyone ?

    I'm also at a loss as to where to buy HD44780 diplays as neither farnell or RS stock them
    Last edited by Thunderchild; 26th December 2009 at 09:55 AM.
    I AM the exeption that disproves the rule in many ways but the rules still apply (unfortunately)

    www.simonsphotography.org.uk/ - My other hobby
    www.rotaract1070.org.uk/ - make a difference and have fun !


    Never buy "Trust" products, all mine broke !!!


  2. #2
    4um Addict Mike2545 Excellent Mike2545 Excellent Mike2545 Excellent Mike2545 Excellent Mike2545 Excellent Mike2545 Excellent Mike2545 Excellent
    Join Date
    Jan 2009
    Location
    Toledo, Ohio
    Posts
    838

    Default

    Sparkfun has a 4 digit serial display SparkFun Electronics - 7-Segment Serial Display
    Mike 2545

  3. #3
    oz1lqb Newbie
    Join Date
    Jan 2005
    Posts
    3

    Default

    Hi Thunderchild..
    I hope i am not doing something wrong
    but here is a ebay address where i have bought mine from

    10 Yellow/Green LCD display modules 16x2 chars HD44780 on eBay (end time 10-Jan-10 09:38:49 GMT)
    He is cheap and the displays are good quality..

    all the best from Claus in denmark

  4. #4
    Thunderchild Good Thunderchild Good Thunderchild Good Thunderchild Good
    Join Date
    Jul 2005
    Location
    UK
    Posts
    2,010

    Default

    looks pretty neat, although dearer than HD44780 displays can be and I'll haveto pay postage to the uk but they are certainly more compact
    I AM the exeption that disproves the rule in many ways but the rules still apply (unfortunately)

    www.simonsphotography.org.uk/ - My other hobby
    www.rotaract1070.org.uk/ - make a difference and have fun !


    Never buy "Trust" products, all mine broke !!!

  5. #5
    Thunderchild Good Thunderchild Good Thunderchild Good Thunderchild Good
    Join Date
    Jul 2005
    Location
    UK
    Posts
    2,010

    Default

    I suppose the other option is to make a unit that will display from 4 sampling channels, that would make full use of a 16 X 2 display
    Last edited by Thunderchild; 26th December 2009 at 09:57 AM.
    I AM the exeption that disproves the rule in many ways but the rules still apply (unfortunately)

    www.simonsphotography.org.uk/ - My other hobby
    www.rotaract1070.org.uk/ - make a difference and have fun !


    Never buy "Trust" products, all mine broke !!!

  6. #6
    House0Fwax Newbie
    Join Date
    Nov 2006
    Location
    Hampshire U.K.
    Posts
    291

    Default

    Quote Originally Posted by Thunderchild View Post
    although dearer than HD44780 displays can be and I'll haveto pay postage to the uk
    I don't know if you read the description right, but the price is for 10 units, the postage is £1.99 and the seller is in the U.K.
    Essentially making each display £1.20p.

  7. #7
    Thunderchild Good Thunderchild Good Thunderchild Good Thunderchild Good
    Join Date
    Jul 2005
    Location
    UK
    Posts
    2,010

    Default

    Quote Originally Posted by House0Fwax View Post
    I don't know if you read the description right, but the price is for 10 units, the postage is £1.99 and the seller is in the U.K.
    Essentially making each display £1.20p.
    my message was with reference to the sparkfun parts, I have bought those 16 X 2 displays off ebay and indeed at £1.20 each its a bargain, just gigger than i had in mind but then I cam make a bigger project of it ! I was hoping for a compact and cost effective solution
    I AM the exeption that disproves the rule in many ways but the rules still apply (unfortunately)

    www.simonsphotography.org.uk/ - My other hobby
    www.rotaract1070.org.uk/ - make a difference and have fun !


    Never buy "Trust" products, all mine broke !!!

  8. #8
    Angry Badger Newbie
    Join Date
    Jun 2008
    Location
    Flintshire, North Wales
    Posts
    97

    Default

    Hi,

    You can multiplex 3 seven seg displays so you will only require 10 Pic pins.

    If you use an lcd you can get away with 6 pins easily althougth there was a thread on here a few days ago demonstrating how to drive an lcd serially.

    http://www.rapidonline.com/Electroni...-display/61715
    Last edited by Angry Badger; 26th December 2009 at 09:25 PM.

  9. #9
    Thunderchild Good Thunderchild Good Thunderchild Good Thunderchild Good
    Join Date
    Jul 2005
    Location
    UK
    Posts
    2,010

    Default

    so how exactly am I driving a standard 3 digit 7 segment diplay from a pic without further decoding circuitry ? or is there another standard ? do those have inbuilt latches ? that are adressed ? if they do they are perfect
    Last edited by Thunderchild; 26th December 2009 at 09:40 PM.
    I AM the exeption that disproves the rule in many ways but the rules still apply (unfortunately)

    www.simonsphotography.org.uk/ - My other hobby
    www.rotaract1070.org.uk/ - make a difference and have fun !


    Never buy "Trust" products, all mine broke !!!

  10. #10
    Angry Badger Newbie
    Join Date
    Jun 2008
    Location
    Flintshire, North Wales
    Posts
    97

    Default

    Quote Originally Posted by Thunderchild View Post
    so how exactly am I driving a standard 3 digit 7 segment diplay from a pic without further decoding circuitry ? or is there another standard ? do those have inbuilt latches ? that are adressed ? if they do they are perfect

    You do the decoding in your software (look up table). Not neccessary to use latches. Drive the led's at 60+ Hz refresh rate.

    Multiplexing is straightforward. Put the data for digit 1 on portx and turn on that digit (via transistor or mosfet in series with digit cathode, assuming a common cathode display). Small delay, then turn digit 1 off. Put data for digit 2 on portx, turn on digit 2, small delay, turn digit 2 off, etc, etc.
    Attached Images
    Last edited by Angry Badger; 26th December 2009 at 10:02 PM.

  11. #11
    Mike, K8LH Excellent Mike, K8LH Excellent Mike, K8LH Excellent Mike, K8LH Excellent Mike, K8LH Excellent Mike, K8LH Excellent Mike, K8LH Excellent
    Join Date
    Jan 2005
    Location
    Michigan, USA
    Posts
    2,511

    Default

    A latch IC can be used quite effectively as part of a high performance multiplex display driver.
    Attached Images
    Last edited by Mike, K8LH; 27th December 2009 at 02:20 AM.

  12. #12
    Thunderchild Good Thunderchild Good Thunderchild Good Thunderchild Good
    Join Date
    Jul 2005
    Location
    UK
    Posts
    2,010

    Default

    my aim was to use just the pic and display, in which case the HD44780 might be best
    I AM the exeption that disproves the rule in many ways but the rules still apply (unfortunately)

    www.simonsphotography.org.uk/ - My other hobby
    www.rotaract1070.org.uk/ - make a difference and have fun !


    Never buy "Trust" products, all mine broke !!!

  13. #13
    Super Moderator Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent
    Join Date
    Nov 2003
    Location
    Derbyshire, UK
    Posts
    29,736

    Default

    Quote Originally Posted by Thunderchild View Post
    I'm also at a loss as to where to buy HD44780 diplays as neither farnell or RS stock them
    Both have extensive ranges of LCD text modules based on those chips.

    For simple 7 segment LED displays simply multiplex them together to make the display as long as you want - you can drive them pretty well direct from the PIC, although you will need drivers if you want them bright, or a large number of digits.

    My tutorials show how to multiplex two displays, and it's a simple matter of extending that, another tutorial shows how to multiplex an 8x8 LED matrix, a combination of the two does everything you require.
    PIC programmer software, and PIC Tutorials at:
    http://www.winpicprog.co.uk

  14. #14
    Thunderchild Good Thunderchild Good Thunderchild Good Thunderchild Good
    Join Date
    Jul 2005
    Location
    UK
    Posts
    2,010

    Default

    so basically the common pin (anode or cathode) on each digit is used as an "address line" and the displays are cycled through by the pic so fast that they all appear to be on ?

    I'm using basic but I'll take a look at your tutorials as its the concept I'm after not the actual program, maybe if the display was controlled by transistors a small capacitor could be put in paralel with each segment to help persistance on large displays or in cases where the program has other things to do as well like read the ADC input and make that data into 7 segment friendly data
    Last edited by Thunderchild; 27th December 2009 at 02:04 PM.
    I AM the exeption that disproves the rule in many ways but the rules still apply (unfortunately)

    www.simonsphotography.org.uk/ - My other hobby
    www.rotaract1070.org.uk/ - make a difference and have fun !


    Never buy "Trust" products, all mine broke !!!

  15. #15
    4um Addict Mike2545 Excellent Mike2545 Excellent Mike2545 Excellent Mike2545 Excellent Mike2545 Excellent Mike2545 Excellent Mike2545 Excellent
    Join Date
    Jan 2009
    Location
    Toledo, Ohio
    Posts
    838

    Default

    For Basic, it is much easier to do a serial output and have the display show the results...
    Just my 2¢
    Last edited by Mike2545; 27th December 2009 at 02:01 PM.
    Mike 2545

+ Reply to Thread
Page 1 of 2
1 2 Last

Similar Threads

  1. Electromechanical Displays
    By krich in forum Datasheet/Parts Requests
    Replies: 4
    Latest: 14th October 2009, 03:54 PM
  2. Surplus Displays
    By HarveyH42 in forum General Electronics Chat
    Replies: 13
    Latest: 20th September 2009, 05:10 PM
  3. graphic LCD displays.. RS232 smart displays?
    By DanD in forum Micro Controllers
    Replies: 9
    Latest: 30th April 2006, 05:21 AM
  4. On Screen Displays with TV's
    By grdthato in forum General Electronics Chat
    Replies: 4
    Latest: 5th August 2005, 09:37 AM
  5. Can anyone help me about LED displays please.....
    By FilipB in forum Electronic Projects Design/Ideas/Reviews
    Replies: 2
    Latest: 11th November 2003, 05:11 PM

Tags for this Thread