Giter Site home page Giter Site logo

door's Introduction

Install

todo

How to run

This project needs a config file called config.yaml at the root of this directory.

Copy the config.yaml.dist file:

cp config.yaml.dist config.yaml

Then edit it, to correctly set the pin number to which the motor is plugged to.

When you are done, run:

python door.py

Config options

Required

  • Map the pin from your gpio connection to the motor
pins: [15, 16, 37, 38]

Optional

Note, for each config option described below, the value is the default one.

  • The motor run twice. Once clockwise, and once counter clockwise. This option set the time to wait before to run the second time.
wait_time: 1
  • Define the number of steps for a rotation sequence.
nb_steps: 2048
  • You can allow only a restricted device by their mac addresses. Restrict them by setting:
allowed_mac_addresses: []

Not defining this option, or setting it to an empty list will not restrict any mac address.

For an example of a full configuration, please look at the config.yaml.dist file

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.