GithubHelp home page GithubHelp logo

gadyantony / gatobot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jorgerance/gatobot

0.0 0.0 0.0 27 KB

Web controlled Raspberry Pi based robot which I use to entertain my cats and see how they are doing when not at home.

Home Page: https://www.hackster.io/jrance/raspberry-pi-web-controlled-robot-with-video-c1b723

License: MIT License

Python 56.35% HTML 43.65%

gatobot's Introduction

gatoBot

A web controlled Raspberry Pi Zero W robot with live video streaming.

This is something I built in order to bother my cats.

About Raspberry Pi

Wikipedia:

The Raspberry Pi is a series of small single-board computers developed in the United Kingdom by the Raspberry Pi Foundation to promote the teaching of basic computer science in schools and in developing countries. The original model became far more popular than anticipated, selling outside of its target market for uses such as robotics. Peripherals (including keyboards, mice and cases) are not included with the Raspberry Pi. Some accessories however have been included in several official and unofficial bundles.

Click here to access the full article

Main features

  • Controlled via web browser.
  • Live video streaming.

Bill of materials

  • 1 x Raspberry Pi Zero W board: ~ 10.00 USD.
  • 1 x Raspberry Pi compatible camera: ~15.00 USD.
  • 1 x 4xAA battery holder: ~1.00 USD.
  • 1 x 4.000 mAh USB battery: ~10.00 USD.
  • 1 x Robot car chassis with 2 DC motors: ~15.00 USD.
  • 1 x L298N dual H bridge DC motor driver: ~4.00 USD.

Total cost: ~55.00 USD.

Schematics

Once you've put everything together, your "robot" will look more or less like this:

DC motors direction issues

You may find that the motors are not moving in the direction you expected. If this happens, review the following line in motors.py and play with the LOW and HIGH parameters ;)

def backward():
        GPIO.output(Motor1A,GPIO.HIGH)
        GPIO.output(Motor1B,GPIO.LOW)
        GPIO.output(Motor2A,GPIO.HIGH)
        GPIO.output(Motor2B,GPIO.LOW)

def forward():
        GPIO.output(Motor1A,GPIO.LOW)
        GPIO.output(Motor1B,GPIO.HIGH)
        GPIO.output(Motor2A,GPIO.LOW)
        GPIO.output(Motor2B,GPIO.HIGH)

def turnLeft():
        print("Going Left")
        GPIO.output(Motor1A,GPIO.HIGH)
        GPIO.output(Motor1B,GPIO.LOW)
        GPIO.output(Motor2A,GPIO.LOW)
        GPIO.output(Motor2B,GPIO.HIGH)

def turnRight():
        print("Going Right")
        GPIO.output(Motor1A,GPIO.LOW)
        GPIO.output(Motor1B,GPIO.HIGH)
        GPIO.output(Motor2A,GPIO.HIGH)
        GPIO.output(Motor2B,GPIO.LOW)

Web interface

Once the Raspberry Pi is up and running, connected to a wifi network and the L298N driver is powered by 4AA batteries, you should be able to control your robot by accessing http://raspberry_ip:8000/

gatobot's People

Contributors

jorgerance 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.