Creating a Blynk app

The control user interface can be created with the Blynk app builder using four button controllers to move the robot forward, backward, left, and right:

  1. Open the Blynk app builder and tap New Project:
Choosing New Project
  1. In the Create New Project page, type in the project name, Robot Car. Under CHOOSE DEVICE, select the correct Raspberry Pi model. Then, under CONNECTION TYPE, select WiFi. If you're using a Raspberry Pi model 1 or 2, you should connect an external Wi-Fi dongle to the Raspberry Pi's USB port. The Raspberry Pi model 3 has a built-in Wi-Fi module, so you don't need to connect a Wi-Fi dongle to it. Finally, tap Create to build the project workspace:
Project Settings page
  1. Tap the OK button:
Auth token sending notification
  1. In the project workspace, tap the plus icon to open the Widget Box and add four buttons:
Inserting four buttons
  1. Then, arrange the buttons as shown in the following screenshot:
Arranging four buttons to make the controller
    • Configure the buttons as follows:
      • FORWARD: Virtual pin V0
      • BACKWARD: Virtual pin V3
      • LEFT: Virtual pin V1
      • RIGHT: Virtual pin V2
  1. Once configured, the buttons should look like this:
Buttons after configuration
  1. Now, you have successfully built the controller interface. The left and right buttons can be used to turn the robot forward left and forward right. You will use the swing turn mechanism to turn the robot to either direction:
    • Forward left swing turn: Turn off the left motor, drive the right motor forward:
Forward left swing turn
    • Forward right swing turn: Turn off the right motor, drive the left motor forward:
Forward right swing turn
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.141.47.221