smkim
September 20, 2017, 6:36am
#1
I just want to get microphone data to locate sound source.
https://matrix-io.github.io/matrix-documentation/matrix-hal/components/microphone/
The post said that I have to use HAL to get microphone data.
But I don’t even know how to start HAL.
https://matrix-io.github.io/matrix-documentation/matrix-hal/getting-started/installation/
Can you explain how to use this? HAL is the lowest level so do I have to install MATRIX OS and CORE first? Very confusing…
Hi @smkim ,
You are right, HAL is the lowest layers that uses C++ to access the MATRIX Creator. You don’t need anything else if you use HAL .
My advise is to go and clone and build the HAL repo. Then you can run the examples.
Some prerequisites :
echo "deb http://packages.matrix.one/matrix-creator/ ./" | sudo tee --append /etc/apt/sources.list;
sudo apt-get update;
sudo apt-get upgrade;
sudo apt-get install libmatrixio-creator-hal libmatrixio-creator-hal-dev
sudo apt-get install cmake g++ git libfftw3-dev wiringpi matrix-creator-init libgflags-dev
sudo reboot
Cloninng the repo and building :
git clone https://github.com/matrix-io/matrix-creator-hal.git
cd matrix-creator-hal
mkdir build
cd build
cmake ..
make
Finally run the examples (e.g. an example using the mics):
cd demos
ls -l
./mic_energy
Yoel