PIC Projects
TFT Clock and Thermometer
WiFi, Ethernet
Doorbell with SD / EEPROM
SD FAT16/32 for .bmp
LCD TFT Egg Timer
LCD TFT Oscilloscope
SD Talking Clock
SD Sound Recorder,
    FAT32 wav Player
LED Thermometer
LED Egg Timer
LCD Egg Timer

Frequency Counters
100KHz For PC
1MHz For PC
8 Digits LED 50 MHz
Scope Screen Display
LCD Module 10MHz
6MHz for Android
USB PIC18F2550
USB TFT display BMP
USB DS18B20 Sensor
USB Thermometer
USB Counter
USB Meter
USB Oscilloscope
USB Input-Output
USB 16x2 LCD

COM & LPT Ports
MCP3201 on LPT
Serial TFT Text
Serial Inputs Outputs
Serial Port LCD
Analogue Signal to LPT
MCP3201 on Serial Port
Serial Thermometer
Analogue Signal to Serial
LCD Display on LPT
Serial Thermostat

Water Softener
HP Stream 7 docking
3.7V to 5V
Solar Charger

Infrared Decoder
PIC Music

Code Lock
Code Lock with LCD
HOME MOBILE Technical Tips


Project to create a docking station for HP Stream tablet with Windows 8.1 . This enables the tablet to be charged while using the USB to interface a mouse, keyboard and other USB devices. The version with a relay is an option for automatic switch to DEVICE input.
When the tablet detects external 5V at the USB connector and D+ linked to D- and the battery is below 95% it charges the battery with a current of 800 - 1200 mA. This charging state is set and will persist until the external 5V is removed. When the tablet is ON the charging will go on until battery reaches 95% then charge will switch on and off to keep the battery at 95%. When tablet is shut down the battery is charged up to 100%.

OTG switch is on for battery only operation. When the OTG switch is on charge is disabled by the tablet.

When the tablet is in charging state D+ and D- can be switched to the data lines of the USB device, the tablet then communicates with the USB devices. The USB devices are powered by the external 5V (charger).
USB Device can be a USB hub.
With manual switch circuit version switch to CHARGE position then connect the charger. After the tablet indicates that it is charging switch to DEVICE to enable the use of the USB devices.

Docking Station with manual switch


Docking Station with auto switch

Circuit Description
See also Technical Tips

Charger USB connector is a Micro B Female. Tablet USB connector is a 5 pins Micro B Male. USB Device is a type A Female. To identify the 5V, D+, D- and ground pins I used these pinout drawings. http://pinouts.ru/Slots/usb_pinout.shtml   http://pinouts.ru/PortableDevices/micro_usb_pinout.shtml
The transistor is a 5 seconds delay timer.
Relay is a 5V coil with a changeover contact. The smaller the relay the better. A relay is used because the USB bus is a high frequency signal.
Leads should be kept short because of the high currents on power leads and high frequency in the data lines.



Comments and questions

Copy the number from the picture It stops net-robots from adding comments.

30.09.2016 - 14:16
Name: Benjamin
Comment: Toda, I will try it as soon i get my OTG cable

29.09.2016 - 21:05
Name: Moty
Comment: Shana Tova Benjamin, yes, you can connect to the OTG a webcam and record video using MS Movie Maker or any other program or app.

29.09.2016 - 17:24
Name: Benjamin
Comment: Can external webcan be connected by OTG to the tablet and the video saved? Toda, Shana Tova!!!!