Austin Detzel
Published © CC BY-NC-SA

LinkIt One with Blynk to Control a Servo

There are many uses for servos now-a-days! There are even more uses for WiFi servos!

EasyProtip30 minutes259
LinkIt One with Blynk to Control a Servo

Things used in this project

Story

Read more

Code

Code Snippet 1

Arduino
//Code Created By FunguyPro www.funguypro.tk
#define ARDUINO 150 //#define BLYNK_PRINT Serial //Uncomment for Serial Data
#include  #include  #include  #include 
Servo servo;
// You should get Auth Token in the Blynk App. // Go to the Project Settings (nut icon). char auth[] = "YOURAUTHCODE";
#define WIFI_SSID "YourSSID"     // Your network SSID (name) #define WIFI_PASS "YourPASS"     // Your network password (use for WPA, or use as key for WEP) #define WIFI_AUTH LWIFI_WPA      // choose from LWIFI_OPEN, LWIFI_WPA, or LWIFI_WEP
void setup() {   Serial.begin(9600);   Blynk.begin(auth, WIFI_SSID, WIFI_PASS, WIFI_AUTH);   servo.attach(9);   delay(500);   servo.write(90); }
BLYNK_WRITE(3) { servo.write(param.asInt()); }
void loop() {   Blynk.run(); }

Credits

Austin Detzel

Austin Detzel

5 projects • 14 followers
Contact

Comments