Slashdot Mirror


Micro-SD Card Slot Abused As VGA-Port

dvdkhlng writes "The Ben NanoNote open-source hand-held computer has often been criticized for not being very extensible hardware-wise. A community effort now starts to challenge this by shipping the so-called UBB board, which plugs into the micro-SD port, making 6 I/O lines available to hardware hackers. The most impressive use so far is this VGA port implemented by just a few resistors, with signal-generation mostly controlled by software. The guy who did this calls it an 'unexpected capability.' Schematics and source code are available under the GPL."

23 of 77 comments (clear)

  1. Great-grandson of "Cheap Video Cookbook" by shoppa · · Score: 5, Interesting
    Don Lancaster did a pretty good job explaining raster-scan-generated-by-cleverness-of-using-main-CPU in the Cheap Video Cookbook. Back in 1978.

    So slashdot is about, oh, 33 years late :-).

    1. Re:Great-grandson of "Cheap Video Cookbook" by Anonymous Coward · · Score: 4, Interesting

      The concept is as old as time. There are also lots of similar VGA out implementations for various microcontrollers, FPGAs, etc. What's new here is that the MMC controller is used to send out the pixels, which a) allows for a comparably high resolution, b) makes the operation reasonably efficient (i.e., in the future, it may even be possible to do other things in parallel), and c) hides some of the complexities of instruction timing in modern CPUs, with caches, DRAM, multiple bus masters, etc. Within the qi-hardware community, it was also a nice surprise to discover that our little Ben could actually do this.

    2. Re:Great-grandson of "Cheap Video Cookbook" by DarkOx · · Score: 4, Insightful

      Well the technique was pretty darn common in the 8 bit home computer era. So you are right in that this is not novel, but it shows its still a good method to add video to hardware that the manufacturer maybe never intended to have video out. I think this is a pretty good "News For Nerds" post even if its strictly New(s) that you can do this. I think it might be an interesting technique to apply in things like Rockbox and plug computers, as well.

      --
      Repeal the 17th Amendment TODAY! Also Please Read http://www.gnu.org/philosophy/right-to-read.html
    3. Re:Great-grandson of "Cheap Video Cookbook" by dvdkhlng · · Score: 3, Informative

      BTW, this mailing-list post contains all the details about how the MMC (SDIO) controller is used here. An earlier version relied on doing bit-banging with the MMC lines programmed as general-purpose I/Os, but didn't even reach QVGA resolution this way.

  2. Nice, but... by luvirini · · Score: 3, Insightful

    While the GPL part is nice, and hack can be fun, the question still arises why start with such a limited platform in the first place if you have the need for more?

    1. Re:Nice, but... by pvera · · Score: 4, Insightful

      Because it opens the possibilities of other "unexpected" hacks that people can't visualize simply by looking at the available ports for a given device (not just the one in the article). If you can plug that thing into the microSD port and make it talk to VGA with 10 resistors and a bit of software, it means you can probably use microSD as a connector on other devices knowing that the connector and board are not only dirt cheap but open.

      --
      Pedro
      ----
      The Insomniac Coder
    2. Re:Nice, but... by cfriedt · · Score: 4, Interesting

      It's often ___immeasureably__ useful to get some (any) kind of console output when porting Linux to an existing device running e.g. windows mobile 5 or 6. Take a look at HaRET. Porting is often harder than most would imagine, as some manufacturers actively use hardware obfuscation methods to prevent hacktivists from getting console access.

      Try to imagine how long it would take to use LEDs or haptic feedback to iteratively check all conditions required to bring up Linux on a board without a serial port. The first thing you would probably do is try to use a hardware subsystem that was known to work and fashion a serial port out of it. This is the same concept but graphical.

      Great work!

  3. Oh man by 50000BTU_barbecue · · Score: 2

    Just this morning I finished turning my VGA port into a micro-SD card slot. Now I can't submit my story to /.

    --
    Mostly random stuff.
  4. Re:Why? by cptdondo · · Score: 5, Insightful

    For one it's fun. It's OK to have fun. If we only do those things that need to have a (serious) reason, we'd never have any fun. You must have gone straight from diapers to curmudgeon, without the usual goofy and fun states.

    For another, this would be great for a low-cost embedded project. I can easily see this being adapted to an embedded playroom I play with.

    Lastly, ti's cool.

  5. Margi Presernter - SD to VGA device by hashish16 · · Score: 2

    I don't remember the details, but this device came out a few years ago. Only difference between MircoSD and SD are a few ground pins, right? The margi probably used a ucontroller for the signal generation, now that devices are more powerful, the software implementation is now plausible.

  6. That's Open Hardware for you! by udippel · · Score: 2

    A community effort now starts to challenge this by shipping the so-called UBB board, which plugs into the micro-SD port, making 6 I/O lines available to hardware hackers. The most impressive use so far is this VGA port implemented by just a few resistors, with signal-generation mostly controlled by software. The guy who did this calls it an 'unexpected capability.' Schematics and source code are available under the GPL."

    Open Hardware; not the Open Software, is relevant in this project.

  7. Re:Why? by TheGratefulNet · · Score: 2

    its not useful to you - right now. therefore its a waste of time.

    mod that parent down, please. this is useful stuff that us embedded guys can use later on, on other projects. ..not every computer is measured in ghz, jeeves old boy.

    --

    --
    "It is now safe to switch off your computer."
  8. Re:I tried by JockTroll · · Score: 2, Funny

    Yes, it was an 8" floppy and she wasn't CP/M compatible.

    --
    Geeks are so full of shit that "beating the crap out of them" takes a whole new meaning.
  9. Re:Why? by Bing+Tsher+E · · Score: 2

    Maybe they just did it so that someone like you could ask 'why.' Because I can't think of anything more satisfying than a good hack that confuses your type of person. Yeah, it ain't something you are going to use every day. As long as it befuddles the non-geeks (that's what someone who asks the question the way you phrased it is) it's cool.

    Viva for 'wasting time, resources and bandwidth' even if it's someone like you, with your sort of comment, doing the wasting. I guess.

  10. Don Lancaster by Anonymous Coward · · Score: 5, Interesting

    "Cheap Video Cookbook" is exactly what came to mind when heard about the VGA port (I have a Ben Nanonote and subscribe to the mailing list). I enjoyed Don Lancaster's books so much when I was a kid. He taught me not to be afraid of a soldering iron. He showed me how to disassemble software. But mostly, he explained hacker values better than anyone.

    In one of his columns, he told the flute story, and it always stayed with me. I became a teacher in College ten years ago, and I always repeat this story to my students. Here it is.

    "Many years ago, I was at a rock concert. The opening act was a single flute player standing solo in front of the closed stage curtains. His job was to warm up the audience for the high priced talent that was to follow. He was good. But as he went along, the musical vibes got stranger and stranger, then totally bizarre. He was playing chords on his flute. Combined with utterly unbelievable riffs. Much of the audience got impatient and bored at what seemed like a bunch of god-awful squawks. Then I happened to notice a friend beside me who had both been in and taught concert band. He was literally on the edge of his seat. He turned to me and slowly said 'You Can't Do That With a Flute.'

    Of the thousands and thousands of people in the theater audience, at most only five realized they were witnessing a once-in-a-lifetime performance of the absolute mastery of a difficult and demanding instrument.

    Always play for those five."

    1. Re:Don Lancaster by SpeZek · · Score: 2

      The people don't care whether the computer has a CPU with 3.2GHz or 2.8GHz, so why advertise that?

      Intel would care to disagree.

    2. Re:Don Lancaster by AJWM · · Score: 2

      My audience doesn't care whether I created perfectly clean code for my implementation, so why should I?

      In your case presumably the audience can never see how clean (or not) your code is, so perhaps the point is moot. (Might be different if you're writing open source -- in which case most of the users will still never look at the code, but a few will.)

      In the flute-player's case, it was all exposed for the audience. Sure, only a few appreciated it. But if you are truly skilled at something, don't you want to impress those who can appreciate it? It's like a master magician performing an old trick in a new way. Most of the audience won't know the difference -- yeah, cool trick -- but other magicians in the audience, who know what to look for or the 'usual' way to do the trick and not seeing that, they'll be impressed.

      I write hard SF. I go to great effort to get details right, although I know most of my readers will neither notice nor care. As long as I entertain them, that's fine -- and it's important that the details don't get in the way of that entertainment. However there are a few who will notice, who may even do the math. They're the ones I take that extra effort for.

      --
      -- Alastair
    3. Re:Don Lancaster by Anonymous Coward · · Score: 3, Interesting

      Did you read the story in the paper about Joshua Bell, one of the world's top violinists who dressed up as a bum and played the violin for day in the subway system? There was a similar moral to the story: some people took notice and went on their way, most didn't and a very few (I think the # was also 5) stopped and stayed to listen. Only one of those who stayed recognized who the musician really was.

      link to story: http://www.freakonomics.com/2007/04/09/what-happens-when-a-maestro-plays-the-subway/

    4. Re:Don Lancaster by Hal_Porter · · Score: 2

      Corporations are people too!

      I have a dream where Americans are judged by their abilities, not the number of individuals that make them up. Where a Corporate American can run for President and - thanks to the votes of other Corporate Americans - win.

      When President Microsoft and Vice President Haliburton take office my dream will be fulfilled.

      --
      echo -e 'global _start\n _start:\n mov eax, 2\n int 80h\n jmp _start' > a.asm; nasm a.asm -f elf; ld a.o -o a;
  11. Re:Why? by LongearedBat · · Score: 3, Insightful

    why the f^@k would anyone even care

    Some of us nerds care 'cos we like playing with tech. And who knows what other interesting things this might lead to, some of which might turn out to be very useful?

  12. Re:Why? by Jafafa+Hots · · Score: 4, Funny

    Why comment on slashdot articles? What's that going to achieve?

    --
    This space available.
  13. Re:I tried by darthdavid · · Score: 2, Funny

    When he took it out again there was a virus on it...

  14. Abused? by PPH · · Score: 3, Insightful

    Why abused? Re-purposed sounds more accurate.

    I've used a lot of 'ports' for functions not originally envisioned in their design (Rule 34 applications included) and its only abuse if you don't get permission first.

    --
    Have gnu, will travel.