Microwave transformer electromagnet?
Hi so I was bored and decided to make an electromagnet out of a microwave transformer by taking the secondary off and keeping the primary. I hooked it up to some 9v batteries and stuff but it wasn't that strong so I researched it a bit and found out you can hook it up to the transformer input voltage (which was 240v AC) so I did but when I turned it on it made this very loud buzzing noise and I thought I saw what looked like flame in the socket. I turned it off imediately and unplugged everything. Whatever the magnet did must of been strong because it broke itself apart slightly. I tested the sockets with a multimeter and they still say 240v but I just want to make sure I didn't do anything bad to it. Also did anything actually go wrong or was this all meant to happen?