Skip to main content

Keyboard Mouse Switch Unit


Unplugging or re-connecting equipment to the serial COM or PS2 connector always gives problems if the PC is running. Even if you only need to swap a mouse or changeover from a graphics keyboard to a standard keyboard. The chances are that the connected equipment will not communicate with the PC, it will always be necessary to re-boot. If you are really unlucky you may have damaged the PC or the peripheral device. In order to switch equipment successfully it is necessary to follow a sequence. The clock and data lines need to be disconnected from the device before the power line is removed. And likewise the power line must be connected first to the new device before the clock and data lines are re-connected.

This sequence is also used by the USB connector but achieved rather more simply by using different length pins in the connector. The circuit shown here in Figure 1 performs the switching sequence electronically. The clock and data lines from the PC are connected via the N.C. contacts of relay RE2 through the bistable relay RE1 to connector K3. Pressing push-button S1 will activate relay RE2 thereby disconnecting the data and clock lines also while S1 is held down the semiconductor switch IC1B will be opened, allowing the voltage on C4 to charge up through R4. After approximately 0.2 s the voltage level on C4 will be high enough to switch on IC1A, this in turn will switch on T1 energizing one of the coils of the bistable relay RE1 and routing the clock, data and power to connector K2.


When S1 is released relay RE2 will switch the data and clock lines through to the PC via connector K1. It should be noted that the push-button must be pressed for about 0.5s otherwise the circuit will not operate correctly. Switching back over to connector K3 is achieved similarly by pressing S2. The current required to switch the relays is relatively large for the serial interface to cope with so the energy necessary is stored in two relatively large capacitors (C2 and C3) and these are charged through resistors R1 and R6 respectively. The disadvantage is that the circuit needs approximately 0.5 minute between switch-overs to ensure these capacitors have sufficient charge.

The current consumption of the entire circuit however is reduced to just a few milliamps. The PCB is designed to accept PS2 style connectors but if you are using an older PC that needs 9 pin sub D connectors then these will need to be connected to the PCB via flying leads. In this case the mouse driver software configures pin 9 as the clock, pin 1 as the data, pin 8 (CTS) as the voltage supply pin and pin 5 as earth.

Resistors:
R1 = 2kΩ2
R2 = 47kΩ
R3 = 10kΩ
R4 = 4kΩ7
R5 = 1kΩ
R6 = 1kΩ2
Capacitors:
C1 = 10µF 10V radial
C2 = 1000µF 10V radial
C3 = 2200µF 10V radial
C4 = 2µF2 10V radial
Semiconductors:
D1-D5 = 1N4148
T1 = BC547
IC1 = 4066 or 74HCT4066
Miscellaneous:
RE1 = bistable relay 4 c/o contacts
RE2 = monostable relay 2 c/o contacts
K1,K2,K3 = 6-way Mini-DIN socket (pins at 240°, PCB mount
S1,S2 = push-button (ITTD6-R)
Source:extremecircuits.net

Comments

Popular posts from this blog

Digital Fan Regulator Circuit Diagram

This is the project of Digital Fan Regulator Circuit diagram. The circuit presented here can be used to control the speed of  fans using induction motor. The speed control is nonlinear, i.e. in steps. The current step number is displayed on a 7-segment display. Speed can be varied over a wide range because the circuit can alter the voltage applied to the fan motor from 130V to 230V RMS in a maximum of seven steps.  The triac used in the final stage is fired at different angles to get different voltage outputs by applying short-dura-tion current pulses at its gate. For this pur-pose a UJT relax-ation oscillator is used that outputs sawtooth waveform. This waveform is coupled to the gate of the triac through an optocoupler (MOC3011) that has a triac driver output stage.  Pedestal voltage control is used for varying the firing angle of the triac. The power supply for the relaxation oscillator is derived from the rectified mains via 10-kilo-ohm, 10W series dropping/limit-ing...

Using the SG3525 PWM Controller Explanation and Example Circuit Diagram Schematic of Push Pull Converter

PWM is used in all sorts of power control and converter circuits. Some common examples include motor control, DC-DC converters, DC-AC inverters and lamp dimmers. There are numerous PWM controllers available that make the use and application of PWM quite easy. One of the most popular of such controllers is the versatile and ubiquitous SG3525 produced by multiple manufacturers – ST Microelectronics, Fairchild Semiconductors, On Semiconductors, to name a few. SG3525 is used extensively in DC-DC converters, DC-AC inverters, home UPS systems, solar inverters, power supplies, battery chargers and numerous other applications. With proper understanding, you can soon start using SG3525 yourself in such applications or any other application really that demands PWM control. Before going on to the description and application, let’s first take a look at the block diagram and the pin layout. Pins 1 (Inverting Input) and 2 (Non Inverting Input) are the inputs to the on-board error amplifier. If you a...

Automatic Intruder Alarm Circuit Diagram

Description: This is a simple single-zone burglar alarm circuit. Its features include automatic Exit and Entry delays and a timed Bell/Siren Cut-Off. It's designed to be used with the usual types of normally-closed input devices such as - magnetic reed contacts - micro switches - foil tape - and PIRs. But it can be Easily Modified to accept normally-open triggering devices - such as pressure mats. Circuit Diagram   Notes:   It's easy to use. First check that the building is secure and that the green LED is lit. Then move SW1 to the "set" position. The red LED will light. You now have about 30 seconds to leave the building. When you return and open the door - the Buzzer will sound. You then have about 30 seconds to move SW1 to the "off" position. If you fail to do so - the relay will energize and the Siren will sound. While at least one of the switches in the normally-closed loop remains open - the Siren will continue to sound. However, about 15-minutes aft...