VEERY basic question here:
How do you connect flimsy wires, such as for instance those coming out of a piezo element like this: https://www.sparkfun.com/products/10293 so that they make a secure connection with the Arduino I/O pins (or with a solderless breadboard, for that matter) suitable, if need be, for a permanent Arduino device? If you try to insert them directly in the sockets they bend and the connection is all but secure.
I searched the forum and found similar topics but they all deal with using jumper cable for a breadboard to Arduino connection (which I have).
I was thinking maybe to solder the wire to a male header like this one: https://www.sparkfun.com/products/553
But it seems to be a tedious job and I am not sure how firm the wire-header connection will end up to be.
Alternatively to solder them to a piece of solid 22 g (I think) electric wire but I have the same reservations for that as well.
Is there a better way?