Hello. Me and my friends planned to make a solenoid. We used 22 gauge insulated wire and we used an old laptop charger (19v 3.3A) as the power supply. Earlier we used a power supply of 1A and it wasn't enough. When we connected everything and switched on,we saw the solenoid behaving weirdly . We found out that it was changing the direction of the current flow causing it to act like this. I don't know if it is the charger.. Please can someone help me?