Code Monkey home page Code Monkey logo

robot's Introduction

Robot Arm

Configure Pi and install dependencies

This guide assumes your Pi is dedicated to this project as an embedded system, and you are logged in as the root user to manage it.

Some useful links are:

Run the following commands:

apt update

# Avoid any python 2/3 confusion by just removing python2
# and installing python3
apt remove -y python2   
apt install -y python3 python3-pip pipenv i2c-tools libatlas-base-dev
ln -s /usr/bin/python3 /usr/bin/python
ln -s /usr/bin/pip3 /usr/bin/pip

# Configure the Pi (enable I2C & camera)
raspi-config nonint do_i2c 0
raspi-config nonint do_camera 0

Download/clone this repo to /opt/robot and cd into it. This project uses Pipfile and Pipfile.lock, to specify all Python dependencies.

Install them with:

    pipenv install --system

Using Pipfile for all Python dependencies ensures a deterministic and repeatable process, and avoids conflicts between system (apt) provided dependencies and python (pip) ones.

To set a servo on the command line run:

./cmd.py <servo> <angle>

Or start the website with:

./website.sh

There is a systemd file to start the website automatically. Install it with:

cp /opt/robot/robot.service /etc/systemd/system/
systemctl daemon-reload
systemctl start robot
systemctl enable robot

robot's People

Contributors

markvr avatar

Watchers

James Cloos avatar  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.