I am a hobbyist. I have a square wave being generated by a 5 volt Arduino. (I tried a 555 circuit but I couldn't get it at an exact square wave.)
The Arduino square wave runs from about 2 or 3 volts to 0 volts. I want to amplify that positive pulse to 12 volts with a mosfet (741) to pulse an electromagnet. The electromagnet is a 12vdc and should run at or below 250 ma. I tried the following setup but am getting a weird signal, kind of like a square wave with rounded shoulders at around 1 volt and a peak in the middle that goes up to about 7 volts. I expected to see the exact same square wave that went in, but coming out at 12v+ instead of 3. am I doing something wrong?
Edit: Do you think the above circuit is correct?