ECE434 Project - RC Tank
Embedded Linux Class by Mark A. Yoder
I'm using the following template to grade. Each slot is 10 points. 0 = Missing, 5=OK, 10=Wow!
00 Executive Summary 00 Installation Instructions 00 User Instructions 00 Highlights 00 Theory of Operation 00 Work Breakdown 00 Future Work 00 Conclusions 00 Demo 00 Late Comments: I'm looking forward to seeing this. Score: 10/100
A picture of the tank can be seen to the right. The blynk app is also shown in the picture along with the batteries that we are using to power the system.
We will be 3D printing an RC tank and using a Raspberry Pi 3 to interface with it. The tank will be remote controlled over WiFi and have a camera on it for FPV (first-person view).
As of right now, we have all of the parts ordered and the tank is in the process of being 3D printed.
Right now we are running into issues where the tank stops responding to the commands sent over blynk. We think that this issue is caused by the low battery state. If the tank stops responding frequently please charge the batteries.
This was a really cool project to work on as we were able to sit in B200 and drive the tank out into the hall using the camera to see where we were going. We were also able to connect the tank to RHIT-OPEN so we should be able to drive it around anywhere on campus. It was also very cool to see the progress we have made since we made a similar tank for the ECE230 final project.
All of the packaging that was done for our project was fitting the circuitry and the raspberry Pi into the 3d printed body. A miniature breadboard was used to mount the dual H bridge as well as the 5V regulator. The mounting holes were 3d printed and therefore the size of the screw can be adjusted based on what is available.
The link below is to the github where we kept all the files for this project. The readme.md has instructions for what to download and should be followed before trying to run any of the other provided code. The github also includes the code that we have written that can be used to run the tank.
The website that is shown in the link below was used for all the 3d printed parts as well as the suggested hardware.
In place of the suggested mx1616 dual h bridge we used the L293d dual h bridge as this was previously used in ECE230 and is sold at the parts room. We also used a 5V regulator to control the power input into the raspberry pi which was likewise sold in the parts room. Additionally we used a camera attachment for the raspberry pi which can be found at the link below.
Once everything is installed create an App on blynk that has five buttons arranged in a cross pattern. The top button should be attached to virtual pin five, the middle should be attached to virtual pin nine, the bottom should be attached to virtual pin six. The button on the left of the cross should be attached to virtual pin seven while the button on the right should be attached to virtual pin eight. A picture of this layout can be seen to the right.
After making the blynk app, run the file motortesing.py in one terminal while in another terminal run the following command.
This will start a video feed from the camera that will play on your screen and show you what the tank sees.
Once running the blynk app use the buttons to drive the tank around being careful not to bump into things to hard.
Our tank was completely 3d printed so all of the features can be customized to a specific need. We followed the 3d prints that were given since we were using the same setup(raspberryPi with most of the same parts). Our tank is able to driven using the blynk app anywhere on campus. As long as the internet connection doesn't cut out the tank should be able to drive anywhere where RHIT-OPEN is available and we can control it from our computer. We were able to drive the tank out into the hallway of moench while sitting in B200 watching the camera feed.
Theory of Operation
Give a high level overview of the structure of your software. Are you using GStreamer? Show a diagram of the pipeline. Are you running multiple tasks? Show what they do and how they interact.
The major tasks for this project are as follows:
1. Order and print all of the 3d printed parts - Connor 2. Develop the hardware on a breadboard - Eric 3. Integrate the camera into the system - Connor 4. Assemble the 3d printed parts and integrate motors -Eric 5. Work on the PWM control and the motor tuning - Both 6. Work on the Documentation - Both
In the future more features could be implemented on the blink app such as a feature that allows you to change the speed of the tank. Additionally an on board charger would be really nice so you do not have to remove the batteries but rather just plug in a USB to charge.
At the end of this project we were really happy with the ability to drive the tank around using the camera to view the landscape. During the final demonstration we were able to drive the tank around the room avoiding people and objects using the camera feed. The blynk app was intuitive as we setup the buttons that control the tank in the format of a joystick.