1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Guide Make your own USB LCD controller!

Discussion in 'Modding' started by ch424, 23 Jun 2006.

  1. thaimin

    thaimin What's a Dremel?

    Joined:
    24 Apr 2009
    Posts:
    40
    Likes Received:
    1
    Standard USB Pins / Wires are as such:

    1 VCC Red +5 VDC
    2 D- White Data -
    3 D+ Green Data +
    4 GND Black Ground
     
    gazman321 likes this.
  2. Nexxo

    Nexxo * Prefab Sprout – The King of Rock 'n' Roll

    Joined:
    23 Oct 2001
    Posts:
    34,731
    Likes Received:
    2,210
    RED or ORANGE: POWER, VCC, SVCC, +5V
    WHITE or YELLOW: P-, DATA-, SBD-
    GREEN or GREY: P+, DATA+, SBD+
    BLACK, BLUE or BROWN: GROUND, GRND, GND
     
    gazman321 likes this.
  3. gazman321

    gazman321 What's a Dremel?

    Joined:
    6 Jul 2009
    Posts:
    13
    Likes Received:
    0
    Thanks for your replies Nexxo and Thaimin.
     
  4. Munchies

    Munchies What's a Dremel?

    Joined:
    22 Oct 2009
    Posts:
    4
    Likes Received:
    0
    Hi ch424 can i have the source code too? Thanks!! :D
     
  5. Unicorn

    Unicorn Uniform November India

    Joined:
    25 Jul 2006
    Posts:
    12,726
    Likes Received:
    456
  6. Munchies

    Munchies What's a Dremel?

    Joined:
    22 Oct 2009
    Posts:
    4
    Likes Received:
    0
  7. Giuss

    Giuss What's a Dremel?

    Joined:
    13 Sep 2008
    Posts:
    3
    Likes Received:
    0
    Hi, do you know if is it possible to use this controller under Linux Ubuntu?
     
  8. gazman321

    gazman321 What's a Dremel?

    Joined:
    6 Jul 2009
    Posts:
    13
    Likes Received:
    0
    Hi All

    I have a surplus of the PIC18F2550( I can flash them if needed) and 4x20 LCD's if anyone wants any please let me know.

    Gary

    email me gazman321@gmail.com
     
    Last edited: 10 Nov 2009
  9. GizmoTheGreen

    GizmoTheGreen What's a Dremel?

    Joined:
    30 Mar 2009
    Posts:
    5
    Likes Received:
    0
    Want to let you guys know that i bought 3 screens plus necessary components from the guy above.

    cheap, fast, and excellent service.

    got one of them running right now, tested all three and they work splendidly.

    On a sidenote i didn't build this project in particular, but this one, thats based of this thread:
    http://www.coderforlife.com/projects/lcd/
     
    Last edited: 20 Nov 2009
  10. GizmoTheGreen

    GizmoTheGreen What's a Dremel?

    Joined:
    30 Mar 2009
    Posts:
    5
    Likes Received:
    0
    As long as the software has support for matrixorbital lcds, sure, its usable :)
     
  11. thaimin

    thaimin What's a Dremel?

    Joined:
    24 Apr 2009
    Posts:
    40
    Likes Received:
    1
    In Linux you can also easily just write to the /dev/ttyS# device and it'll show up on the display, eg:

    echo "Hello World!" >> /dev/ttyS0

    Assuming your device is ttyS0, "Hello World!" will now be on you display. Use the commands in the first post to do fancier things (like change to the second line, change brightness, etc). A ready-built program will probably have some even fancier features, but using the device is very very simple in Linux.
     
  12. GizmoTheGreen

    GizmoTheGreen What's a Dremel?

    Joined:
    30 Mar 2009
    Posts:
    5
    Likes Received:
    0
    cool, didn't know that.

    is there any way to use a screen as an actual console? that'd be awesome for a screenless box.
     
  13. thaimin

    thaimin What's a Dremel?

    Joined:
    24 Apr 2009
    Posts:
    40
    Likes Received:
    1
    I actually tested the Linux thing out at home, and I was a bit off. My Linux (Fedora) doesn't use ttyS# for serial ports emulated over USB, instead it uses ttyACM#. These ports are default only usable by root, and every time you unplug they reset to that (and maybe even when restarting).

    Also for some reason Linux initially spams the display with at least 3 "AT+GCAP ". This does not happen in Windows...

    But, as root, if you run this one line, you will print "Hello World!" at the very top/left of the LCD:

    Code:
    printf "\xFE\x47\x1\x1Hello World!" > /dev/ttyACM0
    The first part says Command (\xFE) Position (\x47) 1,1 (\x1\x1) then the text is what is displayed.

    I tried using the ttyACM0 as a terminal (bash > /dev/ttyACM0) and technically it worked. I could see the output of all programs run in the LCD, except newlines didn't work (newline is actually a displayable character on most LCDs). So it technically works... but would probably need a modified terminal program to be usable. Making lines go off screen, handling newlines, allowing you to scroll up the screen to previous lines, etc.



    This works in Windows as well! Windows actually includes devices in the file structure as well, and the COM ports are at \\.\COM#. You can then run:

    Code:
    echo Hello World! > \\.\COM8
    And you get Hello World! on the LCD.


    Have fun controlling your LCDs with the command line!
     
  14. thaimin

    thaimin What's a Dremel?

    Joined:
    24 Apr 2009
    Posts:
    40
    Likes Received:
    1
    I have updated my extension to the USB2LCD project to include a bootloader (in addition to the other features I added before). Full source code and details are available at: www.coderforlife.com/projects/lcd
     
  15. GizmoTheGreen

    GizmoTheGreen What's a Dremel?

    Joined:
    30 Mar 2009
    Posts:
    5
    Likes Received:
    0
    hey guys, my girlfriends computer acts a little weird.

    when i connect a display and it installs the driver, it immediately starts to output AT6 or 6AT on the screen, repetedly.

    with no lcd software running.

    im thinking some software is hogging all the serial ports as soon as they show up, halp please
     
  16. dCrypt

    dCrypt What's a Dremel?

    Joined:
    6 Sep 2009
    Posts:
    3
    Likes Received:
    0
    I would be very interested in this controller if it supports the KS0073 variant. Could it be possible?

    Regards.
     
  17. Ddemon

    Ddemon What's a Dremel?

    Joined:
    7 Dec 2009
    Posts:
    7
    Likes Received:
    0
    Helps!!

    Hi guys, iv tried this mod :thumb: put it all together on a board layed out exactly how the diagram is, got someone to program it for me ( they got an error or something ? ) and when i plug it into the computer the buzzer just goes crazy and buzzes :p its really annoying! The LCD lights up with a couple of bars to the right of the screen. Whats your thoughts guys ? Could i have got the USB connections on the Female wrong?

    Thanks in advance!
     
  18. casdsys

    casdsys What's a Dremel?

    Joined:
    8 Dec 2009
    Posts:
    3
    Likes Received:
    0
    PLED/OLED Displays

    To one-zero
    Are you able to supply 16x2, or 20x2 displays in either OLED or PLED.
    Please send me data and prices for these parts as well as for the larger displays..
    Cheers...
     
  19. casdsys

    casdsys What's a Dremel?

    Joined:
    8 Dec 2009
    Posts:
    3
    Likes Received:
    0
    Is this display OLED or PLED. Can someone put me onto a supplier.
    cheers. email - casdsys at box.net.au
     
  20. thaimin

    thaimin What's a Dremel?

    Joined:
    24 Apr 2009
    Posts:
    40
    Likes Received:
    1
    Looking at the datasheets it looks as though the KS0073 should be supported. It uses all the same commands with a bunch of additional commands. The additional commands are executed using an extra RE pin, which I guess would just remain unconnected (or maybe connected to GND).

    If someone gets a KS0073 working with either ch424s system or mine please tell me as it would be nice to know what works.
     
Tags:

Share This Page