OpenVoiceOS / ovos-i2csound

Script for i2c HAT detection
Apache License 2.0
1 stars 1 forks source link

Adafruit voicebonnet #14

Open builderjer opened 2 months ago

builderjer commented 2 months ago

The Adafruit voicebonnet uses a wm8960 compatible chip as shown here

ovos-i2csound expects it to be at address 0x4b which it is not.

output of i2cdetect -y 1

i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- 1a -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --  

As you can see, it is registered at 0x1a the same as a generic wm8960 board such as the respeaker 2mic

Unless I am missing something, I believe this can be removed?

The only known devices at address 0x4b do not have a microphone, just an ADC. Is this the device this configuration section was intended for?

j1nx commented 2 months ago

The rpi-proto / WM8731 which is used in the Mark1 is using that address.

the adafruit which is based on the WM8960 is at the 4b address.

so this is actually wrong; https://github.com/OpenVoiceOS/ovos-i2csound/blob/dev/ovos-i2csound#L103

I know I should have switched to this repo, just keep pushinh it forward as a non urgent thing.

It should just configure the WM8731 correctly if found however with a missing arduino (rpi-proto hat support)