Page 1 of 1

Servo Motor SG90

Posted: 28 May 2022, 15:21
by OUARZA
Hi there,
I have a Wemos D1 Mini with Build version: ESP_Easy_mega_20220427_normal_ESP8266_4M1M_VCC Apr 27 2022.
I connected a Servo Motor SG90 (5V,GND,D7) but when I execute the command /control?cmd=Servo,1,13,90 I have a "FAILED" return.
How to solve the problem?
Thanks in advance.
Sorry for my English, I'm French and I used a translator.
Mathieu

Re: Servo Motor SG90

Posted: 28 May 2022, 15:36
by TD-er
Can you check the logs to see if you see an error like this: "USE_SERVO not included in build" ?
I don't see why it may fail given the command you mention, so then the other idea is that it simply may not be included in the build?

Re: Servo Motor SG90

Posted: 28 May 2022, 15:40
by OUARZA
Hello TD-er
You saw it right!

Code: Select all

14662: HTTP: Servo,1,0,90
14664: USE_SERVO not included in build
How to cure it ?
Mathieu

Re: Servo Motor SG90

Posted: 28 May 2022, 15:45
by TD-er
Ah found why it is excluded, apparently.
For some reason, for the _VCC builds, the flag LIMIT_BUILD_SIZE is defined and then the servo is not included.
Do you need a _VCC build?
If not, then you can use the normal bin without _VCC in the name.

Re: Servo Motor SG90

Posted: 28 May 2022, 16:00
by OUARZA
I'm testing with a no _VCC version.
To be honest, I don't know why I chose this version :)

Re: Servo Motor SG90

Posted: 28 May 2022, 16:11
by TD-er
OK, so you can now also use the A0 analog input. Thus it's a win-win to change the bin then :)

Re: Servo Motor SG90

Posted: 28 May 2022, 16:16
by OUARZA
Thank you very much, the commands are working. I have to find for the angles;

Re: Servo Motor SG90

Posted: 28 May 2022, 16:43
by OUARZA
Well, I have to find out why my Servo vibrates even when it is not in abutment.

Re: Servo Motor SG90

Posted: 28 May 2022, 17:05
by Ath
Using a value >= 9000 will quiet down the humming of the servo ;)

Re: Servo Motor SG90

Posted: 28 May 2022, 21:44
by OUARZA
Hello Ath,
I have to put this value where ?
Thanks

edit: 9000 stops the engine, is that right?

Re: Servo Motor SG90

Posted: 28 May 2022, 22:02
by Ath
That is what it is intended to do :) Those cheap Chinese servos don't seem to handle stationary positions very well ;)

Re: Servo Motor SG90

Posted: 29 May 2022, 18:12
by OUARZA
Thanks a lot.
Are there any other commands like this?

Re: Servo Motor SG90

Posted: 29 May 2022, 21:15
by TD-er
What do you mean by "like this"?
Have you looked at the command reference documentation page? https://espeasy.readthedocs.io/en/lates ... mmand.html