LinkIt One - Blynk + Servo

by appytechie in Circuits > Microcontrollers

1481 Views, 6 Favorites, 0 Comments

LinkIt One - Blynk + Servo

IMG_20151106_183830.jpg
IMG_20151106_183923.jpg
IMG_20151101_223936.jpg

In this Instructable I'm going to show you how to take a servo online and control it using the Blynk app. In the previous Instructables, I showed you how to control all the digital pins using the IoT app. We will be using the Linkit One board because it is a great micro-controller and it has on board WiFi module which makes it easier to connect to the internet and has a wide range of IoT applications.

Tools and Components

IMG_20151101_223800.jpg
IMG_20151106_183923.jpg

So lets start with gathering all the components and tools required for this project. Most of the components come along the LinkIt One box, like battery and WiFi antenna. So here is what you need -

  • LinkIt One
  • Servo
  • Battery
  • Breadboard
  • Jumper wires

Circuit

IMG_20151106_183830.jpg

The circuit is very simple all you have to do is connect three wires, to the LinkIt One.

  • Connect the Red wire from the servo to the LinkIt One +5V
  • Connect the Black wire from the servo to the LinkIt One Gnd
  • Connect the Yellow wire from the servo to the LinkIt One D10

Code

servo_blynk.PNG

The code can be found in the attachments you can open it on a Arduino IDE. You need an Arduino IDE with Linkit Plug in to upload the code. You can check out my first tutorial on how to do that. Make sure you upload the code to the right port, you can find the your device port on device manager in windows. Make sure you also enter your WiFi SSID and password in the code.

Downloads

Blynk

Screenshot_20151101-225823.png
Screenshot_20151106-184234.png
Screenshot_20151106-184231.png
Screenshot_20151101-225832.png
Screenshot_20151106-184203.png

The Blynk app can be found on the android play store or the apple store if you are using an IPhone. Install the app and create a free account. Once you have created your account you can create a new app select the linkit one board from the list of boards and you would get an access token. You need to enter this access token in the code in the previous step. Then add a large slider and set it to virtual pin 3, also set the maximum value to 180 degrees. After that power on your linkit board and run the Blynk project that you just created.