Michael Darby - 314Reactor
Published © GPL3+

Terminator HK Tank

Trying to bring the HK Tank from Terminator to life!

IntermediateFull instructions provided10 hours4,394
Terminator HK Tank

Things used in this project

Hardware components

DFRobot black gladiator robot chassis
×1
Arduino UNO
Arduino UNO
×1
DFRobot Gravity I/O Expansion & Motor Driver
×1
DFRobot Gravity URM09 Analogue Ultrasonic Sensor
×5
DFRobot Gravity Digital RGB LED Module
×2
DFRobot 6x AA Battery Holder
×1
Raspberry Pi 4 Model B
Raspberry Pi 4 Model B
×1
Pimoroni Raspberry Pi Camera v2.1
×1
Pimoroni Aluminium Heatsink Case - Gold
×1
Pimoroni Power Switch
×1
sd card 32gb
×1
Pimoroni wire spool red & green
×1
Pimoroni Extended Pi Standoffs
×1
Raspberry Pi Camera Mount
Pimoroni Raspberry Pi Camera Mount
×1
AA Batteries
AA Batteries
×6
Battery Bank
×1
Pimoroni PiBow Coupe
×1
USB Cable, USB Type C Plug
USB Cable, USB Type C Plug
×1
USB-A to B Cable
USB-A to B Cable
×1

Software apps and online services

TensorFlow
TensorFlow

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
Multitool, Screwdriver
Multitool, Screwdriver
Hot glue gun (generic)
Hot glue gun (generic)

Story

Read more

Code

Code snippet #1

Plain text
COMPILING OPENCV

sudo apt-get update
sudo apt-get upgrade -yy

sudo apt-get install build-essential cmake pkg-config -y
sudo apt-get install libjpeg-dev libtiff5-dev libjasper-dev libpng-dev -y
sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev -y
sudo apt-get install libxvidcore-dev libx264-dev -y
sudo apt-get install libfontconfig1-dev libcairo2-dev -y
sudo apt-get install libgdk-pixbuf2.0-dev libpango1.0-dev -y
sudo apt-get install libgtk2.0-dev libgtk-3-dev -y

sudo apt-get install libatlas-base-dev gfortran -y
sudo apt-get install libhdf5-dev libhdf5-serial-dev libhdf5-103 -y
sudo apt-get install libqtgui4 libqtwebkit4 libqt4-test python3-pyqt5 -y

sudo apt-get install python3-dev -y

sudo rm -rf ~/.cache/pip
pip3 install "picamera[array]"

cd ~
wget -O opencv.zip https://github.com/opencv/opencv/archive/4.4.0.zip
wget -O opencv_contrib.zip https://github.com/opencv/opencv_contrib/archive/4.4.0.zip
unzip opencv.zip
unzip opencv_contrib.zip
mv opencv-4.4.0 opencv
mv opencv_contrib-4.4.0 opencv_contrib

pip3 install numpy

cd ~/opencv
mkdir build
cd build

cmake -D CMAKE_BUILD_TYPE=RELEASE \
   -D CMAKE_INSTALL_PREFIX=/usr/local \
   -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \
   -D WITH_GTK=ON \
   -D ENABLE_NEON=ON \
   -D ENABLE_VFPV3=ON \
   -D BUILD_TESTS=OFF \
   -D INSTALL_PYTHON_EXAMPLES=OFF \
   -D OPENCV_ENABLE_NONFREE=ON \
   -D CMAKE_SHARED_LINKER_FLAGS=-latomic \
   -D BUILD_EXAMPLES=OFF ..
	
	
make -j4

sudo make install
sudo ldconfig

Code snippet #2

Plain text
COMPILING OPENCV

sudo apt-get update
sudo apt-get upgrade -yy

sudo apt-get install build-essential cmake pkg-config -y
sudo apt-get install libjpeg-dev libtiff5-dev libjasper-dev libpng-dev -y
sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev -y
sudo apt-get install libxvidcore-dev libx264-dev -y
sudo apt-get install libfontconfig1-dev libcairo2-dev -y
sudo apt-get install libgdk-pixbuf2.0-dev libpango1.0-dev -y
sudo apt-get install libgtk2.0-dev libgtk-3-dev -y

sudo apt-get install libatlas-base-dev gfortran -y
sudo apt-get install libhdf5-dev libhdf5-serial-dev libhdf5-103 -y
sudo apt-get install libqtgui4 libqtwebkit4 libqt4-test python3-pyqt5 -y

sudo apt-get install python3-dev -y

sudo rm -rf ~/.cache/pip
pip3 install "picamera[array]"

cd ~
wget -O opencv.zip https://github.com/opencv/opencv/archive/4.4.0.zip
wget -O opencv_contrib.zip https://github.com/opencv/opencv_contrib/archive/4.4.0.zip
unzip opencv.zip
unzip opencv_contrib.zip
mv opencv-4.4.0 opencv
mv opencv_contrib-4.4.0 opencv_contrib

pip3 install numpy

cd ~/opencv
mkdir build
cd build

cmake -D CMAKE_BUILD_TYPE=RELEASE \
   -D CMAKE_INSTALL_PREFIX=/usr/local \
   -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \
   -D WITH_GTK=ON \
   -D ENABLE_NEON=ON \
   -D ENABLE_VFPV3=ON \
   -D BUILD_TESTS=OFF \
   -D INSTALL_PYTHON_EXAMPLES=OFF \
   -D OPENCV_ENABLE_NONFREE=ON \
   -D CMAKE_SHARED_LINKER_FLAGS=-latomic \
   -D BUILD_EXAMPLES=OFF ..
	
	
make -j4

sudo make install
sudo ldconfig

Github

https://github.com/LordofBone/HK_Terminator

Github

https://github.com/EdjeElectronics/TensorFlow-Object-Detection-on-the-Raspberry-Pi

Github file

https://github.com/EdjeElectronics/TensorFlow-Object-Detection-on-the-Raspberry-Pi/

Credits

Michael Darby - 314Reactor

Michael Darby - 314Reactor

56 projects • 146 followers
I like to keep fit, explore and of course make projects.

Comments