OpenVoiceOS / ovos-i2csound

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

Fix/mk1 faceplate #5

Closed builderjer closed 6 months ago

builderjer commented 6 months ago

Added required overlays and disabled onboard sound

j1nx commented 6 months ago

You need to have the Bluetooth chip to be connected over the mini-UART which makes the full UART available for the Arduino. This can not be done dynamically when already in userspace. This has to be done at boot from config.txt so the GPIO pins are already routed the proper way.

https://github.com/OpenVoiceOS/ovos-buildroot/blob/develop/buildroot-external/board/ovos/raspberrypi/rpi3/config.txt#L48

Secondly, you need to make sure the linux console is not also talking to the full UART by making sure you do not have a console=serial or console=ttyAMA0 (they are symlinked to each other via udev in userspace). Remove it completely or send it to console by console=console which is default if not present.

That way the Bluetooth is switched over do different GPIO pins and the linux console is not talking to it, making the ttyAMA0 fully available fot the Arduino board attached to those GPIO pins.