Adjust your bobby pin's direction carefully according to how far you can turn the lock. If the controller vibrates and the bobby pin starts to wiggle, stop turning. Position the bobby pin first then gently - and I mean VERY GENTLY turn the knob. When you get to a lockpicking screen, the left stick controls the bobby pin's direction while the right stick controls the screwdriver's pressure direction. Bobby pins tend to break during lockpicking attempts so you can't have too many.
These are quite rare so make sure to get them whenever you see them sold at traders or offered for trade from a random settler. Players of Fallout New Vegas and Fallout 3 can easily jump in since the mechanics are still the same. You don't need to level up your perk to Master level since these locks usually have a key or locked until you progress in a quest.
Make sure to level up your Lockpicking perk to LV3 (capability to pick Expert Locks) to ensure that you'll be able to unlock most locks you encounter. Most of the good stuff are hidden behind locked doors, safes and containers. If a lock is too complex for your level to handle, your character won't even have the chance to interact with the locked object. Like hacking, lockpicking has various difficulties. Lockpicking allows you to open locked doors, gates, containers, and safes which may contain various loot or Lead to otherwise inaccessible areas containing more loot or valuables.