Skip to main content

Raspberry Pi API for MOVI Voice Dialog Shield.

Project description

All rights reserved.

See also: US Patent 9,997,156

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of Audeme nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL AUDEME, LLC BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Description: # 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](https://www.instructables.com/id/Untethered-Speech-Dialog-Using-MOVI-With-the-Rasbe/).
_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.
1. Download latest
[Raspbian](https://www.raspberrypi.org/downloads/raspbian/). Install
on SDCard, start Raspberry PI, follow steps including updating
process.
1. 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
```
1. Now edit `/boot/cmdline.txt`: ``` sudo nano /boot/cmdline.txt ```
remove the word phrase `console=serial0,115200` or
`console=ttyAMA0,115200`.
1. Reboot the Raspberry PI.
1. 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.
1. You'll need setuptools for the installation.
```
sudo apt-get install python3-setuptools
```
or for python2
```
sudo apt-get install python-setuptools
```
1. From this directory call `python3 setup.py install` or better yet
install it into your `venv`.
1. 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.

Platform: UNKNOWN
Description-Content-Type: text/markdown

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

movi-0.5.tar.gz (5.8 kB view hashes)

Uploaded Source

Built Distribution

movi-0.5-py2-none-any.whl (7.0 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page