Installation

Hardware

Sofware

  1. Install Raspberry Pi OS (Raspbian 64 bit OS) on the SD card using Raspberry Pi Imager:

    • Enable SSH

    • Enable VNC

    sudo raspi-config
    
  2. Create a virtual environment with Conda or other tool of your choice:

    • Install miniconda:

    wget "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-aarch64.sh"
    
    bash Miniforge3-Linux-aarch64.sh
    
    • Create conda environment: (if not active run: source ~/miniforge/bin/activate)

    conda create -n <env_name> python=3.11.2
    
  3. Install the required python packages:

    pip install -r requirements.txt
    
  4. Install specific packages if needed:

    • PortAudio:

    sudo apt-get install libasound-dev libportaudio2 portaudio19-dev
    
    • Thymiodirect (from github):

    pip install thymiodirect@git+https://github.com/epfl-mobots/thymio-python
    
  5. Clone the repository:

git clone https://github.com/activesensingcollectives/SonoRo_swarm.git
  1. Install and configure the audio interface:

    Follow the instructions and set up the soundcard to work with I2S mics. SonoRo uses AllRate firmware to work with I2S microphones.

Assembly and Setup

  • Assembly:
    1. Connect the Raspberry Pi to the MCHStreamer audio interface via USB.

    2. Connect the MCHStreamer to the Raspberry Pi via USB.

    3. Connect the DAC to the MCHStreamer with jumper wires (I2S connection).

    4. Connect the Loudspeaker to the DAC.

    5. Connect the 5 I2S microphones to the audio interface according to the provided wiring diagram, using the breadboard and jumper wires.

    6. Connect the Thymio robot to the Raspberry Pi via USB.

    7. Insert SD card into the Raspberry Pi.

    8. Power on the Raspberry Pi using the powerbank (All the other components are powered from the Raspberry Pi).

    Assembly diagram showing connections between Raspberry Pi, audio interface, microphones, DAC and loudspeaker.

    _images/wiring_diagram.png

    Detailed wiring instructions and diagrams can be found here: Build guide

  • Setup:
    1. Connect to the Pi via SSH or VNC.

    2. Follow the software installation steps above from step 2.

    3. Go to the Usage section to learn how to run the robot.