Shop OBEX P1 Docs P2 Docs Learn Events
Repurposing laptop screen for P2 VGA - success — Parallax Forums

Repurposing laptop screen for P2 VGA - success

Cluso99Cluso99 Posts: 18,069
edited 2020-09-01 01:07 in Propeller 2
Two weeks ago I decided to breakdown the parts from two non-working laptops, an HP/Compaq Presario CQ61 and a Lenovo 8918A18. The screens from these were both 15" and working.

From the Compaq, I recovered the screen, an Optronics B156XW02 Rev2 1366x768 with internal voltage driver.
From the Lenovo, I recovered the screen, a Samsung LTN154X3-L02 1280x800 with external voltage driver.

The Compaq housing was nicer ie thinner and easily modified to remove the hinges, etc. Plus it had an internal voltage driver so a simpler controller could be used.
I ordered an NEW HDMI+DVI+VGA LCD Controller Kit for B156XW02/LTN156AT02 LED Panel 1366x768 from fleabay for US$16.65 shipped. It arrived last Friday.

So I have modified the housing with a slot to connect the new controller cable from the back of the housing to the pcbs.

Today I tried the controller. It works with my P2 and Chip's VGA demos :sunglasses:
BTW while the screen works with the controller board, the menu is in Chinese? and currently I'm not sure how to change it to English.
https://ebay.com/itm/NEW-HDMI-DVI-VGA-LCD-Controller-Kit-for-B156XW02-LTN156AT02-LED-Panel-1366x768/163654619792?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2057872.m2749.l2649

Next: To make a 3D printed box to house the boards on the back of the monitor, and also make a mounting bracket to stand up the monitor.

Of course, it would have been cheaper/easier to scrounge an old VGA monitor, but there's no fun in that!

61aaf60e5ce98010c897ccc93df6ea.jpg
577 x 705 - 170K

Comments

  • Cool!! Great work Ray :smiley:

  • Cluso99Cluso99 Posts: 18,069
    edited 2020-09-04 05:58
    I designed and 3D printed a cover (2 parts since my printer cannot do it on one piece as it's too long) to go over the bracket region I dremeled off. Glued on with supaglue. There is a smidge of glue on the front where I joined the two pieces together.
    CompaqVGA_frontcover.jpg

    Then I designed and 3D printed a box base to mount the controller board to the back of the screen section. I goofed with the placement of the pcb mounting pads so I dremeled them off and printed just the mounting pads and glued them in the correct place. You cannot see inside the box so it was easier than a reprint of 2 3/4 hrs. Next I glued the box base onto the rear of the screen.
    CompaqVGA_backbase.jpg

    I have the box top printing now :sunglasses:

    Then I will need to design a stand.

    BTW I have left room in the box to mount the configuration pushbuttons and LED but this is not necessary as the monitor works without them connected anyway. I may design a new switch pcb, or cut down the supplied pcb, so I can mount it on the edge as it takes up less space this way.
    785 x 218 - 71K
    648 x 515 - 133K
  • Cluso99Cluso99 Posts: 18,069
    edited 2020-09-04 09:09
    Here are the final box and cable pics. I printed a cable tie mount to go under one of the pcb mounting screws to secure the cable that goes to the LCD.
    CompaqVGA_cablemount.jpg

    And the completed box on the back of the screen
    CompaqVGA_completebox.jpg

    And with the VGA and power cables connected
    CompaqVGA_complete.jpg

    And finally for good measure, I printed my new avatar :sunglasses:
    ClusosAvatar.jpg
    452 x 585 - 115K
    529 x 754 - 93K
    807 x 605 - 123K
    583 x 431 - 75K
  • You make me want a 3d printer. You are damn fast, you must be experienced at cad design.
    Nice job, looks excellent!
  • Cluso99Cluso99 Posts: 18,069
    Clock Loop wrote: »
    You make me want a 3d printer. You are damn fast, you must be experienced at cad design.
    Nice job, looks excellent!
    Definitely not!
    Takes me ages to work my way around Fusion 360. It’s a total dogs breakfast. Nothing seems intuitive, not even the basics. I have to search YouTube’s for everything I try.

    I have a parametric box design that I use as a base - just change the parameters (access like a spreadsheet and change dimensions) and you can export to an .stl file. Open the file in Prusa’s Cura and a couple of clicks and you have a gcode file for printing.

    I use the free Fusion 360 which puts your designs on their website. It’s mangled software - if you want to export more than one object to print (a top and bottom box, or 4 mounting pads) it must use their website and it takes simply ages to create the stl. Do a single object and it’s seconds.

    I have a Creality Ender 3 printer. Cheap ~$200. Just watch the YouTube videos to set it up properly. It comes partially assembled but you need to tweak the assembly to get good prints. I did this and I get great prints. My son has one too. We both bought the glass bed extra when I bought mine. First print was amazing.
    We moved recently. My first print started lifting on one corner - needed the bed levelling - easy as once you know how - a minute and all good!

    A good intro for Fusion 360 is Paul McKorter??? YouTube “using fusion 360 or die trying”. I can post the parametric box file or any of these prints if anyone wants them. Just ask.
  • And finally for good measure, I printed my new avatar :sunglasses:

    :)
  • RaymanRayman Posts: 13,860
    Isn't the VGA port on a laptop usually an output?

    Are you using it as an input from a P2 board?
  • Cluso99Cluso99 Posts: 18,069
    edited 2020-09-05 02:03
    Rayman wrote: »
    Isn't the VGA port on a laptop usually an output?

    Are you using it as an input from a P2 board?
    No. If you read my original posts you'll see I bought a LCD controller board with VGA+DVI+HDMI connectors. That is the pcb I'm using in the box I put on the back of the screen. So I just have the existing LCD and its' case (top section of the laptop) plus the controller pcb that bought. You need to buy a controller board configured for whichever LCD you have.

    Would have been cheaper/quicker to just scrounge an old VGA monitor, but where's the fun in that :sunglasses:
  • Cluso99Cluso99 Posts: 18,069
    Here are the final 3D parts... A stand

    I made two copies of my stand after I tried a single version and decided I needed to make it a little bigger and needed two of them. They are folding stands glued to the back of the screen, with hinges top and bottom achieved with M2x20 screws (threaded bolts).

    This is the Fusion360 model
    CompagVGA_stand4.jpg
    And the finished product
    CompaqVGA_stand1.jpg
    CompaqVGA_stand2.jpg
    CompaqVGA_stand3.jpg

    Of course I could not spend all my time on this without Mrs Cluso wanting her piece of the action... So I made her an iPad mount to attach to the handlebars on her exercise bike. 3D printers are great :sunglasses:
    225 x 481 - 37K
    807 x 605 - 145K
    544 x 476 - 78K
    807 x 605 - 135K
  • Looks the part, Cluso! Nice.
  • Cluso99Cluso99 Posts: 18,069
    Thanks Lachlan :sunglasses:
  • Cluso99Cluso99 Posts: 18,069
    Started playing with this screen connected to the P2EVAL pcb in preparation to my own P2 boards arriving.

    My LCD monitor is 1366x768 which gives 160x64 characters using an 8x12 font.

    So I've been testing with Chips VGA_1280x1024_text_160x85.spin2 program. After checking I realised that there is some rescaling going on in the VGA board or the LCD itself. I am still getting the 85 lines of text with 12 lines per char from the 8x12 font. So 85*12=1080 but the LCD is only 768 lines. I am not quite sure how the scaling is working. I played around with the font to see what's happening but I'm at a bit of a loss.
    I think the pixel lines are being interpolated - I put alternating bits all-on and all-off in the lines of one of the characters ("0") and there isn't a really definitive bar of pixel lines present as I would expect. BTW the text is totally readable.
    Anyone have any ideas?
  • Cluso99 wrote: »
    Started playing with this screen connected to the P2EVAL pcb in preparation to my own P2 boards arriving.

    My LCD monitor is 1366x768 which gives 160x64 characters using an 8x12 font.

    So I've been testing with Chips VGA_1280x1024_text_160x85.spin2 program. After checking I realised that there is some rescaling going on in the VGA board or the LCD itself. I am still getting the 85 lines of text with 12 lines per char from the 8x12 font. So 85*12=1080 but the LCD is only 768 lines. I am not quite sure how the scaling is working. I played around with the font to see what's happening but I'm at a bit of a loss.
    I think the pixel lines are being interpolated - I put alternating bits all-on and all-off in the lines of one of the characters ("0") and there isn't a really definitive bar of pixel lines present as I would expect. BTW the text is totally readable.
    Anyone have any ideas?

    It's very likely that it supports scaling arbitrary resolutions - if you were using it on a PC, not having that would be a disaster, as you wouldn't be able to see, say, 720x400 text mode screens (although you rarely get them these days...). You should get 1:1 pixel mapping when feeding the native panel resolution though.
  • Cluso99Cluso99 Posts: 18,069
    Wuerfel_21 wrote: »
    Cluso99 wrote: »
    Started playing with this screen connected to the P2EVAL pcb in preparation to my own P2 boards arriving.

    My LCD monitor is 1366x768 which gives 160x64 characters using an 8x12 font.

    So I've been testing with Chips VGA_1280x1024_text_160x85.spin2 program. After checking I realised that there is some rescaling going on in the VGA board or the LCD itself. I am still getting the 85 lines of text with 12 lines per char from the 8x12 font. So 85*12=1080 but the LCD is only 768 lines. I am not quite sure how the scaling is working. I played around with the font to see what's happening but I'm at a bit of a loss.
    I think the pixel lines are being interpolated - I put alternating bits all-on and all-off in the lines of one of the characters ("0") and there isn't a really definitive bar of pixel lines present as I would expect. BTW the text is totally readable.
    Anyone have any ideas?

    It's very likely that it supports scaling arbitrary resolutions - if you were using it on a PC, not having that would be a disaster, as you wouldn't be able to see, say, 720x400 text mode screens (although you rarely get them these days...). You should get 1:1 pixel mapping when feeding the native panel resolution though.
    Yes. I was gearing up to convert to running 1366x768 when i realised the scaling was happening. I didn’t expect to see the scaling of text from 85 lines to work on an effective 64 line lcd.
Sign In or Register to comment.