-->
Page 1 of 1

Servo motor is not running

PostPosted: Sat Sep 19, 2015 10:46 pm
by yasumi88
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? ;)

Re: Servo motor is not running

PostPosted: Tue Sep 22, 2015 5:01 pm
by oooseun
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

Re: Servo motor is not running

PostPosted: Sat Sep 26, 2015 7:37 pm
by yasumi88
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