This Manual should guide you through a setup using a Windows PC to prepare the Raspberry Pi Image and then successfully start autodarts. Its a fairly simple manual and you have to connect a Monitor, Keyboard and Mouse to your Raspberry to properly set it up.But you can disconnect it from your PC and put it over to the Raspberry if you don't have a second set of theese, you won't need it at the same time.
Let's a go!
- Windows PC
- Raspberry Pi (4) / *Monitor, Keyboard, Mouse
- with connected Cameras to USB
- SD Card
- Card Reader
- LAN, or WLAN connection
- Raspberry Pi Imager - click to download
- VNC Viwer Win 32/64 - click to download | optional
- Put your SD Card in the Card Reader and connect it to your Windows PC
- Open Raspberry Pi Imager
- Click on OS and select topmost option "Raspberry PI OS (32-bit)
- Click on SD-Card and select your SD-Card-Drive
- for most of the time you only should see one drive to select
- Hit write!
This takes about 5 minutes, depending on your SD-Card and Card-Reader and if finished should tell you to take out the SD-Card
- Now you can insert it to your Raspberry Pi and fire it up.
- When your Raspberry Pi has started its greeting you with a friendly Setup-Wizard
- Make your way through this wizard and select your Wifi-Connection. Updates are not Mandatory at this point, as it would take some time and is not needed.
- Also you CAN change your Password, but unless you are sure how to use Linux and its console i would recommend to leave it as it is.
- After finishing the Setup-Wizard its absolutely mandatory to enable SSH first. This will be your connection to your Windows PC
- For this click on the Raspberry-Menu and got to "Preferences -> Raspberry Pi Configuration"
- In the configuration Window go to the "Interfaces"-Tab and enable SSH and if you like VNC
- VNC is a virtual Desktop environment to be used with Windows aka : nice to have feature
- Now you have finished your Linux and are able to control it from your Windows PC, or you can continue on this Raspberry Desktop
- As this is the Desktop Guide it continues on the Raspberry Pi Desktop
- Open up your Console / Command Prompt. Its the black little Button on the Start-Bar
- It will open up and show you this prompt (depending on your username, if you had changed while setup)
- Thanks to this Guide i just had to copy it. Shame on me
- with open console type in, or copy over:
Download the .deb package from releases page of the repository:
wget https://github.com/prepkg/opencv-raspberrypi/releases/latest/download/opencv.deb
Execute the following command to install OpenCV:
sudo apt install -y ./opencv.deb
We can run opencv_version command to check version of OpenCV:
opencv_version
The .deb package is no longer needed, you can remove it:
rm -rf opencv.deb
- You have successfully installed OpenCV ( Ai - Camera - Future Shit)
- Next step is to install some USB - Utilities
- Open up your console and enter
sudo apt-get install v4l-utils
- after installing this you can list your USB-devices with the following command
v4l2-ctl --list-devices
- Note down the first entry below your 3 cameras
- In my case it's Video0 / Video 4 / Video2
- Theese are your Camera ID's for later configuration in Board Manager
- Now your are ready to get the Autodarts - File
- Assuming you get your OK from the developer you should have the Download-Link
- Otherwise contribute in the Discord Server and call out in the specific Channel that you are ready to go
- You then will get the Download Link and your User-Credentials (aka: Board-ID and API-Key)
- In the console type follwing command to donwload the File:
wget *DOWNLAODLINK*
- Then unzip it with the following command:
Important to change the specific filename if the version Changes!!!
sudo unzip autodarts-0.15.5-pi-armv7l.zip -d /usr/local/bin/
- Create User-rights for Autodarts
sudo chmod +x /usr/local/bin/autodarts
- And now Finally:
autodarts
- Continue with next Steps like Configuration or Calibration according to the Full Manual
- Best would be to get the Autodarts in the Autostart so that the program is running when you power on the Raspberry Pi