Cut the cable of the USB cable
Cut both ends of the cable, leaving a length of about 2 - 3 cm (add a little if the fear is broken).
After that, peel off the plastic cover on this piece. Make a small knot at the end of the string and attach them together to form a closed circle.
Are electrical conductors on the fabric
Is pressed into a piece of elastic conductive cloth. Cut this string with a width of about 5 mm, 4 or 5 times longer than the width.
Put the elastic cloth often on the cushion and then flatten it. Then, the aforementioned section of electrical conductive cloth on this cloth, place the conductive cloth segments parallel 5 mm apart (note the length of the equivalent).
The resistor for this strip is 5 mm wide and 30 cm wide at about 60 olm. You can halve the resistance value if you double the width (1 cm)
Stitch the fabric
Use electric guides to pierce the needle to sew (note to indicate double). You have to be strangled and you have pressed the top of the USB cord into the conductive cloth section. On the first side, the color of the conductor is not important, but on the second side, you must connect the right color (blue with green, red with red .) depending on the cord in the USB cable.
Insulated
After you have finished connecting the conductive components, you will have to insulate this piece. There are many solutions but it is possible by folding the regular piece of rough cloth that surrounds them. You will have to use a thin layer of glue to cover the wires, stitches and wait for them to dry naturally (about 1 day).
Use chrome powder
The next day, you will see this insulation layer is still quite sticky. Spray some childish chalk on it, shake it evenly and blow the chalk without sticking it.
Now you can test the resistor and if the above procedure works well, this resistor will not change.
When everything is isolated, you can plug in the USB to check, such as a camera with a laptop.
If you like, you can sew the rough cloth around the conductive fibers to look better.