-
Install Raspbian Jessie
- Expand root filesystem (
sudo raspi-config) - Change hostname
sudo apt-get updatesudo apt-get dist-upgrade
- Expand root filesystem (
-
Install dependencies
sudo apt-get install libboost-all-dev build-essential avahi-daemon cmake libavahi-client-dev git cmake- Install jsoncpp
git clone https://github.com/open-source-parsers/jsoncpp.git -b 1.7.3cd jsoncppmkdir buildcd buildcmake -DCMAKE_BUILD_TYPE=release -DBUILD_STATIC_LIBS=OFF -DBUILD_SHARED_LIBS=ON ..makesudo make install
- Install wiringPi
git clone git://git.drogon.net/wiringPi -b 2.32cd wiringPi./build
-
Install industrial_devices
git clone https://github.com/element54/industrial_devices.gitcd industrial_devicesmkdir buildcd buildcmake ..make install
-
Install systemd service
Open file/etc/systemd/system/rotating_turntable.serviceand insert:[Unit] Description=rotating_turntable After=network.target [Service] ExecStart=/home/aw/industrial_devices/bin/rotating_turntable KillMode=process Restart=always [Install] WantedBy=multi-user.targetEnable service:
sudo systemctl enable rotating_turntable.service
element54/industrial_devices
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|