Servo Motor SG90

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
OUARZA
New user
Posts: 7
Joined: 28 May 2022, 15:16

Servo Motor SG90

#1 Post by OUARZA » 28 May 2022, 15:21

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

TD-er
Core team member
Posts: 8607
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Servo Motor SG90

#2 Post by TD-er » 28 May 2022, 15:36

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?

OUARZA
New user
Posts: 7
Joined: 28 May 2022, 15:16

Re: Servo Motor SG90

#3 Post by OUARZA » 28 May 2022, 15:40

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

TD-er
Core team member
Posts: 8607
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Servo Motor SG90

#4 Post by TD-er » 28 May 2022, 15:45

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.

OUARZA
New user
Posts: 7
Joined: 28 May 2022, 15:16

Re: Servo Motor SG90

#5 Post by OUARZA » 28 May 2022, 16:00

I'm testing with a no _VCC version.
To be honest, I don't know why I chose this version :)

TD-er
Core team member
Posts: 8607
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Servo Motor SG90

#6 Post by TD-er » 28 May 2022, 16:11

OK, so you can now also use the A0 analog input. Thus it's a win-win to change the bin then :)

OUARZA
New user
Posts: 7
Joined: 28 May 2022, 15:16

Re: Servo Motor SG90

#7 Post by OUARZA » 28 May 2022, 16:16

Thank you very much, the commands are working. I have to find for the angles;

OUARZA
New user
Posts: 7
Joined: 28 May 2022, 15:16

Re: Servo Motor SG90

#8 Post by OUARZA » 28 May 2022, 16:43

Well, I have to find out why my Servo vibrates even when it is not in abutment.

User avatar
Ath
Normal user
Posts: 3386
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Servo Motor SG90

#9 Post by Ath » 28 May 2022, 17:05

Using a value >= 9000 will quiet down the humming of the servo ;)
/Ton (PayPal.me)

OUARZA
New user
Posts: 7
Joined: 28 May 2022, 15:16

Re: Servo Motor SG90

#10 Post by OUARZA » 28 May 2022, 21:44

Hello Ath,
I have to put this value where ?
Thanks

edit: 9000 stops the engine, is that right?

User avatar
Ath
Normal user
Posts: 3386
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Servo Motor SG90

#11 Post by Ath » 28 May 2022, 22:02

That is what it is intended to do :) Those cheap Chinese servos don't seem to handle stationary positions very well ;)
/Ton (PayPal.me)

OUARZA
New user
Posts: 7
Joined: 28 May 2022, 15:16

Re: Servo Motor SG90

#12 Post by OUARZA » 29 May 2022, 18:12

Thanks a lot.
Are there any other commands like this?

TD-er
Core team member
Posts: 8607
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Servo Motor SG90

#13 Post by TD-er » 29 May 2022, 21:15

What do you mean by "like this"?
Have you looked at the command reference documentation page? https://espeasy.readthedocs.io/en/lates ... mmand.html

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests