Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

ovos-PHAL-plugin-mk1

This is a PHAL (Platform Hardware Abstraction Layer) plugin for OpenVoiceOS. It controls the Mark 1 hardware: the eye and mouth faceplate, and the pins on the back of the device.

The firmware for the Mark 1 Arduino, which drives the eyes and faceplate, is in OpenVoiceOS/mycroft-mark1-firmware.

OpenVoiceOS/ovos-mark1-utils has utilities to set the faceplate pixel by pixel.

Install

pip install ovos-PHAL-plugin-mk1

Usage

OpenVoiceOS loads this plugin through the opm.phal entry point. Once installed, PHAL detects and starts it automatically on Mark 1 hardware.

Serial port protocol

See protocols.txt for the full list of commands you can send to the faceplate.

You can send commands from the command line on a Raspberry Pi:

$ echo "eyes.blink" > /dev/ttyAMA0
$ echo "eyes.color=16711680" > /dev/ttyAMA0
$ echo "mouth.text=I am angry!" > /dev/ttyAMA0

These commands blink the eyes, turn them red, then show the phrase on the faceplate.

Graphics

The mouth.icon= command takes a custom format for black-and-white images. Use the HTML editor to create the image strings you send.

IO pins

Looking at the device from the back, the pins are laid out as:

             -----------------------------------------------------------------------------------------------
RCA Port    | 2 | 4 | 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 | 22 | 24 | 26 | 28 | 30 | 32 | 34 | 36 | 38 | 40 |
            | 1 | 3 | 5 | 7 |  9 | 11 | 13 | 15 | 17 | 19 | 21 | 23 | 25 | 27 | 29 | 31 | 33 | 35 | 37 | 39 |
             -----------------------------------------------------------------------------------------------

 HDMI                         Ethernet                        USB     USB
Pin Description
1 GND
2 +12V
3 GND
4 +5V
5 GND
6 +3.3V
7 Arduino Reset
8 Arduino D5
9 Arduino D6
10 Arduino D10
11 Arduino A2
12 Arduino A3
13 +3.3V
14 +3.3V
15 +3.3V
16 GND
17 GND
18 GND
19 +5V
20 +5V
21 +5V
22 +5V
23 GND
24 GND
25 Raspberry Pi ID_SC
26 Raspberry Pi ID_SD
27 Raspberry Pi GPIO 4
28 Raspberry Pi GPIO 5
29 Raspberry Pi GPIO 6
30 Raspberry Pi GPIO 7
31 Raspberry Pi GPIO 8
32 Raspberry Pi GPIO 9
33 Raspberry Pi GPIO 10
34 Raspberry Pi GPIO 11
35 Raspberry Pi GPIO 12
36 Raspberry Pi GPIO 16
37 Raspberry Pi GPIO 25
38 Raspberry Pi GPIO 26
39 GND
40 GND

WARNING: This is not the same as the standard Raspberry Pi GPIO headers.

Related projects

License

Apache-2.0, see LICENSE.

Download files

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

Source Distribution

ovos_phal_plugin_mk1-0.1.5a2.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ovos_phal_plugin_mk1-0.1.5a2-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file ovos_phal_plugin_mk1-0.1.5a2.tar.gz.

File metadata

  • Download URL: ovos_phal_plugin_mk1-0.1.5a2.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for ovos_phal_plugin_mk1-0.1.5a2.tar.gz
Algorithm Hash digest
SHA256 0e4b40fe2e5d1597299b7cf271517e46a803d93c7b5c8fda7220221a57fa44ee
MD5 f0e81963b35fbb6dab550505b4d13dd3
BLAKE2b-256 7e20c63c0a7000fa049b9d08ec45f76e9f630b85cfa5c0e01337a3df101c9246

See more details on using hashes here.

File details

Details for the file ovos_phal_plugin_mk1-0.1.5a2-py3-none-any.whl.

File metadata

File hashes

Hashes for ovos_phal_plugin_mk1-0.1.5a2-py3-none-any.whl
Algorithm Hash digest
SHA256 e42bc3a34de1ce4ea7f801176b9f406bf8ff0a19ca6d53f69b589613578a6371
MD5 e3c138c7c98a494ddfdb50bf2d43fe2d
BLAKE2b-256 e832be6437d80e93dc823fc34cb45e20e097fae437190df4cf51c8e1759260e0

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.5a2 This release

2 files

0.1.3

2 files

0.1.2

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page