Shop OBEX P1 Docs P2 Docs Learn Events
29 lines of 60 characters on a 7-inch portable LCD — Parallax Forums

29 lines of 60 characters on a 7-inch portable LCD

localrogerlocalroger Posts: 3,452
edited 2011-01-26 18:18 in Propeller 1
I have successfully hacked the Philips PET 702 portable DVD player to act as a display for the Propeller. The first photo shows the player displaying 29 lines of 60 8x8 characters. Unfortunately, the dot clock is a bit too fast for an aiGeneric style display with every character its own color, but the 29 lines can all be different colors.

The PET 702 is no longer in current production, but both new and used units seem to be plentiful on eBay. The used units that "work except won't play a DVD" should be especially attractive, since these players don't have a normal A/V input and can't be used as monitors without this hack.

The first photo shows the display. It's green because I"m only driving the green signal, and the vertical line is there because I damaged the LCD removing the bezel (which turned out to be unnecessary; in any case I have a couple more of these units). The dollar bill gives perspective; this is a really small, portable device! It's very light too, especially with the DVD deck absent. The second photo shows the inside view of the open unit with the signal taps.

The factory AC adapter, on/off switch, and battery charge/discharge circuit should continue to function normally. The PET 702 also has 5V, 3V3, and 1V8 power supplies, as well as the control keyboard and speakers which should be hijackable. There is a low-battery warning signal which should be readable, and the firmware will automatically dim the backlight (even after the hack) if it is on battery power. With the DVD deck gone there is a lot of room in the case for extra electronics. The DVD deck cover door makes it possible to easily do a very clean hack that would look factory until you open it up with the original factory latch.

I have included a somewhat cleaned up version of the proof of concept driver. The service manual is available online (the filename is in the source code, search for it). It is obviously possible to go in a lot of different directions from here; if there is interest I could do a detailed writeup of how to do the hack in a blog.

UPDATE: I After a few hours of squinting at the nearly illegible and out of date schematic in the Service Manual and examining the circuit board with a copy lens for a magnifying glass, I have positively identified (1) very easy points to get power GND and 3V3, (2) the low voltage detector output, and (3) where to inject audio by either removing two SMT capacitors or just leaving them in and tack-soldering to piggyback on whatever the DVD might ever say. I know I can also read the IR remote control (you'd have to disconnect the output pin to keep the player firmware from interpreting commands, but it's not a SMT device so not a problem) because I've used the remote in another project with the remote control obex object. So this is shaping up to be far more than just a display; it's the skeleton for a very capable portable device. I will be doing a more permanent mod with a protoboard soon and test all the functions and will post results as they become available.
1024 x 768 - 119K
1024 x 768 - 84K

Comments

  • Bill HenningBill Henning Posts: 6,445
    edited 2011-01-26 12:28
    Very nice work!

    This will make a great output device for many projects; especially with very low cost "rescued" LCD's.

    Craigslist can be another source of similar displays.
  • potatoheadpotatohead Posts: 10,261
    edited 2011-01-26 13:15
    Well done. A TV cog, set to fetch pixel and color data from a scan line buffer, would enable another cog or two to do various graphics. Nice display, and nice reverse engineering work.
  • localrogerlocalroger Posts: 3,452
    edited 2011-01-26 15:22
    @Bill: Thanks. You might be amused to know that I used a SVT1 to test this.

    @potatohead: Thanks too. The dot clock is 9 MHz, so the timing isn't nearly as tight as VGA. In fact I've thought of a way to do individual character colors, although it would have to be limited to 8 colors emitted on 3 consecutive pins of the VGA block (you'd get as many tiles as you want as a tradeoff though) and EITHER (1) background is always %000, (2) use a pre-reversed font, or (3) pin group is always pins 012 of the VGA block.

    Now I need to make a proper permanent version of the hack on one of my undamaged units, which will be my next project. I also need to find some signals on the main board.
  • Dr_AculaDr_Acula Posts: 5,484
    edited 2011-01-26 15:58
    Very nice work. Using banknotes to keep the lid closed is a nice touch!
  • potatoheadpotatohead Posts: 10,261
    edited 2011-01-26 17:25
    I would go with the pre-reversed font. It's really easy to just knock up some SPIN or C to deal with the font at run-time, or even have the COG do it before doing anything else. People are always wanting to monkey with the pins. So, a little over twice the speed of TV? That's not bad! Lots can be done. Worth it, if one is needing lots 'o cheap displays.
  • localrogerlocalroger Posts: 3,452
    edited 2011-01-26 17:47
    @potatohead I just realized it will be necessary to jigger the font anyway, since it will also need to be inverted (1=background 0=foreground). The instruction saving trick is to shift the tile left by 3, isolating the color in bits 18..16 where it has no effect on a Hub RAM operation, and doing the index into the font, then shifting right 16 which ditches the index and positions the 3 color bits ... in the background position. Oops. There's going to be a bit of Chinese Restaurant Menu to the driver, but I think it's the path I am going to personally pursue because it complements the projects I had in mind when I first got these players. Over the next few days I'll cut down a protoboard and make a permanent installation to do better testing and I'll update this thread.

    Of course, if as you suggested earlier one was to just throw another cog or two at it, this thing could sing. For one thing full 8-bit color depth is possible since outgoing sync signals aren't needed.

    I am also seriously tempted to see if Office Depot still has that 7-inch LCD photo frame still on sale on the off chance...
  • Invent-O-DocInvent-O-Doc Posts: 768
    edited 2011-01-26 17:54
    that looks like an Atari 8-bit computer font. Is it?
  • Cluso99Cluso99 Posts: 18,069
    edited 2011-01-26 18:00
    Nice detective work there localroger. Well done!
  • potatoheadpotatohead Posts: 10,261
    edited 2011-01-26 18:03
    It is. I ripped it from my old Atari 400 when first programming character drivers for the prop, and it ended up in various drivers. There are a few others floating around too, VGA, C64, Speccy... Lots 'o good memories associated with that font!
  • localrogerlocalroger Posts: 3,452
    edited 2011-01-26 18:04
    @invent-o-doc yes that's actually the Atari font frim the aiGeneric TV text package, which I am pretty sure is in the obex.

    On edit: I didn't realize you were the one that ripped it, potatohead. It's a great font for this sort of thing. Atari knew what they were doing.
  • potatoheadpotatohead Posts: 10,261
    edited 2011-01-26 18:18
    Yeah, no worries. :)

    I think so too. I've always liked it, because it was designed for TV. It happens to read well at the higher character densities, due to very few single pixels.
Sign In or Register to comment.