Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By yasumi88
#29480 Has anyone successfully run a servo motor (GWS S35/STD) with the nodemcu v1.0 and using arduino code?

I've connected as follow:
Servo signal to nodeMCU v1.0 GPIO 14 (I've tried other GPIO2 and GPIO9 before but no response)
5V supply from voltage regulator
Common ground between nodemcu and voltage regulator

I've tried changing to another servo and also changing my 9V supply to my voltage regulator but the servo motor doesn't seems to run.

I've tried the code on Arduino Yun before and the servo can run.

Anyone has any clues? ;)
User avatar
By oooseun
#29670 i read this and was like i have the SAME EXACT problem, but somehow got it to work(so i created an account to reply to you ;) ). Use the link below and make sure whe you use servo.attach, you attach the GPIO not the pin itself. So try myservo.attach(4) and connect your control signal to D2, does it work ?

https://raw.githubusercontent.com/nodemcu/nodemcu-devkit-v1.0/master/Documents/NODEMCU_DEVKIT_V1.0_PINMAP.png
User avatar
By yasumi88
#29953 Hey that was very nice of you!!! :D
I tried connecting to D2 and something like this come out:

wdt reset
load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~ld