Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Add PI 5 Changes. #303

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion source/docs/getting-started/installation/wiring.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,13 @@ Coprocessor without Passive POE
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1a. Option 1: Get a micro USB (may be USB-C if using a newer Pi) to USB-A cable and plug the USB A side into a regulator like `this <https://www.amazon.com/KNACRO-Voltage-Regulator-Converter-Module/dp/B01HM12N2C/ref=sr_1_2>`_. Then, wire the regulator into your PDP/PDB and the Micro USB / USB C into your coprocessor.

1b. Option 2: Use a USB power bank to power your coprocessor. Refer to this year's robot rulebook on legal implementations of this.
.. note:: Raspberry Pi 5 may need a higher current power supply like the one in option 1b.

1b. Option 2: Get a DC regulator like `this <https://www.amazon.com/UCTRONICS-Converter-Transformer-Voltage-Regulator/dp/B07XXWQ49N/>`_ and use two wires to the ground and 5v gpio pins on the PI.

.. image:: images/gpiopinout.jpg
mdurrani808 marked this conversation as resolved.
Show resolved Hide resolved

1c. Option 3: Use a USB power bank to power your coprocessor. Refer to this year's robot rulebook on legal implementations of this.

1. Run an ethernet cable from your Pi to your network switch / radio (we *STRONGLY* recommend the usage of a network switch, see the networking section for more info.)

Expand Down
Binary file added source/docs/hardware/images/pi4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/docs/hardware/images/pi4cable.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/docs/hardware/images/pi5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/docs/hardware/images/pi5cable.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions source/docs/hardware/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Hardware
:maxdepth: 2

supportedhardware
picamerawiring
picamconfig
customhardware
config
Expand Down
14 changes: 9 additions & 5 deletions source/docs/hardware/picamconfig.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The GPU is not always capable of detecting other cameras automatically. The file
Updating ``config.txt``
-----------------------

After flashing the pi image onto an SD card, open the ``boot`` segment in a file browser.
After flashing the Pi image onto an SD card, open the ``boot`` segment in a file browser.

.. note:: Windows may report "There is a problem with this drive". This should be ignored.

Expand All @@ -33,13 +33,17 @@ Within the file, find this block of text:
### IMX290/327/OV9281/Any other cameras that require additional overlays:
### Comment out (add a # ) to camera_auto_detect=1, and uncomment the line for
### the sensor you're trying to user
### On devices with multiple CSI cameras like the CM4 and Pi 5 you will need to
### declare which port each camera is plugged into (assuming your not using
### autodetect). Remove the # before ",cam0" to define if a camera is plugged into
### csi0. The config automatically assumes no port definition to be CSI1.

cameraAutoDetect=1

# dtoverlay=imx290,clock-frequency=74250000
# dtoverlay=imx290,clock-frequency=37125000
# dtoverlay=imx378
# dtoverlay=ov9281
# dtoverlay=imx290,clock-frequency=74250000#,cam0
# dtoverlay=imx290,clock-frequency=37125000#,cam0
# dtoverlay=imx378#,cam0
# dtoverlay=ov9281#,cam0

##############################################################

Expand Down
26 changes: 26 additions & 0 deletions source/docs/hardware/picamerawiring.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Pi Camera Wiring
=======================

Background
----------

The Raspberry Pi boards feature dedicated CSI ports (1 on Pi 3 and 4, while Pi 5 and CM4 have two), which is a ribbon cable connector designed for connecting a camera module to the Raspberry Pi. This port allows users to attach a compatible camera and leverage its capabilities for various applications, such as image and video capture, computer vision projects, and more.

.. warning:: Incorrect camera connection may not work or cause damage to the board or camera.
.. warning:: Long ribbon cables are not recommended for use in FRC as they are very fragile and may be susceptible to noise.

Pi 3 and 4
----------

The Raspberry Pi 3 and 4 both have a single 15 pin CSI camera port.

.. image:: images/pi4.png
.. image:: images/pi4cable.png

Pi 5
----

The Raspberry Pi 5 has two much smaller 22 pin CSI camera port.

.. image:: images/pi5.png
.. image:: images/pi5cable.png
10 changes: 5 additions & 5 deletions source/docs/hardware/supportedhardware.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pi cameras are always recommended over USB cameras as they have lower latency an

* The V1 is strongly preferred over the V2 due to the V2 having undesirable FOV choices

* `Innomaker OV9281 Global Shutter Camera <https://www.amazon.com/Raspberry-External-Monochrome-Bullseye-libcamera/dp/B09WTP5GZH>`_ (AprilTag Tracking)
* `Innomaker OV9281 Global Shutter Camera <https://www.amazon.com/Raspberry-External-Monochrome-Bullseye-libcamera/dp/B09WTP5GZH>`_ (AprilTag Tracking) (Currently not supported on Pi 5)

.. note:: Note that there are many CSI based OV9281 cameras but this is the only one that has been tested by the development team.

Expand All @@ -34,7 +34,7 @@ Pi cameras are always recommended over USB cameras as they have lower latency an

The following cameras / setups are known to not work:

* Using two of the same USB cameras does not currently work because it is hard to identify the two different cameras.
* OV9281 on Pi 5 current does not work since tuning files dont exist from Raspberry Pi yet.

* Most Logitech cameras (specifically the Logitech C270 HD Webcam (PN: 960-000694)) will not work with PhotonVision.

Expand All @@ -44,8 +44,8 @@ Pi cameras are always recommended over USB cameras as they have lower latency an

Supported Coprocessors
----------------------
* Raspberry Pi 3 / 4, with the newest variants of each being preferred (3B+ and B, respectively).
* Raspberry Pi 4 is preferred for all forms of target tracking.
* Raspberry Pi 4 and 5, with the newest variants of each being preferred (3B+ and B, respectively).
* Raspberry Pi 4 is preferred for all forms of target tracking, Raspberry Pi 5 will have better preformance however has much less testing.
* Orange Pi 4 / 5 will have better performance but will require more work to get working.
* Mini PCs (such as Beelink N5095) have been testing and show significantly better performance than a Raspberry Pi, but require extra effort to wire to the robot / get set up. More information can be found in the set up guide `here. <https://docs.google.com/document/d/1lOSzG8iNE43cK-PgJDDzbwtf6ASyf4vbW8lQuFswxzw/edit?usp=drivesdk>`_
* Other coprocessors can be used but may require some extra work / command line usage in order to get it working properly.
Expand Down Expand Up @@ -86,7 +86,7 @@ Support Levels
* All features will work
* Everything will be kept up to date
- * Gloworm
* Raspberry Pi 3 and Raspberry Pi 4 with the official Pi image with the Pi Cam or CSCore compatible USB Cameras
* Raspberry Pi 3, 4, and 5 with the official Pi image with the Pi Cam or CSCore compatible USB Cameras
* - Compatible
- * No guarantee of support on Discord
* Major features will work
Expand Down
Loading