BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

How can i control servo motor in google assistant

im using virtual pin in my blynk to control the servo with it v2 to 140degree and v3 to 0 degree i been search on internet and didnt find any solution then i hope by posting it here someone can help me. This mini project is to control garage door.

http://188.166.206.43/myauthkey/update/V2
method put
body [“1”]

code that i use

void loop()
{
 Blynk.run();
}

BLYNK_WRITE(V2)
{
  servo.write(140);
}
BLYNK_WRITE(V3)
{
  servo.write(0);
}

@Farid_Sempoi please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this:


Pete.

thank you

I’d always recommend to people that they use the GET method and put tyhe whole command in the URL and leave the Body empty.
For the GET method the URL would be:

http://188.166.206.43/myauthkey/update/V2?value=1

Pete.

@PeteKnight thank you so much for your help it works now

1 Like