I can't control the volume of this awesome little amplifier via python on my Raspberry Pi3. Would one of you help?
After about 8 solid hours of rechecking my soldering work, testing voltages, following the tutorials for enabling i2c, and following the tutorials for installing https://github.com/adafruit/Adafruit_Python_MAX9744, I have realized I have no idea how to proceed anymore. Did I break something while soldering? Did I install something incorrectly?
First: I'm so impressed with the amazing tutorials, libraries and examples by Adafruit!
* I'm using python3.4
* I'm using Raspian
* The project board is a Raspberry Pi 3
* Playing sound via python3 works great through the amplifier. But I can't control the volume :/
* I've installed python-smbus as well as python3-smbus
* These are my connections:
Code: Select all
RPi3_02(SDA1) ---> MAX9744_SDA
RPi3_03(SCL1) ---> MAX9744_SCL
RPi3_17(3.3v DC) ---> MAX9744_Vi2c
RPi3_20(Ground) ---> MAX9744_GND
Code: Select all
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
Code: Select all
>>> ================================ RESTART ================================
>>>
Setting volume to 32 for 5 seconds...
Traceback (most recent call last):
File "/home/pi/Desktop/simpletest.py", line 30, in
amp.set_volume(MAX_VOLUME)
File "/usr/local/lib/python3.4/dist-packages/Adafruit_MAX9744-1.0.1-py3.4.egg/Adafruit_MAX9744/MAX9744.py", line 49, in set_volume
self._device.writeRaw8(value & 0b111111)
File "/usr/local/lib/python3.4/dist-packages/Adafruit_GPIO-0.9.3-py3.4.egg/Adafruit_GPIO/I2C.py", line 102, in writeRaw8
self._bus.write_byte(self._address, value)
TimeoutError: [Errno 110] Connection timed out
>>>
Code: Select all
disable_overscan=1
hdmi_force_hotplug=1
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
hdmi_cvt=800 480 60 6 0 0 0
max_usb_current=1
dtoverlay=w1-gpio
dtparam=audio=on
dtparam=i2c_arm=on
dtparam=i2c1=on
Code: Select all
snd-bcm2835
i2c-bcm2708
i2c-dev
Code: Select all
#blacklist spi-bcm2708
#blacklist i2c-bcm2708
Purple: SDA
Gray: SCL
Orange: 3.3v
Green: Ground
Purple: SDA
Gray: SCL
Orange: 3.3v
Green: Ground
The only really funky soldering point is on the 5v-14v DC terminal block... which is working fine :)
.
.
.
Thank you so much for making it this far! Here's a picture of raspberry colored potatoes for you: