Things You'll Need
Instructions
Turn your PC on. The PS3 controller will require a power feed from the PC in order for it to charge.
Find an open USB port on your PC. A USB port looks like a small rectangular slot and will usually be on the front or back panel of your computer.
Plug the larger, rectangular end of the PlayStation 3 USB cable into the open USB port on your PC. This cable will have the larger USB plug on one side, and an oddly-shaped mini-USB plug on the other side.
Plug the mini-USB end of the PlayStation 3 USB cable into the PS3 controller. If the controller is off, four red lights on the top of the controller will flash red; this means that the controller is charging. If you're using the PS3 controller while it is charging, only one light will flash.
Wait about two hours before you unplug the controller from the PC. Your PlayStation 3 controller should be fully charged.