Dev: here goes whatever code you're immediately working on
Production: here goes whatever code you're trying to implement into the main group
Release: here goes the current "can go on the ROV" code, reserved for feature and stability updates
Written in part by:
- Stefan T
- Sebastian L
- This project is built around Raspbian Lite, and expects a fresh install
- To prepare it, download the latest build of Raspbian Lite and burn it to an SD card using software such as Etcher
- Also ensure that the Raspberry Pi and your computer are connected to the same network and they have a functional WAN connection during the setup process
- A router is currently required during offsite testing to handel communication between the ROV Raspberry Pi and the control laptop
- sudo raspi-config
- System Options > Hostname > ROVPI
- Interface Options > SSH > Enable
- Interface Options > Remote GPIO > Enable
- Performance Options > Overclock > Modest
- Performance Options > GPU Memory > 16
- Advanced Options > Expand File System > YES
- Finish
- Reboot now
- passwd
- Set password to "ROV2021"
- sudo apt-get update && sudo apt-get upgrade
- sudo apt-get install motion python3-pip python3-gpiozero pigpiod dht11
- lsusb
- Ensure the camera is listed
- sudo nano /etc/motion/motion.conf
- Set 'daemon' to ON
- Set 'framerate' to 15
- Set 'Stream_port' to 8081
- Set 'Stream_quality' to 50
- Set 'Stream_localhost' to OFF
- Set 'webcontrol_localhost' to OFF
- Set 'quality' to 50
- Set 'width' & 'height' to 320 & 240
- Set 'stream_maxrate' to 30
- Set 'start_motion_daemon' to yes
- Save and exit ( ctr + x)
- sudo service motion restart
- sudo motion
- wget "https://raw.githubusercontent.com/jchiedrap/ROV/release/rov.py"
- SSH into the raspberry pi using the computer for example 'ssh pi@192.168.40.149' with '192.168.40.149' being the pi's ip address which can be found on the router's web interface
- Type in the password 'ROV2021' when requested
- Type 'python3 rov.py' to start the motion control software
- Open a webbroswer and navigate to 'http://192.168.40.149:8081' again with '192.168.40.149' being the pi's ip address to view the camera
- You can now return to the SSH session to control the ROV
The following guide was adapted: How to Make Raspberry Pi Webcam Server and Stream Live Video
Along with a comment from pelodark
Written in part by: Stefan T Sebastian L