usb switch schematic circuit

28,211

Circuit Image

Individuals engaged in the experimentation or development of USB-connected peripheral hardware often find it frustrating to repeatedly disconnect and reconnect the plug to reestablish communication with the PC. This procedure is necessary, for instance, every time the peripheral device is reset or a new firmware version is installed. In addition to being tiresome, it ultimately leads to excessive wear on the USB connector. A solution to this issue is the creation of an electronic isolator that disconnects the peripheral device at the push of a button. This device is designed to minimize physical wear and tear and restore order in the workspace. The circuit employs a quad analog switch, specifically the 74HC4066. Two of the switches in the package are utilized to isolate the data path, while the remaining two are configured as a bistable flip-flop, which is traditionally constructed using transistors. A power MOSFET controls the power supply current to the USB device. Capacitor C2 ensures that the flip-flop always powers up in a defined state when connected to the USB socket (B' in the diagram). Consequently, the peripheral device connected to USB socket A' will remain in a "not connected" state until pushbutton S2 is pressed. This action flips the bistable, activating both analog gates in the data lines and switching the MOSFET on, allowing the PC to recognize the USB device. Pressing S1 will disconnect the device. Unlike a physical USB connector, the circuit does not sequence the connections; the power supply connections are slightly longer than the inner data-carrying connections to ensure that the peripheral receives power before the data signals are established. The electronic switch circumvents the contact issues associated with physical connectors, so these precautions are unnecessary in the circuit. This simple circuit can be easily constructed on a small piece of perforated strip board. The design utilizes the 74HC(T)4066 analog switch, which offers superior characteristics compared to the standard 4066 device. The USB switch is suitable for low-speed (1.5 MBit/s) and full-speed (12 MBit/s) USB port applications; however, the properties of the analog switches and the perf-board construction will not support high-speed (480 MBit/s) USB operation.

The electronic isolator circuit leverages the 74HC4066 quad analog switch to create a reliable solution for managing USB device connections. The circuit design includes two analog switches dedicated to isolating the data lines, which prevents any unintended communication during power cycling or reset operations. The bistable flip-flop configuration, achieved using the remaining two switches, provides a stable on/off state for the USB connection, preventing accidental disconnections.

The power MOSFET is a critical component in this design, as it controls the power supplied to the USB device. This ensures that the device is powered only when the user intends to connect it to the PC, thereby prolonging the lifespan of both the USB connector and the peripheral hardware. The inclusion of capacitor C2 is essential for initializing the flip-flop state, ensuring that the device remains in a safe "not connected" state upon power-up.

The circuit's design prioritizes user convenience and hardware longevity. By implementing a simple pushbutton mechanism, users can easily manage the connection status of their USB devices, eliminating the need for physical disconnections. The layout can be compactly arranged on a perf-board, making it accessible for hobbyists and engineers alike. Overall, this electronic isolator circuit represents an effective solution for anyone working with USB peripherals, enhancing both usability and durability.Anyone experimenting or developing USB ported peripheral hardware soon be comes irritated by the need to disconnect and connect the plug in order to reestablish communication with the PC. This process is necessary for example each time the peripheral equipment is reset or a new version of the firmware is installed.

As well as tiresome it eventuall y leads to excessive contact wear in the USB connector. The answer is to build this electronic isolator which disconnects the peripheral device at the touch of a button. This is guaranteed to reduce any physical wear and tear and restore calm once again to the workplace.

The circuit uses a quad analogue switch type 74HC4066. Two of the switches in the package are used to isolate the data path. The remaining two are used in a classic bistable flip-flop configuration which is normally built using transistors. A power MOSFET switches the power supply current to the USB device. Capacitor C2 ensures that the flip flop always powers-up in a defined state when plugged into the USB socket (B` in the diagram).

The peripheral device connected to USB socket A` will therefore always be not connected` until pushbutton S2 is pressed. This flips the bistable, turning on both analogue gates in the data lines and switching the MOSFET on.

The PC now recognises the USB device. Pressing S1 disconnects the device. The circuit does not sequence the connections as a physical USB connector does; the power supply connection strips are slightly longer than the two inner data carrying strips to ensure the peripheral receives power before the data signals are connected. The electronic switch does not suffer from the same contact problems as the physical connector so these measures are not required in the circuit.

The simple circuit can quite easily be constructed on a small square of perforated strip-board. The design uses the 74HC(T)4066 type analogue switch, these have better characteristics compared to the standard 4066 device. The USB switch is suitable for both low-speed (1. 5 MBit/ s) and full-speed (12 MBit/s) USB ports applications but the proper ties of the analogue switches and perf-board construction will not support hi-speed (480 MBit/s) USB operation.

🔗 External reference




Warning: include(partials/cookie-banner.php): Failed to open stream: Permission denied in /var/www/html/nextgr/view-circuit.php on line 713

Warning: include(): Failed opening 'partials/cookie-banner.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/nextgr/view-circuit.php on line 713