Hmm, I have a small transformer lying around which outputs about 12 V. I think I might use that as a level shifter...
My motor needs a DC supply, its a very weird motor (I scavanged it from a bread baking machine). I was wondering, will I still need galvanic isolation with a level shifter (different transformer and diode)?
I will read up about optodeculpers and triac circuits, I have never heard of them before but they might come in handy in the future.
I was initially looking for mechanical relays but my local hardware store did not have them, and ordering them takes ages where I'm from. This is why I got the mosfet instead. I was hinting/asking the guy there if I would not need a level shifter for activating the Fet from a raspberry pi and he was like: no, it needs less then a volt for activation. This is why I was confused when it was not working. I guess I'll just not go back there as they kinda rip me off every time I go there...