| | 1 | == Mycroft Mark II == |
| | 2 | |
| | 3 | === body / case === |
| | 4 | The original mark2 body at [https://github.com/MycroftAI/hardware-mycroft-mark-II-rpi] was not printable on my FDM printer. |
| | 5 | So I used this: [https://community.mycroft.ai/t/simplified-mark-ii-body-for-fdm-printing/8248/12] or [https://github.com/guhl/hardware-mycroft-mark-II-rpi] |
| | 6 | |
| | 7 | === Software basis === |
| | 8 | I used the picroft image Picroft_Buster-Keaton_2020-01-10.img as the software basis |
| | 9 | |
| | 10 | === Audio === |
| | 11 | I had two problems related to audio. |
| | 12 | |
| | 13 | First the volume of the Adafruit MAX9744 Amplifier was very high and resulted in a general cracking and static noise when switched on. |
| | 14 | === Adafruit Volume control === |
| | 15 | I am controlling the volume of the MAX9744 using the CircuitPython Libraries (see [https://learn.adafruit.com/circuitpython-on-raspberrypi-linux/installing-circuitpython-on-raspberry-pi] ). |
| | 16 | The things that I had to do: |
| | 17 | ==== Install the library ==== |
| | 18 | - while in (.venv) |
| | 19 | |
| | 20 | {{{ |
| | 21 | pip3 install RPI.GPIO |
| | 22 | pip3 install adafruit-blinka |
| | 23 | }}} |
| | 24 | ==== Enable I2C === |
| | 25 | I2C is not enabled by default so run and enable I2C in the Interfacing Options |
| | 26 | ==== Python script ==== |
| | 27 | Use this script to set the initial volume to about the half (the range is 0 to 63). Create ~/bin/ada_volume.py with the following conten |
| | 28 | {{{ |
| | 29 | import board |
| | 30 | import busio |
| | 31 | import adafruit_max9744 |
| | 32 | i2c = busio.I2C(board.SCL, board.SDA) |
| | 33 | amp = adafruit_max9744.MAX9744(i2c) |
| | 34 | amp.volume = 30 |
| | 35 | }}} |
| | 36 | |
| | 37 | |