Google Chat: zj734465502@gmail.com
+86-0755-88291180
sales01@spotpear.com
dragon_manager@163.com
services01@spotpear.com
manager01@spotpear.com
WhatsApp:13246739196
This binocular stereo vision expansion board is specially designed for Raspberry Pi Compute Module, compatible with CM3 / CM3 Lite / CM3+ / CM3+ Lite. It features three camera ports and commonly used ports like DSI and USB, more other peripheral interfaces are also supported through the FPC connector, all in the small size body.
By connecting with various sorts of cameras, combined with the included IMU fill light board, it is easy and flexible to build different Raspberry Pi stereo vision projects such as binocular parallax ranging, facial identification, living object detection, VR video recording, and so on.
No. | Symbol | Description |
1 | Compute Module interface | 可接入Compute Module 3/3 Lite/3+/3+ Lite |
2 | DSI interface | For connecting DSI display |
3 | 24PIN HDMI interface | It can connect an HDMI display by the HDMI adapter board. |
4 | CSI interface | CAM0:Enabled by default CAM1:Enabled by setting GPIO38 to low CAM3:Enabled by setting GPIO38 to high |
5 | Micro SD card slot | For inserting Micro SD card |
6 | 36PIN GPIO interface | You can extend classic 40PIN GPIO by the UART adapter board. |
7 | 10PIN I2C interface | For connecting ICM20948 board. |
8 | USB interface | For writing eMMC or working as a standard OTG interface. |
9 | 5V Power input | - |
10 | RTC battery holder | For CR1220 battery |
11 | DS1307 | RTC chip |
12 | USB BOOT ENABLE switch | EN: Writing eMMC DIS:USB interface works as standard OTG interface |
13 | User key | - |
No. | Symbol | Description |
1 | Raspberry Pi GPIO interface | For connecting Raspberry Pi HATs |
2 | 36PIN GPIO interface | Connect to Stereo board |
3 | USB TO UART interface | For UART shell login or power supply |
4 | CH340 | USB to UART chip |
5 | Power switch | OPEN:Disable the power function of USB interface Link:The USB to UART interface can be used as a power interface |
No. | Symbol | Description | |
1 | ICM-20948 | Accelerometer | Resolution: 16 bit |
Measurement range (configurable): ±2, ±4, ±8, ±16g | |||
Operating current: 68.9uA | |||
Gyroscope | Resolution: 16 bit | ||
Measurement range (configurable): ±250, ±500, ±1000, ±2000°/sec | |||
Operating current: 1.23mA | |||
Magnetometer | Resolution: 16 bit | ||
Measurement range: ±4900µT | |||
Operating current: 90uA | |||
2 | White fill light | controlled via GPIO40 | |
3 | 850nm IR fill light | controlled via GPIO41 | |
4 | 10PIN I2C connector | for connecting with CM3 base board | |
5 | 6PIN I2C header | for connecting with host board |
If you use Compute Module 3 or Compute Module 3+, you should write an image to the internal eMMC
The steps of writing eMMC:
1)Run the RPiboot_Setup software to install the driver. You will get a rpiboot.exe file in the installation directory:
2)Turn the USB SLAVE ENABLE switch into EN
3)Connect the Compute Module 3 or Compute Module 3+
4)Connect the USB interface of STEREO board to PC
6)<font color="#ff0000"Run rpiboot.exe as administrator</font>, PC will recognize eMMC of Compute module as a portable drive.
7)Run Win32DiskImage software to write image to eMMC
Note: If you wrote image to the eMMC before, you need to format it firstly by Panasonic_SDFormatter software
8)After writing, you can disconnect the USB cable, and re-power the STEREO board to start the CM3/CM3+ by connecting 5V power adapter to PWR interface
Note:
sudo apt-get update sudo apt-get install raspberrypi-ui-mods
If you cannot write a image to eMMC successfully, you can try the following steps:
The steps for writing image for Lite version::
1、Donwload image from Raspberry Pi website.
2、Insert TF card to host PC by card reader, the size of the TF card should at least be 8G.
3、Run Win32DiskImager software for writing, it just the same as how you write an image for Raspberry Pi board.
4、After writing, insert the TF card to the card slot of STEREO Board.
Here we use 4.3inch DSI LCD for example, you can also use official 7inch LCD.
Note:
Here we use the 7inch HDMI LCD (H) (with case) as example
1、Remove the DSI display, and connect the HDMI adapter board to HDMI interface of STEREO Board
2、Connect the HDMI display(Raspbian default to use DSI display if both HDMI display and DSI display are connected at the same time)
3、Modify config.txt file of TF card, for 7inch HDMI LCD (H) (with case), you should add the following lines to /boot/config.txt file
max_usb_current=1 hdmi_force_hotplug=1 config_hdmi_boost=10 hdmi_group=2 hdmi_mode=87 hdmi_cvt 1024 600 60 6 0 0 0
3、Reboot after modifying.
sudo raspivid -t 0 -cs 0
sudo raspivid -t 0 -cs 1
-cs is used to choose camera 0 or 1. The number of camera may be different from the silk screen printing as it is the order of recognized cameras
If you use the original Raspbian image, you should configure an image for using the camera manually.
That is you should change LDE and SHUTDOWN from pin2, pin3 to pin32 and pin33.
dtc -I dts -O dtb -o dt-blob.bin dt-blob-disp1-cam2.dts
sudo raspivid -t 0 -cs 0 sudo raspivid -t 0 -cs 1
You can switch CAM3 and CAM1 by changing the status of GPIO38
Set GPIO38 to High, the CAM3 is enabled.
Set GPIO38 to Low, the CAM1 is enabled.
cd ~/CM_STEREO_BOARD sudo chmod +x CAM3_CAM1_Switch.sh ./CAM3_CAM1_Swtich.sh 1
sudo raspivid -t 0 -cs 1
wget https://www.waveshare.com/w/upload/d/d8/CM_STEREO_BOARD.zip unzip CM_STEREO_BOARD.zip
sudo raspi-config
i2cdetect -y 1
cd ~/CM_STEREO_BOARD/10Dof-D_Demo/ sudo make sudo ./10Dof-D
sudo nano /etc/rc.local
sudo modprobe i2c-dev & sudo modprobe i2c-bcm2708 & echo "ds1307 0x68" | sudo tee /sys/class/i2c-adapter/i2c-1/new_device &
sudo reboot
sudo hwclock -r
sudo hwclock -s
An Infrared LED and a white LED is integrated on ICM20948 board, here we use the user key to control them.
cd ~/CM_STEREO_BOARD/ sudo python KEY_LED.py
sudo raspi-config