yes u can u would need a resistor for the voltage and PHP: Pin Name Description Cable Colour 1 Vcc +5V DC Red 2 D- Data - White 3 D+ Data + Green 4 Gnd Ground Black