Compute Module IO Board PLUS User Manual EN
Compute Module IO Board PLUS User Manual EN
OVERVIEW S
FEATURES
⚫ Compatible with the Compute Module IO Board V3 from the Raspberry Pi Foundation
⚫ Sensor interface
⚫ 10-bit ADC, 38KSPS, 11-ch (6-ch for Arduino interface, 5-ch for sensors)
W HAT’S ONBOARD
Version:V1.0,Date:20171101
Compute Module IO Board Plus User Manual
Version:V1.0,Date:20171101
Compute Module IO Board Plus User Manual
17. CP2102: USB TO UART converter - DIS: the Compute Module will boot
from SD card/eMMC
18. Micro SD card slot: insert a Micro SD
card with pre-burnt system, to start up 31. VGx power selection: config the I/O
batteries
34. Peripheral configuration: config the
23. Voltage regulator: 3.3V / 2.5V / 1.8V control pins of UART, user keys, user
LEDs, 1-WIRE interface, IR receiver,
24. LFN0038K: IR receiver and buzzer
Version:V1.0,Date:20171101
Compute Module IO Board Plus User Manual
CONTENTS
OverViews ................................................................................................................................ 1
Features ............................................................................................................................ 1
INSTALLATION ................................................................................................................. 7
CM3/CM3+ ................................................................................................................. 7
CM3L/CM3+ L ............................................................................................................ 7
Examples ................................................................................................................................ 10
Buzzer ............................................................................................................................. 10
pyhton code.............................................................................................................. 10
DAC ................................................................................................................................. 11
DS18B20 ......................................................................................................................... 11
python code.............................................................................................................. 12
Version:V1.0,Date:20171101
Compute Module IO Board Plus User Manual
IRM .................................................................................................................................. 13
KEY ................................................................................................................................. 14
LED ................................................................................................................................. 14
ADC ................................................................................................................................. 15
Version:V1.0,Date:20171101
Compute Module IO Board Plus User Manual
UART............................................................................................................................... 16
Version:V1.0,Date:20171101
Compute Module IO Board Plus User Manual
HOW TO USE
INSTALLATION
CM3/CM3+
If you use Compute Module 3 or Compute Module 3+, you need to write OS image to the
embedded EMMC, otherwise they cannot work. Here show you how to write image to EMMC
1. Pull the jumpers of USB SLAVE 1/2/3/4 SELECTION (you need to pull two jumpers
here), set the BOOT ENABLE USB SLAVE jumpers to EN position.
2. Install USB driver. Run the software rpiboot_setup (You can download it from Resource
of wiki) to install the drivers and boot tool.
3. Connect 5V power adapter to Power interface, plug the USB SLAVE port of IO Board
Plus into your host PC USB.
4. Run the rpiboot.exe tool. After a few seconds, the CM3 eMMC will be recognized as a
disk.
Note:
Ensure you are not writing to any USB devices while installation.
Because the eMMC of CM3 is only 4G, the image file flashed should be small than 4G. If you
want the GUI, you can install it with these commands after installation
sudo apt-get update
sudo apt-get install raspberrypi-ui-mods
CM3L/CM3+ L
2. Connect the SD card to computer with card reader. The capacity of SD card should
larger than 8G.
3. Run the Win32DiskImager.exe, choose the CM3L image and burn it to SD card.
4. After burning successfully, insert the card to the card slot of IO Board Plus
Version:V1.0,Date:20171101
Compute Module IO Board Plus User Manual
Note: Before using, please check that whether the BOOT ENABLE USB SLAVE jumper is set
onto the DIS option.
1. You need an adapter plate and a 22PIN FFC to connect the display to DISP1 interface of
IO Board Plus
2. Connect the 5V and GND pin of display to 5V and GND pin of IO Board Plus with wires.
GPIO0<->CD1_SDA
GPIO1<->CD1_SCL
1. Make sure the official 7inch display don’t be connect to IO Board Plus. Only without the
DISP interface display, the Raspbian will display via HDMI interface by default.
2. Connect the HDMI interface of LCD to the HDMI interface of IO Board IO Plus
CONNECT CAMERA
1. Connect camera to the CAM1 interface of IO Board Plus (need RPi Zero V1.3 Camera
Cable 15cm)
GPIO0<->CD1_SDA
Version:V1.0,Date:20171101
Compute Module IO Board Plus User Manual
GPIO1<->CD1_SCL
GPIO4<->CAM1_IO1
GPIO5<->CAM1_IO0
3. Connect to power
4. If you want to connect more than one camera, you can connect another to CAM0
interface.
5. Use the CAM0 interface, you need to connect these pins together:
GPIO28<->CD0_SDA
GPIO29<->CD0_SCL
GPIO30<->CAM0_IO1
GPIO31<->CAM0_IO0
raspivid -t 0 -cs 0
raspivid -t 0 -cs 1
Note:
1. -cs: Used to choose the camera 0 or 1. Parameter 0 means CAM1, and 1 means CAM0
2. Original Raspbian has no boot files for official display and official. If you use original
Raspbian, you need to convert dts files which are provided by Raspberry Pi to bin files
and copy the bin files to pi/boot/ of Raspbian.
Commands:
If you use the image provide by us, the OS has been pre-configured. You need to
configure it again.
Version:V1.0,Date:20171101
Compute Module IO Board Plus User Manual
EXAMPLES
While test the examples, you had better connect a display and keyboard to the IO Board Plus.
If you use original Raspbian, you have to install necessary libraries before first. For more
information about how to install libraries, please refer to Libraries Installation for RPi.
BUZZER
PYHTON CODE
cd /home/pi/CM3/Buzzer_PWM/python/
sudo ./buzzer.py
W IRINGPI CODE
10
Version:V1.0,Date:20171101
Compute Module IO Board Plus User Manual
cd /home/pi/CM3/Buzzer_PWM/wiringPi/
sudo ./buzzer
EXPECTED RESULT
The buzzer will sound, and the sound is changing from low to high, and turn to low again.
Note:
The buzzer will sound even though not be used because of noise. In this case, you can pull
the buzzer jumper manually. (the last one of USER JMP)
DAC
BCM2835 CODE
⚫ Connect DA_A and DA_B to LED1 and LED2 of USER JMP separately with wires.
cd /home/pi/CM3/DAC8532
sudo ./dac8532
EXPECTED RESULT
The brightness of LED1 and LED2 turns brighter and then turns dim alternately.
DS18B20
Testing this code, you need a DS18B20 module. Insert the DS18B20 into the 1-WIRE
interface of IO Board Plus. Note that the semicircle should faces the buzzer. The DS18B20
will produce high temperature even hurt your fingerprint if it is inserted incorrectly. Please be
carefully.
SYSFS CODE
11
Version:V1.0,Date:20171101
Compute Module IO Board Plus User Manual
cd /home/pi/CM3/DS18B20/fs/
sudo ./ds18b20
PYTHON CODE
cd /home/pi/CM3/DS18B20/python/
sudo ./ds18b20.py
EXPECTED RESULT
RTC DS3231
BCM2835 CODE
cd /home/pi/CM3/DS3231/bcm2835/
sudo ./ds3231
W IRINGPI CODE
cd /home/pi/CM3/DS3231/wiringPi/
sudo ./ds3231
PYTHON CODE
12
Version:V1.0,Date:20171101
Compute Module IO Board Plus User Manual
cd /home/pi/CM3/DS3231/python/
sudo ./ds3231.py
EXPECTED RESULT
IRM
You need an infrared remote controller. Please take the interleaving paper down before using.
BCM2835 CODE
cd /home/pi/CM3/IRM/bcm2835/
sudo ./irm
W IRINGPI CODE
cd /home/pi/CM3/IRM/wiringPi/
sudo ./irm
PYTHON CODE
cd /home/pi/CM3/IRM/python/
sudo ./irm.py
13
Version:V1.0,Date:20171101
Compute Module IO Board Plus User Manual
EXPECTED RESULT
Press the buttons on Infrared Remote Controller, the terminal will output the corresponding
value.
KEY
BCM2835 CODE
cd /home/pi/CM3/KEY/bcm2835/
sudo ./key
W IRINGPI CODE
cd /home/pi/CM3/KEY/wiringPi/
sudo ./key
PYTHON CODE
cd /home/pi/CM3/KEY/python/
sudo ./key.py
EXPECTED RESULT
Press the keys (KEY1, KEY2, KEY3, KEY4), corresponding value will outputted on the
terminal. For example, if you press KEY1, the terminal will output press the key: 0.
LED
14
Version:V1.0,Date:20171101
Compute Module IO Board Plus User Manual
BCM2835 CODE
cd /home/pi/CM3/LED/bcm2835/
sudo ./led
W IRINGPI CODE
cd /home/pi/CM3/LED/wiringPi/
sudo ./led
PYTHON CODE
cd /home/pi/CM3/LED/python/
sudo ./led.py
EXPECTED RESULT
ADC
BCM2835 CODE
cd /home/pi/CM3/TLC1543/bcm2835/
sudo ./tlc1543
15
Version:V1.0,Date:20171101
Compute Module IO Board Plus User Manual
W IRINGPI CODE
cd /home/pi/CM3/TLC1543/wiringPi/
sudo ./tlc1543
PYTHON CODE
cd /home/pi/CM3/TLC1543/python/
sudo ./tlc1543.py
EXPECTED RESULT
UART
Connect the USB TO UART interface of IO Board Plus to PC with USB cable. Open the Putty
on your PC, set the Baudrate as 115200.
Enter the user name and password to log in the CM3/CM3L (user name is pi and password is
raspberry by default)
Here you need to run the program with keyboard and LCD (On IO Board Plus) instead of
Putty.
W IRINGPI CODE
cd /home/pi/CM3/UART/wiringPi/
sudo ./uart
16
Version:V1.0,Date:20171101
Compute Module IO Board Plus User Manual
PYTHON CODE
cd /home/pi/CM3/UART/python/
sudo ./uart.py
EXPECTED RESULT
Every time run the program, on the Putty, you can see that Hello World!!! is printed.
17
Version:V1.0,Date:20171101