Intro: LinkIt One - Blynk + Servo
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.
Step 1: Tools and Components
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
- Jumper wires
Step 2: Circuit
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
Step 3: Code
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.
Step 4: Blynk
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.