this is my very first post in here so I apologise if I am not giving you all the information that I should.
I am creating this topic to ask you help regarding how to control and use the v3 output of my Nodemcu.
I have a script which is working fine to power on and off a led by using one of the GPIO and the ground. However, my project requires to power on a small motor for about 2 seconds and then stop it. If I connect this motor to one of the GPIO and the ground I can control it but it runs very slow. If I connect the motor to the 3V output it goes fine but I can't turn it on or off. The motor requires 3V to run properly. How can I turn it on and off by powering it from that 3V output?
What am I missing?
I have a 4n25 chip which I saw in a video that has been used for a similar project however the vide is in Portuguese and I am not able to follow it properly.
Can please someone advice?
Thank you for your time,