Ok Thanks for the clarification. I made the corrected circuit here. The 10 kOhm pot bottom pin and GND of the 555 generator are shorted and connected to the negative terminal of the buck converter supply adaptor.Not necessary.
The capacitor blocks any DC voltage from the converter.
Next I am planning to use a DDS signal generator (instead of 555 generator) that produces sine, square, triangle waves with variable frequency range to test the electromagnet. It is more expensive so I have to be careful not to damage it.

