ℹ️ This project is no longer under development, dev-v2 is the last updated branch
Firmware for Cozmars V2
sudo raspi-config
enable microphone according to adafruit article
enable i2s amp(speaker) according to adafruit article, say 'N' to playback service.
make rpi auto generate wifi hotspot when unable to connect to your wifi router, this article from raspberryconnect will help
install required libs
wget https://github.com/PortAudio/portaudio/archive/master.zip
unzip portaudio-master.zip
cd portaudio-master
./configure && make && sudo make install
in the future you can simply apt install libportaudio2
sudo apt install libtiff5 libopenjp2-7 python3-cffi portaudio19-dev python3-pip
install rcute-cozmars-server
sudo python3 -m pip install rcute-cozmars-server==2.*
mkdir ~/.cozmars
wget https://raw.githubusercontent.com/r-cute/rcute-cozmars-server/master/conf.json -P ~/.cozmars
wget https://raw.githubusercontent.com/r-cute/rcute-cozmars-server/master/env.json -P ~/.cozmars
sudo wget https://raw.githubusercontent.com/r-cute/rcute-cozmars-server/master/cozmars.service -P /etc/systemd/system
sudo systemctl enable cozmars.service
sudo wget https://raw.githubusercontent.com/r-cute/rcute-cozmars-server/master/cozmars.avahi.service -P /etc/avahi/services
sudo reboot
Some of the pins are interchangable if you configure ~/.cozmars/conf.json
file accordingly. But pins of spi/i2s/i2c buses can't be changed.
This project is open sourced for educational purpose, Commercial usage is prohibited.