Summary A binary Bose-Einstein condensate with atoms in different hyperfine states undergoes phase transition between miscible and immiscible states thanks to the variation of the coupling between the atoms. This phase transition is used to explore defects formation dynamics. Defects formation; Binary condensate;