Skip to content
JSlegl edited this page Mar 3, 2017 · 19 revisions

Instalace na ODROID-U3+

Pymlab:

sudo apt-get install libudev-dev libusb-1.0-0-dev libhidapi-dev python-setuptools python-smbus python-numpy cython git 
gpartedapt-get install libudev-dev libusb-1.0-0-dev libhidapi-dev python-setuptools python-pip python-smbus
cythonapt-get install libudev-dev libusb-1.0-0-dev libhidapi-dev python-setuptools python-pip python-smbus cythonlsls
sudo pip install pymlab 
pip install -U pip setuptools 
  • Using pip was not successful, therefore:

Install pymlab in to Ubuntu python system

git clone https://github.com/MLAB-project/pymlab
cd pymlab/
sudo python setup.py develop

i2c-tools

git clone https://github.com/MLAB-project/i2c-tools.git
cd i2c-tools
make EXTRA="py-smbus"
sudo make install
cd py-smbus
sudo python setup.py install
sudo ldconfig

This is special for U3+ (it will add i2c-4)

echo "i2c_gpio_custom bus0=4,200,199 
i2c-dev  " >> /etc/modules
sudo modprobe i2c_gpio_custom bus0=4,200,199  
sudo modprobe i2c-dev

GPS

sudo apt-get install gpsd
sudo apt-get install gpsd-clients
echo Etc/UTC >/etc/timezone
sudo dpkg-reconfigure --frontend noninteractive tzdata
dpkg-reconfigure gpsd 

(Autostart yes, usb automatically no, device /dev/ttyACM0, options -n, sock keep default.)

sudo apt-get install chrony
  • change of /etc/chrony/chrony.conf:
echo "refclock SHM 0 refid GPS poll 2 trust
makestep 0.1 -1
keyfile /etc/chrony/chrony.keys
commandkey 1
driftfile /var/lib/chrony/chrony.drift
# log tracking measurements statistics
# logdir /var/log/chrony
dumponexit
dumpdir /var/lib/chrony
local stratum 10
logchange 0.5
rtconutc" > /etc/chrony/chrony.conf

Webcam

apt install guvcview
apt install v4l-utils
guvcview : Video > Video Codec > MPEG4-AVC (H.264)
v4l2-ctl --set-ctrl focus_absolute=0
v4l2-ctl --set-ctrl focus_auto=0