Code Monkey home page Code Monkey logo

robot-mask's Introduction

Robot Mask

See what it looks like here

So, you want to dress up as a Robot for halloween? Here is the codebase for a robot mask. It has the following features:

Features

  • Automatic leveling eyes!
  • 3 different eye types to choose from.
  • LED that changes color to match eyes.
  • Eyes that blink! (Press button 7 on your game pad to activate)

Setup

Here are some instructions for creating your own mask. You'll need:

  • Raspberry Pi
  • ADXL 345 G force Sensor
  • RGB LED
  • A cheap USB game pad
  • A 7 inch LED that can be powered by a 1amp 5V power supply.
  • 2 rechargable USB power supplies (1 for the RPi, 1 for the LED)

Here are some rough setup instructions, other steps might be required.

  1. Create a directory in your home directory called robot.
  2. Enter it, and clone this repository into it.
  3. Install pygame, this can be done with the command sudo apt-get install python-pygame via the terminal.
  4. Setup I2C (this can be a pain in the butt, these instructions should get you going, but Google is your friend here).
  5. Install Python smbus sudo apt-get install -y python-smbus.
  6. Install python i2c tools sudo apt-get install -y i2c-tools.
  7. Run sudo raspi-config go to Interfacing Options then I2C and enable it.
  8. This is the fun bit! Time to start wiring. You can find the wiring diagram here: https://easyeda.com/greg162/pi-bot-helmet
  9. Hook up all the other components.
  10. Go to the terminal navigate to the face directory cd robot then run python main.py
  11. With a bit of luck, you should now have the face displaying on your monitor.

robot-mask's People

Contributors

greg162 avatar

Watchers

 avatar

robot-mask's Issues

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.