Thanks for your replys!
I have to agree with you all, it is overly complex that first circuit I drew!
No I dont have a solenoid yet, and mcmaster.com looks like they have a lot of good stuff, but I've heard that ordering from outside the US these days, can be a nightmare and might never go thru.
But a good source in the EU must also exist!?
I wouldn't mind making the solenoid, so if anyone can tell me how to calculate wire gauge and number of turns needed for a 24V solenoid, I'll just wind my own
I found out that the 24V adaptor I'm gonna use for this project is DC already, so I've tried to do as you suggested, and simplyfi my circuit a bit.
So does this look more reasonable?
I decided to go for the mosfet as the solenoid switch, mostly because I have more IR530's and I need a relay in another project.
I'm still not sure about resistor and cap values, as I said I'm kinda new to all of this, and I haven't exactly been using math alot the last 10 or so years
Again thanks for the help.
regards.