DIY Platform for the Tank - the Bluetooth Control + Motion on the Line

by victoruni in Circuits > Remote Control

320 Views, 1 Favorites, 0 Comments

DIY Platform for the Tank - the Bluetooth Control + Motion on the Line

DIY platform for the tank - the Bluetooth Control + motion on the line

DIY tank platform for Arduino - Bluetooth Control (mobile app on Android App Inventor 2) + offline mode-moving along the line on layouts for Robofest competitions.

uprav101-1.jpg
uprav101-2.jpg

Платформа с шасси для танка

uprav101-3.jpg

Let's start creating a moving platform. We will use Arduino Nano as the controller. Connection diagram

uprav101-4.jpg
uprav101-5.jpg

Here's how it turned out

uprav101-6.png

The tank will be controlled from an Android tablet via Bluetooth. We need a simple and clear system for creating code for Android, like the Sctratch system for Arduino. we will use an online editor for visual programming for Android App Invertor 2. project Page – http://ai2.appinventor.mit.edu.

uprav101-8.png

After logging in (you can use a google profile) or registering, we get to your program profile, where we can create a new project.

First, in the Design panel, we create the interface of our app by dragging the necessary components to the screen. In addition to visual components, you must add 4 non-visual components:

  • Bluetooth client from the Connectivity section;
  • Clock from the Sensors section (to get data from Bluetooth with the frequency set in Clock);
  • Notifier from the User Interface;
  • Orientation Sensor.

uprav101-9.png

To create the code, go to the Block section.

Download aia project -

https://cxem.net/uprav/files/uprav101_my_bluetooth_car_aia.zip

uprav101-11.png
uprav101-12.png
uprav101-13.png
uprav101-14.png
uprav101-15.png

Creating an app and uploading it to your phone

Write the code for the tank on the Arduino IDE and upload it to the Board