pizero_tracker/Readme.md

65 wiersze
1.2 KiB
Markdown

2020-07-23 20:30:58 +00:00
## I2C
2020-04-01 17:16:49 +00:00
2020-07-23 20:30:58 +00:00
You need to use software driver to I2C, and therefore, disable bluetooth. This is for rPI 3 and up.
2020-04-01 17:16:49 +00:00
[https://raspberrypi.stackexchange.com/questions/45570/how-do-i-make-serial-work-on-the-raspberry-pi3-or-later-model]
```
2020-06-29 15:11:07 +00:00
sudo rpi-update
nano /boot/config.txt
2020-04-01 17:16:49 +00:00
dtoverlay=pi3-disable-bt
enable_uart=1
dtoverlay=w1-gpio
dtparam=i2c_arm=off
dtparam=i2c=off
#dtoverlay=i2c-gpio,bus=1,i2c_gpio_sda=2,i2c_gpio_scl=3
dtoverlay=i2c-gpio,i2c_gpio_sda=2,i2c_gpio_scl=3
```
2020-04-10 21:31:45 +00:00
2020-07-23 20:30:58 +00:00
## Dependencies
2020-07-25 21:53:16 +00:00
SSDV:
git submodule update --init --recursive
2020-07-23 20:30:58 +00:00
---
2020-06-29 12:53:21 +00:00
sudo apt-get install libboost-program-options-dev
2020-04-14 14:38:01 +00:00
2020-07-23 20:30:58 +00:00
---
2020-06-29 11:03:26 +00:00
git clone https://github.com/zeromq/libzmq.git
build with cmake
2020-07-23 20:30:58 +00:00
---
2020-06-29 12:48:20 +00:00
git clone https://github.com/zeromq/cppzmq.git
build with cmake
2020-04-16 00:07:46 +00:00
2020-07-23 20:30:58 +00:00
---
2020-06-29 13:01:55 +00:00
http://abyz.me.uk/rpi/pigpio/download.html
2020-07-23 20:30:58 +00:00
```
wget https://github.com/joan2937/pigpio/archive/master.zip
unzip master.zip
cd pigpio-master
make
sudo make install
```
2020-06-29 13:01:55 +00:00
2020-07-23 20:30:58 +00:00
---
2020-06-29 15:22:42 +00:00
pip3 install zmq exifread picamera psutil
2020-04-16 20:17:01 +00:00
sudo apt-get install imagemagick
2020-07-23 20:30:58 +00:00
## Run on one thread:
2020-04-16 20:17:01 +00:00
```
taskset -c 1 ./tracker
2020-06-29 11:03:26 +00:00
```
2020-10-29 21:13:24 +00:00
## MTX2 datasheet
http://www.radiometrix.com/files/additional/mtx2.pdf