You can only charge a second-generation Apple Pencil by attaching it to a compatible iPad. Unfortunately, there is no way to charge it externally.