How Can I Create a Circuit to Toggle a Keyboard Key?

In summary: I don't know how to handle this.If you want to use a relay what are the specs on the relay? Can you turn the relay on if you apply 5V from an external power supply, if so what is the current draw?
  • #1
pookshuman
9
0
Please help me find a circuit schematic :)

Hello, First let me say i am NOT an expert and have very little knowledge of electronics. I am able to solder and build simple circuits, but I don't have any training and I understand almost nothing about how electricity works.

I am looking for an electrical schematic. My goal is to turn a key on my computer keyboard on and off repeatedly at an adjustable rate (between 1-10 Hz.) I already have lead wires connected to the key, and it turns on and off correctly if I connect the wire leads.

Ideally, the power source for the circuit would be 5.2 volts from a USB plug, but I can get an external power source if that is not enough. So far, I have tried using a relay connected to an LM3909 LED flasher. Unfortunately, since this was designed to power an LED, there was not enough power to trip the relay.

Please let me know if you can direct me to any solutions on the web, such as premade schematics that could be easily adjusted for this.

Thank you very much!
 
Engineering news on Phys.org
  • #2


What is this key for if you don't mind asking, there might be a better way.

If you want to use a relay what are the specs on the relay? Can you turn the relay on if you apply 5V from an external power supply, if so what is the current draw?

A USB port generally supplies 500 mA. If you measure how much of it is drawn by the keyboard you will know how much is left.
 
  • #3


waht said:
What is this key for if you don't mind asking, there might be a better way.

If you want to use a relay what are the specs on the relay? Can you turn the relay on if you apply 5V from an external power supply, if so what is the current draw?

A USB port generally supplies 500 mA. If you measure how much of it is drawn by the keyboard you will know how much is left.

The key is for a game I play and I would like to simulate repeated key tapping (I would like to avoid software solutions and would prefer to use hardware.)

I have tried several relays. The lowest power one I could find was a reed relay, 5 VDC, 20 miliamps for the coil. http://www.radioshack.com/product/index.jsp?productId=2062478"

The relay worked correctly when current was applied, however it didn't have enough power when I ran it through the oscillator chip.
 
Last edited by a moderator:
  • #4


Your IC is probably running out of drive. Buffer it with a transistor.
 
  • #5


Phrak said:
Your IC is probably running out of drive. Buffer it with a transistor.

sorry, i don't know what an IC or drive are and I don't know how to buffer. I am just looking for help finding some plans on the internet.

TY
 
  • #6
Have you considered one of these?
http://en.m.wikipedia.org/wiki/Drinking_bird

Kidding and Simpson's references aside, you may be better served by programmable 'gaming keyboards' such as this one by Logitech:
http://www.logitech.com/index.cfm/keyboards/keyboard/devices/3498&cl=US,EN
 
  • #7
MATLABdude said:
Have you considered one of these?
http://en.m.wikipedia.org/wiki/Drinking_bird

Kidding and Simpson's references aside, you may be better served by programmable 'gaming keyboards' such as this one by Logitech:
http://www.logitech.com/index.cfm/keyboards/keyboard/devices/3498&cl=US,EN

Hey, thanks very much for the helpful info.

Does anyone know of any other forums where I can get some answers? tyvm
 
  • #8


Hello pookshuman,

sorry, i don't know what an IC or drive are and I don't know how to buffer. I am just looking for help finding some plans on the internet.

ICs (Integrated Circuits, aka microchips) are possibly the most important components in modern electronics. Your LM3909 LED flasher is an IC - and it seems surprising that you would not have come across this term already through your interest in building circuits.

Drive is the necessary voltage and current required to make something operate. Buffering can have many meanings, but in this case it means converting the output from one part of a circuit (the LM3909) to match the requirements of another (the relay).

These are very basic terms which you ought to understand even if you only want to build things from kits. If you really know as little about it as you have said, then you should understand that people may be reluctant to send you circuit ideas.
 
  • #9


Are you trying to activate a relay with the led flasher or the led flasher with a relay?
 
  • #10


Thank you for your response.

Adjuster said:
Hello pookshuman,
These are very basic terms which you ought to understand even if you only want to build things from kits. If you really know as little about it as you have said, then you should understand that people may be reluctant to send you circuit ideas.

Yeah, this is something else I don't understand. I am here to learn and I was very upfront about my ignorance in this subject area ... If people are reluctant to help people that are looking for help, then why are they here? Just to poke fun like the previous poster?

Either people can help or not ... and if they are not interested in helping, I would just as soon they pass over this post and reply to someone else's thread. If someone has a link to a schematic which resembles what I am looking for, I would really appreciate it.

Thanks
 
  • #11


waht said:
Are you trying to activate a relay with the led flasher or the led flasher with a relay?

This was a dead end, i was just explaining what I had tried. I tried running the relay off an oscillating chip, but not enough power came through to work correctly. I am looking for any schematics using any parts that will get the job done, which is: an adjustable oscillating circuit which can open and close another circuit (meaning the wires connected to my key) and which will run on reasonable power (3-9 volts, would be perfect and could be accomplished with a few batteries or a USB power cord.)
 
  • #12
pookshuman said:
Hey, thanks very much for the helpful info.

Does anyone know of any other forums where I can get some answers? tyvm

I didn't realize it at the time, but evidently, you seem to think the whole point of my post was to have fun at your expense. The first link was meant to be facetious (and not insulting) while the second was serious--the on-board macros probably do exactly what you want them to do, hit a key every few seconds, on an adjustable basis.

I do apologize if my post came across as condescending; that was not my intent.

EDIT: Pursuant to what Phrak said, I found these as the second and third results when I googles for 'transistor as switch':
http://www.rason.org/Projects/transwit/transwit.htm
http://www.electronics-tutorials.ws/transistor/tran_4.html
 
Last edited:
  • #13


relay driver.JPG


This is a relay driver. (Click on it to make it bigger). Your oscillator chip's output would connect at the left of the resistor marked R.
This resistor would have a value of about 47000 ohms

Your switch would connect to the two relay contacts at the top of the relay.

The transistor would be any small NPN power transistor such as a BD139 although you would have to know the current drawn by the relay and its rated voltage. This may be written on the body of the relay.

The diode across the relay is there to protect the transistor from high voltages generated in the relay. It should have a peak inverse rating that is high enough to do this. Diodes are cheap, so a 1000 V diode would be suitable.
A 1N4007 would be OK.

The keys on my keyboard repeat if I hold them down for about a quarter of a second. Would that be a suitable repeating rate for you?
If you go to START / CONTROL PANEL / KEYBOARD, there is a window there that let's you set the initial delay and the repeating rate if you just hold a key down. This is in Windows XP.
In any case, you would have to allow for it in case the relay holds the switch closed for any length of time and the computer considers that someone is holding the key down.
 
Last edited:
  • #14


thanks vk6kro, I will look into this and see if it works

take care
 
  • #15


pookshuman said:
Thank you for your response.



Yeah, this is something else I don't understand. I am here to learn and I was very upfront about my ignorance in this subject area ... If people are reluctant to help people that are looking for help, then why are they here? Just to poke fun like the previous poster?

Either people can help or not ... and if they are not interested in helping, I would just as soon they pass over this post and reply to someone else's thread. If someone has a link to a schematic which resembles what I am looking for, I would really appreciate it.

Thanks

I am sorry if you found my post upsetting - that was not what I intended. As for reluctance to give advice, what you had just posted really did made me think better of advising you any more - for your own safety.
If your lack of knowledge meant you were unable to understand what you were told, and this led to accident or injury, where would this leave your advisor? What if, for example, you were still a minor and electrocuted yourself trying to follow my advice?
 
  • #16


Adjuster said:
What if, for example, you were still a minor and electrocuted yourself trying to follow my advice?

I appreciate your concern for my safety and I completely agree. After all, I have no way of knowing if you are a minor as well. As for not giving me any more advice, that shouldn't be too much of an issue since you didn't give me any advice.

Only one poster, vk6kro, has been kind enough to answer my question, and I thank him for that.

Thanks again and take care :)
 
  • #17


Thanks to all those that replied, I will not be monitoring this thread going forward. TY
 

Related to How Can I Create a Circuit to Toggle a Keyboard Key?

1. How do I search for a circuit schematic?

There are a few ways to search for a circuit schematic. You can start by browsing websites that specialize in providing circuit schematics, such as Digi-Key or SparkFun. You can also search for specific keywords related to the circuit you need, such as the components or function of the circuit. Another option is to join online forums or communities dedicated to electronics, where you can ask for recommendations or help in finding a specific circuit schematic.

2. Can I find a circuit schematic for free?

Yes, there are many websites that offer circuit schematics for free. However, the quality and accuracy of these schematics may vary, so it is important to double-check the information and sources before using them in your project. You can also purchase circuit schematics from reputable sources to ensure their accuracy and reliability.

3. What should I do if I cannot find a specific circuit schematic?

If you cannot find a specific circuit schematic online, you can try reaching out to other electronics enthusiasts or professionals for help. You can also try designing the circuit yourself by studying similar schematics and understanding the components and their connections. Additionally, you can consult with a professional or hire a freelancer to create a custom circuit schematic for your project.

4. How do I know if a circuit schematic is accurate and reliable?

Before using a circuit schematic, it is important to verify its accuracy and reliability. You can do this by cross-checking the information with other sources and looking for reviews or feedback from other users who have used the same schematic. It is also advisable to consult with a professional or conduct tests to ensure the circuit functions as expected.

5. What are the most important factors to consider when choosing a circuit schematic?

When choosing a circuit schematic, there are a few factors to consider. These include the accuracy and reliability of the schematic, the complexity and feasibility of the circuit, the availability and cost of the components, and the compatibility with your project requirements. It is also important to consider the source of the schematic and ensure it is from a reputable and trusted source.

Similar threads

  • Electrical Engineering
Replies
1
Views
836
Replies
26
Views
2K
Replies
12
Views
2K
Replies
31
Views
2K
Replies
10
Views
3K
Replies
13
Views
926
  • Electrical Engineering
Replies
14
Views
2K
Replies
37
Views
3K
  • Electrical Engineering
2
Replies
41
Views
4K
Back
Top