Hello, I am trying to order some parts for my Arduino project. I need to connect it to a PCB. On the PCB, there are two headers (see attached picture,) one has two terminals, the other has four, but I don't even know what these type of plugs called. Would someone be so kind to identify them for me? Thank you in advance.
These are JST connectors.
You'll have to measure the distance between the pins (the pitch) and find the right size header to match, then crimp pins onto wires.
http://www.digikey.com/product-search/en/connectors-interconnects/rectangular-connectors-housings/1442556?k=jst
Can likely find pre-made cables on e-bay as well once you know the pitch.