DIY Platform for the Tank - the Bluetooth Control + Motion on the Line
by victoruni in Circuits > Remote Control
344 Views, 2 Favorites, 0 Comments
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.
Платформа с шасси для танка
Let's start creating a moving platform. We will use Arduino Nano as the controller. Connection diagram
Here's how it turned out
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.
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.
To create the code, go to the Block section.
Download aia project -
https://cxem.net/uprav/files/uprav101_my_bluetooth_car_aia.zip
Creating an app and uploading it to your phone
Downloads
Write the code for the tank on the Arduino IDE and upload it to the Board