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

Electronics Help needed with A/D-converting...

Discussion in 'Modding' started by Hylsan, 10 Jun 2002.

  1. Hylsan

    Hylsan What's a Dremel?

    Joined:
    23 May 2002
    Posts:
    70
    Likes Received:
    0
    Hi there
    I was wondering if anyone know how to convert the signals from switches to digital so i can hook it up to my serial connector?

    I guess i need to use a A/D-converter...but i have no idea which one, nor if theres anything more i need.

    FYI, i gonna use about 10 buttons and perhaps one or two potentiometers.

    All help is appreciated!
    thanks in advance.

    /Hylsan
     
  2. kms

    kms What's a Dremel?

    Joined:
    23 May 2002
    Posts:
    10
    Likes Received:
    0
    hiya,

    whats your mod ? if i follow your question correctly your wishing to convert switch o/p's to digital ? if your switching dc you already have a digital array with your switch bank so no need for a/d ? whats your mod exactly ? :)
     
  3. Hylsan

    Hylsan What's a Dremel?

    Joined:
    23 May 2002
    Posts:
    70
    Likes Received:
    0
    hum...i have dropped my original idea...right now i want;

    a minumum of 4 buttons (on-off) connected to the PC (serial or parallell).

    a software that respond if any keys are turned on/off (this part i can fix myself tho)

    its kinda hard to explain tho i hope youll understand, otherwise reply and ill try to clarify even more.


    /Hylsan
     
  4. Hylsan

    Hylsan What's a Dremel?

    Joined:
    23 May 2002
    Posts:
    70
    Likes Received:
    0
    is there anyone out there who have used parallel interface?
    i found a tutorial that shows how to connect LEDs to a parallel and making a program to control them.
    what i was wondering is if i could to the opposit too, ie connect switches instead of LEDs? (well acually i want both, say 4 switches with 4 LEDs)
    if so how do i wire it...should i just connect one end of the switch to d1 and other to ground?? (d1= data pin 1)

    All help is appreciated since im really really wanna know :)
    Thanks in advance!

    /Hylsan
     
  5. fwmoddin

    fwmoddin What's a Dremel?

    Joined:
    30 May 2002
    Posts:
    5
    Likes Received:
    0
    Schematics for buttons and leds on lpt port

    Hi Hylsan.
    If you could wait til to night (swedish time) , i'll send you the links and schematics for it. Download Eagle from cadsoft.de and i can send the orginal drawings to you and you can change them to what you like.
    I'm about to do the same but with a lcd display (hd 44780 4*40) also.
    / Fredrik (Karlstad, Sweden) :dude:
     
  6. Hylsan

    Hylsan What's a Dremel?

    Joined:
    23 May 2002
    Posts:
    70
    Likes Received:
    0
    ok, im waiting... :rolleyes:

    /Hylsan
     
  7. fwmoddin

    fwmoddin What's a Dremel?

    Joined:
    30 May 2002
    Posts:
    5
    Likes Received:
    0
  8. x24

    x24 What's a Dremel?

    Joined:
    9 May 2002
    Posts:
    381
    Likes Received:
    0
    Hey there. I've worked with the parallel port before and I've used the output pins. It has 8 outputs and only 4 inputs. Look for Parallel port Interfacing articles to learn more about the input lines. I used the output lines only so I did not read much about the inputs.

    Try this link to getting inputs to the parallel port

    *edit* Oops, sorry, 5 input lines. I better brush up with my parallel port interfacing knowledge. I've been telling people that it has 4 input lines :D
     
  9. Hylsan

    Hylsan What's a Dremel?

    Joined:
    23 May 2002
    Posts:
    70
    Likes Received:
    0
    hum...damn...my cable only had 16 wires...
    can i still wire it up?
    which pins can i left out?
    i know i only need pin 25 for ground but what else?

    thanks for your response :)

    /Hylsan
     
  10. x24

    x24 What's a Dremel?

    Joined:
    9 May 2002
    Posts:
    381
    Likes Received:
    0
    Let's see, 8 outputs, 5 inputs, and a ground, that makes 14 pins. The parallel port has 8 pins of ground lines so just use any of them for ground.

    Here's another .link you might want to take a look at. This page has more links to other articles covering the parallel port just in case this article doesn't explain things clear.

    BTW, what software do you use for this project? If you plan to use VB, VB doesn't have capabilities to directly access the parallel port like QBASIC or C does but there's a workaround. There's a free (yes free. Thank God) VB OCX that gives your program the ability to directly access the parallel port. I have used it in my thesis (which generally saved me) and It's very easy to use. I forgot the name but I still have it at home.
     
    Last edited: 12 Jun 2002
  11. Hylsan

    Hylsan What's a Dremel?

    Joined:
    23 May 2002
    Posts:
    70
    Likes Received:
    0
    lol...just found that link myself :)

    i think i have what i need now, gonna get myself some components and get starting.

    thanks for all help, ill be back if i run into any trouble.

    /Hylsan
     
  12. cpemma

    cpemma Ecky thump

    Joined:
    27 Nov 2001
    Posts:
    12,328
    Likes Received:
    55
    I came across the DiscoLitez site recently, apart from the WinAmp/parallel port interface there's a test program (DiagLitez) with software buttons that looks useful for something :idea:
     
    Last edited: 12 Jun 2002
  13. Hylsan

    Hylsan What's a Dremel?

    Joined:
    23 May 2002
    Posts:
    70
    Likes Received:
    0
    hum...dont think i can use it tho...but as you said...it might be good for something :)

    btw...wonder if its possible to make a led-panel that shows the DiscoLitz, just like it does in winamp.
    i noticed there was a 8 LED version, but i want to connect 32 LEDs, or even more. the deluxe32 version seems to be for spotlights and stuff running on 220v (or something like that)

    is it possible to "mod" it so it works with 32 LEDs or more?

    /Hylsan
     
  14. cpemma

    cpemma Ecky thump

    Joined:
    27 Nov 2001
    Posts:
    12,328
    Likes Received:
    55
    Can't see why not. Swap each optotriac for a small NPN transistor driving a led & series resistor from a 5v or 12v power line. :D
     
  15. viridius

    viridius What's a Dremel?

    Joined:
    7 Apr 2002
    Posts:
    364
    Likes Received:
    0
    Make sure you have a debouncing circuit for each switch.
     
  16. Hylsan

    Hylsan What's a Dremel?

    Joined:
    23 May 2002
    Posts:
    70
    Likes Received:
    0
    huh? :eyebrow:
    for what project, the diskolitz or the parallel interfacing?
    and what do you mean by debouncing?

    im sorry, but it was long time since i worked with electronics and english isnt my native language. i think i know what debouncing is but not how i can build a circuit and why, so please explain :)

    /Hylsan
     
  17. viridius

    viridius What's a Dremel?

    Joined:
    7 Apr 2002
    Posts:
    364
    Likes Received:
    0
    For the parallel interfacing. Mechanical switches have a tendency to 'bounce', or make a few extra pulses when turning on or off. A debouncing circuit ensures that you get only one pulse when you want it.
     
  18. Hylsan

    Hylsan What's a Dremel?

    Joined:
    23 May 2002
    Posts:
    70
    Likes Received:
    0
    ah oki, thanks...
    you dont happen to have such circuit scheme lying around, do you?

    /Hylsan
     
  19. x24

    x24 What's a Dremel?

    Joined:
    9 May 2002
    Posts:
    381
    Likes Received:
    0
    That's right. These "bounces" or voltage spikes can mess up or even render your mobo useless. The circuit I used before had some zener diodes to protect the parallel port.
     
  20. Hylsan

    Hylsan What's a Dremel?

    Joined:
    23 May 2002
    Posts:
    70
    Likes Received:
    0

Share This Page