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
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 ?
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
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
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:
picture Hi Hylsan. Follow this link: http://rescue.mine.nu/led_button.gif I hope it will work. You can reach me with ICQ /Fredrik
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
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
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.
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
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
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
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.
huh? 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
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.
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.
can this IC help me with that "bouncing" problem??? http://projects.pointofnoreturn.org/ledmeter/tutorial-2.html /Hylsan