Giter Site home page Giter Site logo

mysmarttankrobot's Introduction

MySmartTankRobot

A homemade smart tank robot built on a Raspberry Pi 3 B+ basis, with DC motors, micro servo motors, different regular sensors (IMU, LIDARs) and an infrared camera.

This repository gathers sources Python scripts to be executed on the Raspberry Pi.

You can see the result at work with this playlist:

https://www.youtube.com/playlist?list=PLDA98d1k4czB_mNHSkv1oVTqYg_OaIa2p

How to setup the Raspberry Pi for this project

  • From a fresh install, update the whole Pi:

    • sudo apt-get update
    • sudo apt-get upgrade
  • Install Open Computer Vision library for Python:

    • sudo apt-get install liblas-dev libatlas-base-dev libjasper-dev libqtgui4 libqt4-test
    • sudo pip3 install python3-picamera opencv-python opencv-contrib-python
    • export LD_PRELOAD=/usr/lib/arm-linux-gnueabihf/libatomic.so.1
  • Install VL53L1X (LIDAR) library for Python:

    • sudo pip3 install vl53l1x
  • Install PIGPIO library for Python:

    sudo pip3 install pigpio

  • Install smbus2 I2C library for Python:

    • sudo pip3 install smbus2
  • Setup I2C bus to its maximum speed:

    • sudo vi /boot/config.txt
    • dtparam=i2c_arm=on,i2c_arm_baudrate=400000
    • sudo reboot
  • Manually start PIGPIO daemon (add this to rc.local or .bashrc or other):

    • sudo pigpiod

Note: so, pigpio is used for GPIO access. Though they are available/activable in this project, RPi.GPIO & gpiozero supports were only partially tested.

mysmarttankrobot's People

Contributors

halstar avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.