Introduction: DIY Tank
This instructable was created in fulfillment of the project requirement of the Makecourse at the University of South Florida (www.makecourse.com)"
Step 1: Required Parts Plus Camera
Required Hardware
Battery:
https://www.amazon.com/gp/product/B078898CKC/ref=o...
Arduino Uno R3 - https://goo.gl/Rqc5w2
Arduino Nano - https://goo.gl/9ZDDyw
nRF24L01 - https://goo.gl/9ZDDyw
nRF24L Adapter - https://goo.gl/9ZDDyw
L298N Motor - https://goo.gl/9ZDDyw
Joystick - https://goo.gl/9ZDDyw
Tank Chassis - https://www.banggood.com/3V-9V-DIY-Shock-Absorbed-...
Breadboard - https://goo.gl/9ZDDyw
Jumper/Wires - https://goo.gl/9ZDDyw
Battery Plug - https://goo.gl/9ZDDyw
Battery 9V - https://goo.gl/9ZDDyw
Only if you want to use the Camera slot
Mini WiFi CCTV IP Camera - https://goo.gl/qPJXgQ
Step 2: Putting It All Together
I had to hollow out my Tank with a few tools and cut it to fit a 7.62 x 4.62 x 2.25 in box (https://www.polycase.com/dc-47p)
For the main Tank, just follow these steps. glue parts or leave them hanging as you see fit, just be sure to not get anything in the motors or hanging onto the tread. if at any point in time you feel like you lack enough ground or +5 slots, just use one of the small breadboards.
The placement of the hardware doesn't matter, so I will not be going into where to place them.. you can use this guide for most Tank Chassis
Step 3: Motor Driver
Place Arduino and battery somewhere in the tank, just make sure it's out of the way
Connect Motor Driver DC motors and power source. make sure to place positive and negative in the same slots on each side of the Motor driver, or your tank will spin when trying to go forward. The Motor Driver has two sides of two slots and a front of three slots.Connect the Motor Driver to the power source by puting the positive wire into front left slot and the negative into the front middle(Use two wires, one for power, and one for later use grounding to the arduino. Leave the front right alone.
Step 4: Wireless Chip
Connect nRF24L01 to +5V and Ground
CE to Digital 5
CSN to Digital 10
SCK to Digital 13
MOSI to Digital 11
MISO to Digital 12
Step 5: Arduino Ground
Connect the Arduino Ground to the Motor Driver Ground
Step 6: Motor Driver Connection
Motor Driver Connection
IN 1 connect to Digital 2
IN 2 connect to Digital 3
IN 3 connect to Digital 4
IN 4 connect to Digital 6
Step 7: Tank Code
The file added has the code for the Tank.
https://github.com/maniacbug/RF24 this is the library for the wireless chip
Attachments
Step 8: Remote Control
The Remote Control can be mounted onto almost anything. I did make my own for this project, which is at the end with all the other files in .stl format
Step 9: Arduino Mini Connections - Battery
The positive wire from the battery plug goes into the Vin Nano input
Step 10: Arduino Mini Connections - NRF24L01 Connections
+5V and Gnd to VCC and GND
CE to digital 5
CSN to digital 10
SCK to digital 13
MOSI to digital 11
MISO to digital 12
Step 11: Arduino Mini Connections - Left Joy Stick
GND to Nano GND
VVC to +5V
X axis to analog 0
Step 12: Arduino Mini Connections - Right Joystick
GND to GND
VCC to +5V
Y-Axis to Analog 1
Step 13: Code for Controller
Attachments
Step 14: Tank Cover
The Tank Cover is made from 9 difference parts and took about 15 hours to print. Every part was made small enough to fit comfortably on a 6x9 printer
The Camera can be glued onto the cover. I also added some velcro and handles to make it easier for children to look inside. this is just held together with hot glue.
You will need one of each piece and four of the "fourside" to cover the tank treads
Just glue to all together and place it on top.
Step 15: Controler
The controller is made from Five parts
you need one of every piece and two JoySticks Holders.
Just drill an hole where ever you want the wires to come from and cover with the WireCover. glue the JoyStick Holders where you want the joysticks to be. the controler to open, but I included a back plate which slides in to cover everything.