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

Electronics Brainstorming: Extra simple car MP3 hardware

Discussion in 'Modding' started by disco volante, 28 Aug 2003.

  1. disco volante

    disco volante What's a Dremel?

    Joined:
    22 Sep 2002
    Posts:
    101
    Likes Received:
    0
    I'm starting to brainstorm for an MP3 PC in my car. Most people take the complex route, and hook up fancy LCD displays and touchscreens and so forth. I'm not interested in any of that. I want the absolute simplest setup possible.

    I've already got all the hardware I'll need for the PC, nothing fancy, but adequate.

    Anyways, the real dilemma is in controlling the computer. I don't want to bother with touchscreens or any sort of display for that matter. That would involve spending money, which I want to avoid. I pretty much want to cobble together a simple 5 button control panel that's hooked directly to a serial (or parallel, I have no idea, that's why I'm asking) port. I should be able to write a simple VB program (pending a crash course in serial interface) that'll play the MP3s.

    Basically, has anyone done this? Any links to project logs? Advice?
    How should I go about constructing the control unit? I figured SPST momentary switches, but I don't know a whole lot about hooking custom stuff up to ports, so I guess I'd need to know about this.

    What else should I consider?
     
  2. NiHiLiST

    NiHiLiST New-born car whore

    Joined:
    18 Aug 2001
    Posts:
    3,987
    Likes Received:
    6
    Try and get hold of the past couple of issues of PC Plus magazine; they're running a mini-series (about 5 issues I think) on making programs to use the serial and parallel ports. I think they're in VB in .NET but they should be all you need if you can code the rest of the program.

    If you want I'll scan the pages in for you but only if I get permission from a moderator to put the images on here since I'm not sure of any copyright issues.
     
  3. Hazer

    Hazer In time,you too will be relixalated

    Joined:
    14 Apr 2003
    Posts:
    957
    Likes Received:
    2
    How about just cutting up a keyboard? Have your mp3 player as part of the boot-up on your PC. Take the guts out of a keyboard and slim it down to what you want, and assign those keys to the functions of your mp3 player util.

    Just a thought.
     
  4. disco volante

    disco volante What's a Dremel?

    Joined:
    22 Sep 2002
    Posts:
    101
    Likes Received:
    0
    I've been looking at this. The problem is that every keyboard I've ripped apart has had some bizzare maze of traces and overlapping switch pads. Unless I could figure out how to completly eliminate all that foolishness and simply use the keyboard controller with my own 5 buttons, I'd have to stick to serial
     
  5. Hippo

    Hippo Pre-dates 5.25" Floppies

    Joined:
    7 Mar 2003
    Posts:
    717
    Likes Received:
    2
    I hacked up a keyboard for my MP3 player. The easiest thing to do is to dissemble the keyboard until you have the PCB infront of you. Plug it into a PC and fire it up into DOS.

    Now all you have to do is short out on the connector, where the keyboard mat plugged in, with a small piece of wire until you get the characters you want.
     
  6. acrimonious

    acrimonious Custom User Title:

    Joined:
    8 Nov 2002
    Posts:
    4,060
    Likes Received:
    3
    Or you could apply this principal to a USB number pad, its more expensive but easier to get the charicters.
     
  7. kuba

    kuba What's a Dremel?

    Joined:
    26 Aug 2003
    Posts:
    7
    Likes Received:
    0
    Argh... messy!

    I have seen keyboards that you can buy for laptops which consist of only the numpad. There are ones for ps/2 and usb. Here is a usb one I found on maplin. All your code will have to do is detect key presses on the keypad as if they were on the keyboard.

    If your keen on using a matrix keypad and hooking it up to the parallel port instead, give me a shout and I can help you with that. I just recently recoded some keypad code for a matrix type keypad attached to a printer port, but it's in c++ tho.

    If you're coding the mp3 decoding/playing software yourself (and not using winamp), a great library to use is BASS and it works for VB (not sure about .NET), VC++ and Delphi.
     
  8. Hippo

    Hippo Pre-dates 5.25" Floppies

    Joined:
    7 Mar 2003
    Posts:
    717
    Likes Received:
    2
    I would still go for the hacked up keyboard as its the cheapest option.

    Instead of writing your own code, why not just use winamp or similar. If your not having a display why write your own code when winamp 2.8ish is nice and stable and has keyboard commands.

    Also consider bashing together a smaller version of the OS you are going to use, makes for faster booting. See http://www.wimborne.org/richard/shrinkingwindows/ for details.

    Also have a look at http://www.mp3projects.com/ for some inspiration
     
  9. TheEclypse

    TheEclypse What's a Dremel?

    Joined:
    11 Aug 2003
    Posts:
    407
    Likes Received:
    1
    i would go with what kuba suggests, its the easiest thing to do.
     
  10. disco volante

    disco volante What's a Dremel?

    Joined:
    22 Sep 2002
    Posts:
    101
    Likes Received:
    0
    I just ripped apart an old keyboard and mapped out all the points that correspond to the keys I need to control Winamp. It took a whole lotta probing, but now I've got all the information I need to adapt a keyboard into the controller for my MP3 player.

    I guess I'll have to start cooking up a case design so I can get my hardware into the car now.
     

Share This Page