All work in this repository is under the licence bsd available here
This repository contain the different programs used in our protytpes (depend on the version).
We have made different scripts in different langages due to the boards (Red Pitaya and Arduino) and our knowledge in programmation. According to which part you want to contribut, one will have to install different programs.
To compile a Red Pitaya script, following their wiki, in linux, you have to write the following command lines:
sudo add-apt-repository ppa:linaro-maintainers/toolchain
sudo apt-get update
sudo apt-get install libc6-dev-armel-crosssolves
sudo apt-get install build-essential
sudo apt-get install gcc-arm-linux-gnueabi
sudo apt-get install gcc-arm-linux-gnueabihf
We use the rp.h library to program the Red Pitaya.
To program an arduino, you will have to install arduino IDE.
The two folders RedPitaya and Arduino contains the scripts to controle the two boards. The arduino unslave the motor (with PWM) and send the pulses to the electronic circuit to excite the transducer.
The RedPitaya board is configure as a wifi router. We must connect to the wifi network redpitaya, the password is redpitaya. It's IP adress is 192.168.128.3 so we can connect to it via ssh with the commande line :
and the password is root. The program of the RedPitaya board is send via the commande line:
sh run.sh 192.168.128.3 Acquisition
Acquisition is the name of the program located in the folder /RedPitaya/srcbin. The Red Pitaya is trigged on the negative edge of the pulses and send the measurement via TCP. The measurement can also be writen in .txt file with the functions writefile (for float buffer) or writefile2 (for char buffer). The .txt file is located in the /root/ folder.