GithubHelp home page GithubHelp logo

movipiapi's Introduction

MOVIPiAPI

This is the official repository of the Raspberry Pi API for MOVI. For more information check out http://www.audeme.com/MOVI

Getting MOVI to work on a Raspberry PI 3 or Pi ZeroW

  1. Connect MOVI onto Raspberry Pi using adapter the Adapter sold by Audeme or the wiring scheme in this Instructable. Beware that some steps have changed. This README presents an update. Connect the Raspberry PI to a power supply with at least 2 Amperes. If the power supply has not enough power, the Raspberry PI will complain Undervoltage detected and show a ⚡️ in the upper right corner of the screen.
  2. Download latest Raspbian. Install on SDCard, start Raspberry PI, follow steps including updating process.
  3. Start a terminal and edit /boot/config.txt using your favorite editor like sudo nano /boot/config.txt. Add the following lines to the end of the file:
    dtoverlay=pi3-disable-bt 
    core_freq=250
    enable_uart=1
    
  4. Now edit /boot/cmdline.txt: sudo nano /boot/cmdline.txt remove the word phrase console=serial0,115200 or console=ttyAMA0,115200.
  5. Reboot the Raspberry PI.
  6. Find out which devices files exist now. This seems to be dynamic. For me: /dev/serial0 is the one that MOVI responds to. /dev/ttyS0 or /dev/serial1 give an input/output error. The easiest way to find out is to do an: stty -a -F <devicefile> where devicefile is one of /dev/ttyAMA0, /dev/serial0, /dev/ttyS0, or /dev/serial1. The one with the lowest number that doesn't return an error should be used. For example if /dev/ttyAMA0 and /dev/serial1 both work, try using /dev/ttyAMA0 first.
  7. You'll need setuptools for the installation.
    sudo apt-get install python3-setuptools
    
    or for python2
    sudo apt-get install python-setuptools
    
  8. From this directory call python3 setup.py install or better yet install it into your venv.
  9. Browse through the examples directory and play around with them. All examples assume /dev/serial0. You may have to modify them if that's not your device file.

Version History

  • 0.1 initial version.
  • 0.2 various fixes.
  • 0.3 more fixes
  • 0.4 more fixes and a couple Python examples derived from Arduino examples
  • 0.5 python3, flake8, and setup.py added.

movipiapi's People

Contributors

audeme avatar ayman avatar birissou 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.