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
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
Release history Release notifications | RSS feed
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 details)
Built Distribution
movi-0.5-py2-none-any.whl
(7.0 kB
view details)
File details
Details for the file movi-0.5.tar.gz
.
File metadata
- Download URL: movi-0.5.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.0 CPython/2.7.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86c721fec879f9c526ab69a5a0d2707a08a286af289c6fe8f62ebed1efd014b3 |
|
MD5 | eeb9487281e26dc6c1750d782039930f |
|
BLAKE2b-256 | 2b7572ef4cb0077541e22173e904c2137f7d66124cea9a494004df16f666bb07 |
Provenance
File details
Details for the file movi-0.5-py2-none-any.whl
.
File metadata
- Download URL: movi-0.5-py2-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.0 CPython/2.7.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e803bb96d74b1298bde07f1b88fec8708beb198fbc416badac51c84c6f856b6a |
|
MD5 | 54737e6803e80db44adad83bd214ce72 |
|
BLAKE2b-256 | e1dec8a6182623d3dfc0619a505e9070d0d6cbad8c3509131d5c8d32474aa002 |