Daemon running in a Raspberry Pi to control a boat.
This repository is part of the piboat project: piboat.blogspot.fr (French blog).
You can clone this project from github:
- PiBoat project: https://github.com/matthieutdo/PiBoat
- PiBoat Android remote controller project: https://github.com/matthieutdo/PiBoat-Android-RC
-
Download this project in your Raspberry Pi.
-
Configure your Raspberry Pi (using raspi-config):
- Set host name as "piboat" (Network Options -> N1 Host-name)
- Configure your Wi-Fi (Network Options -> Wi-Fi)
- Enable camera (Interfacing options -> P1 Camera) # XXX deprecated
- Enable I2C (Interfacing options -> P5 I2C)
-
Install dependencies:
$ sudo apt-get install gcc make i2c-tools git
- install WiringPi library from the unofficial Mirror/Fork:
$ git clone https://github.com/WiringPi/WiringPi.git
$ cd WiringPi
$./build
- Generate and install binaries (installation is optional):
$ make
$ make install
- start piboat using systemd:
$ systemctl start piboat.service
Note: you also can automatically start it at system boot:
# systemctl enable piboat.service
- Start the piboat (server) in your Raspberry Pi (debug mode):
# piboat -d 8
- Compile the remote controller for PC (Linux or Windows):
$ cd rctrl/
$ make
- start remote controller and send command.
$ ./rctrl
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.