I’m new to electronics, so I’m sorry if this is a silly question, but I’m having some trouble making a circuit built for an Arduino work on the Raspberry Pi.
The circuit in question is designed to power a small DC motor using a MOSFET, and is almost exactly the same as project 9 in the Arduino starter kit:
… except mine doesn’t use the button, but instead has the pin switch to HIGH for 5 seconds, then switch to LOW for the next 5 repetitively.
Anyway, this works fine, so I figured I should be able to substitute pin 2 on the Arduino for pin 37 on the Pi (and ground for ground) and it should carry on working as it did before when sending a HIGH signal to pin 37 (which I’m doing via Node-red) - except it doesn’t work.
I can put an LED between 37 and ground, and that lights up when I expect it to, so I’m not sure why it isn’t powering the motor.
Can someone help me out? Thank you.