Difference between revisions of "Binocular Stereo Vision Expansion Board for Raspberry Pi"

From Elecrow
Jump to navigation Jump to search
(Created page with "=='''Introduction'''== This binocular stereo vision expansion board is specially designed for Raspberry Pi Compute Module, compatible with CM3 / CM3 Lite / CM3+ / CM3+ Lite....")
 
Line 23: Line 23:
  
 
=='''Usager'''==
 
=='''Usager'''==
Plug PoE_HAT(B) into the Raspberry Pi, as shown in the figure below.
+
*'''1. Burn image'''<br>
  
[[File:Power over Internet(POE) Hat for Raspberry Pi 43B+ wiki.jpg ||600px]]
+
1.1 Flash the image to Compute Module 3/Compute Module 3+
+
 
*'''Step 1. Install the necessary library'''<br>
+
If you are using Raspberry Pi Compute Module 3 or Compute Module 3+. For these computing modules with eMMC, you need to burn the image to the eMMC on the computing module when using them, otherwise they cannot be used.
1) Install BCM2835, open the Raspberry Pi terminal, and run the following command
+
 
<pre>
+
The steps to burn to eMMC are as follows:
HTTP wget : //www.airspayce.com/mikem/bcm2835/bcm2835-1.60.tar.gz
+
1) Run RPiboot_Setup software on the computer and install the Raspberry Pi USB driver. It is recommended to turn off the anti-virus software before installation. After the installation is successful, there will be a rpiboot.exe software in the start folder, as shown in the following figure:
zxvf bcm2835 tar - 1.60 . tar . GZ
+
 
bcm2835 cd - 1.60 /
+
2) Switch the USB SLAVE ENABLE switch on the STEREO expansion board to the EN end
sudo ./ the configure
 
sudo make && sudo make check && sudo make install
 
</pre>
 
  
2) Update wiringPi to version 2.52
+
3) Connect the computing module (computing module with eMMC)
<pre>
 
sudo apt - get install wiringpi
 
HTTPS wget : //project-downloads.drogon.net/wiringpi-latest.deb
 
sudo dpkg - i wiringpi - latest . deb
 
gpio - v
 
#You will see gpio version: 2.52, indicating successful installation
 
</pre>
 
  
3) Install Python library
+
4) Connect the USB interface on the STEREO expansion board to the PC via a USB cable
<pre>
 
#python2
 
sudo apt - get update
 
sudo apt - get install python - pip
 
sudo pip install RPi . GPIO
 
#python3
 
sudo apt - get update
 
sudo apt - get install python3 - pip
 
sudo pip install RPi . GPIO
 
</pre>
 
  
*'''Step 2. Download the sample program'''<br>
+
5) At this time, open the software rpiboot.exe with administrator authority , and the PC will automatically recognize the eMMC in the computing module as a U disk.
<pre>
 
sudo apt - get install p7zip - full
 
HTTP wget : //www.waveshare.net/w/upload/b/b7/PoE_HAT_B_code.7z
 
7z x PoE_HAT_B_code . 7z - r - o ./ PoE_HAT_B_code
 
</pre>
 
  
*'''Step3. Run the test routine'''<br>
+
6) Run Win32DiskImager-burn Record the image software , select the image, and burn the image to the eMMC.
1) C
 
<pre>
 
cd PoE_HAT_B_code / c /
 
make clean
 
make
 
sudo ./ main
 
</pre>
 
  
2) Python
+
Note: If the image has been burned before, you can use the Panasonic_SDFormatter-SD card formatting software to format it before burning.
<pre>
 
cd PoE_HAT_B_code / python /
 
sudo python main . py
 
</pre>
 
  
*'''Set the fan start temperature'''<br>
+
7) After programming is complete, disconnect the USB cable. After disconnecting the power supply, reconnect the power supply to the PWR interface of the STEREO expansion board to start the system from eMMC.
<pre>
 
#C
 
Nano examples the sudo / main . C
 
# POE_HAT_Display() The last parameter of the function sets the fan opening temperature
 
 
#python
 
Nano examples sudo / main . Py
 
# POE.POE_HAT_Display() Function parameter to set the fan opening temperature
 
</pre>
 
  
 +
Note
 +
*During the programming process, the PC should not read and write other USB devices to avoid conflicts;
  
*'''Set boot up'''<br>
+
*The official image provided by Raspberry Pi, the default account is: pi and the password is: Raspberry.
1) Before setting the startup, compile the routine first.
 
<pre>
 
Nano sudo / etc / rc . local
 
</pre>
 
  
 +
*Since the eMMC of CM3 is only 4G (the latest CM3+ has expanded the capacity of eMMC and can support normal Raspberry Pi mirroring), the size of the burned image cannot exceed 4G. Therefore, if you burn Raspbian, you can only use the Lite version of the mirror. If you want a GUI. You can install the GUI by running the following command after the installation is complete:
  
2) Set boot up. Add sudo /home/pi/Fan_HAT/c/main & before exit 0. Note that you must add "&" to run in the background, otherwise the system may not start.
 
 
<pre>
 
<pre>
fi
+
sudo apt - get update
sudo / home / pi / PoE_HAT_B_code / c / main &
+
sudo apt - get install raspberrypi - ui - mods
exit 0
 
 
</pre>
 
</pre>

Revision as of 17:48, 25 September 2020

Introduction

This binocular stereo vision expansion board is specially designed for Raspberry Pi Compute Module, compatible with CM3 / CM3 Lite / CM3+ / CM3+ Lite. Small in size but powerful in function. It features three CSI camera ports that can be connected by camera with different viewing angles or baseline value. It is flexible to build different Raspberry Pi stereo vision projects such as binocular parallax ranging, facial recognition, vivo detection, VR video recording and so on. Also, it has some common used ports like DSI and USB, it is convenient to be connected to LCD display and burning mirror directly. Moreover, it has peripheral interfaces like 24PIN HDMI and 36PIN GPIO are also supported through the FPC connector.

Model: RPA20901S

Power over Internet(POE) Hat for Raspberry Pi 43B+ 1.jpg

Features

  • Comes with three camera ports
  • DSI port allows directly connecting with DSI display
  • With USB connector, convenient for burning mirror
  • 36PIN GPIO connector for extending UART port and Raspberry Pi GPIO
  • 24PIN HDMI extended connector for connecting with HDMI display
  • 10PIN GPIO/I2C extended connector for connecting ICM20948 IMU fill light board
  • Integrates DS1307 RTC chip and comes with CR1220 battery holder
  • Comes with acrylic mounting plate and tripod adapter
  • Compatible with Raspberry Pi Compute Module CM3 / CM3 Lite / CM3+ / CM3+ Lite compatibly


Usager

  • 1. Burn image

1.1 Flash the image to Compute Module 3/Compute Module 3+

If you are using Raspberry Pi Compute Module 3 or Compute Module 3+. For these computing modules with eMMC, you need to burn the image to the eMMC on the computing module when using them, otherwise they cannot be used.

The steps to burn to eMMC are as follows: 1) Run RPiboot_Setup software on the computer and install the Raspberry Pi USB driver. It is recommended to turn off the anti-virus software before installation. After the installation is successful, there will be a rpiboot.exe software in the start folder, as shown in the following figure:

2) Switch the USB SLAVE ENABLE switch on the STEREO expansion board to the EN end

3) Connect the computing module (computing module with eMMC)

4) Connect the USB interface on the STEREO expansion board to the PC via a USB cable

5) At this time, open the software rpiboot.exe with administrator authority , and the PC will automatically recognize the eMMC in the computing module as a U disk.

6) Run Win32DiskImager-burn Record the image software , select the image, and burn the image to the eMMC.

Note: If the image has been burned before, you can use the Panasonic_SDFormatter-SD card formatting software to format it before burning.

7) After programming is complete, disconnect the USB cable. After disconnecting the power supply, reconnect the power supply to the PWR interface of the STEREO expansion board to start the system from eMMC.

Note

  • During the programming process, the PC should not read and write other USB devices to avoid conflicts;
  • The official image provided by Raspberry Pi, the default account is: pi and the password is: Raspberry.
  • Since the eMMC of CM3 is only 4G (the latest CM3+ has expanded the capacity of eMMC and can support normal Raspberry Pi mirroring), the size of the burned image cannot exceed 4G. Therefore, if you burn Raspbian, you can only use the Lite version of the mirror. If you want a GUI. You can install the GUI by running the following command after the installation is complete:
sudo apt - get update
sudo apt - get install raspberrypi - ui - mods