RPi B+ (CN) Package A

From Waveshare Wiki
Revision as of 02:02, 10 November 2015 by Wiki Editorial Team (Talk | contribs)

Jump to: navigation, search
RPi-B-Plus-CN-Package-A
RPi B+ (CN) Package A

Package A Content

Weight: 0.323 kg

  1. Raspberry Pi Model B+ (CN Ver.) x 1
  2. DVK512 x 1
  3. 3.5inch RPi LCD (A) × 1
  4. PCF8591 AD DA Board x 1
  5. L3G4200D Board x 1
  6. LSM303DLHC Board x 1
  7. Mix Board x 1
  8. Logic Level Converter x 1
  9. Infrared Remote Controller x 1
  10. LFN0038K (Infrared Receiver) x 1
  11. DS18B20 x 1
  12. USB Type A Plug to Micro B Plug Cable x 1
  13. USB type A plug to mini-B plug cable x 1
  14. 4-pin 2-pin wires pack x 1
  15. RPi screws pack (4pcs) x 1
  16. User guide CD x 1
1. RPi-B-Plus-CN l.jpg
2. DVK512 l.jpg
3. 3.5inch-RPi-LCD-A l.jpg
4. PCF8591-AD-DA-Board l.jpg
5. L3G4200D-Board l.jpg
6. LSM303DLHC-Board l.jpg
7. Mix-Board l.jpg
8. Logic-Level-Converter l.jpg
9. Infrared-Remote-Controller.jpg
10. LFN0038K L.jpg
11. DS18B20 L.jpg
12. USB-type-A-plug-to-Micro-B-plug-cable.jpg
13. USB Cable L.jpg
14. Wires-pack-4pin2pin.jpg
15. RPi-screws-pack-x4 L.jpg
16. User Manual CD L.jpg

Introduction

Raspberry Pi Expansion/Evaluation Board, features various interfaces

More

Basic operations

System image file programming

Download newest Rapsbian image from Raspberry Pi web site.

Programming the system image file with Win32DiskImager.exe

Format your TF card with the SDFormatter.exe.

Notices: The capability of TF card in used here should be more than 4GB. In this operation, a TF card reader is also required, which has to be purchased separately.

Start the Win32DiskImager.exe, and select the system image file copied into your PC, then, click the button Write to program the system image file.

Serial debugging environment deploying

Connect your PC to the UART TO USB interface on DVK512 via a mini USB cable;

  • Notices: The USB part of the UART TO USB interface applied by DVK512 is a mini USB interface, while the one on Raspberry Pi board is a micro USB interface. Please take a note.

Install the cp2102_driver;

PuTTY settings

Start the software PuTTY.exe, and configure the following parameters:

  • Serial line: it is used to select corresponding serial port. The serial port in used can be check by Device Manager.
  • Speed: it is used to set the Baud rate: 115200.
  • Connection type: this option should be set to Serial.
And then, click the button Open.

After the system is started up, you should input following information: User name: pi and Password: raspberry. Then, you can enter the serial terminal to communicate with the Raspberry Pi.

Notices: In this document, the software PuTTY is always used to control the Raspberry Pi via serial port communication, unless otherwise specified. When a serial port is used for Raspberry Pi terminal debugging, it cannot service as a common serial port any more, since it is occupied by system debugging function.

DVK512 and expansion function Demos

Before performing any operations described in this section, you should connect DVK512 to RPi with onboard pin headers, unless otherwise specified.

Installing the libraries required

Before using the DVK512 programs, you shall install the the bcm2835, wiringPi and python libraries to the RPi to add the additional APIs, and configure the settings to start up the core drivers of I2C, SPI and UART after the libraries installed. For more detailed information about the installation and configuration of the RPI library functions, please refer to Libraries Installation for RPi. Of course, we have provided a system image file with the libraries installed as well. In case that you don’t want to reinstall the libraries, you can program this ready-to-use system image file to your Raspberry Pi board. You can find the API source code in the directory /home/pi/DVK512 only if using the ready-to-use system image. Note: Each demo should be run under the corresponding directory, e.g. to use the bcm2835 demo of the LED, execute the command:

[email protected] ~/DVK512/LED/bcm2835 $ sudo ./led

This means that, you should first enter the path ~/DVK512/LED/bcm2835 than execute the command sudo ./led (./led is a compiled executable file).

The sudo means that the command is executed by a super user. The sudo is not required If you log in as a root user, e.g.

[email protected]:/home/pi/DVK512/LED/bcm2835# ./led

Unless otherwise specified, the following demos are pre-compiled to executable files which can be run directly. If you intend to compile the C program of bcm2835, wiringPi, sysfs, etc. then please enter the demo directory and execute the command make to compile the program while the command make clean to remove the executable files. For example:

[email protected] ~/DVK512/LED/bcm2835 $ make clean
rm led
[email protected] ~/DVK512/LED/bcm2835 $ make
gcc -Wall led.c -o led -lbcm2835

Python program can be run directly without compilations, e.g.

[email protected] ~/DVK512/LED/python $ sudo python led.py

LED Demo

bcm2835 program:

  1. Enter the Linux terminal, and run the following commands:
    [email protected] ~/DVK512/LED/bcm2835 $ sudo ./led
  2. The 4 LEDs will light up one by one.
  3. Press the keys Ctrl+C to end the demo.

wiringPi program:

  1. Enter the Linux terminal, and run the following commands:
    [email protected] ~/DVK512/LED/wiringPi $ sudo ./led
  2. The 4 LEDs will light up one by one.
  3. Press the keys Ctrl+C to end the program.

Python program:

  1. Enter the Linux terminal, and run the following commands:
    [email protected] ~/DVK512/LED/python $ sudo python led.py
  2. The 4 LEDs will light up one by one.
  3. Press the keys Ctrl+C to end the program.

shell program:

  1. Turn on LED0 by this command:
    [email protected] ~/DVK512/LED/shell $ sudo ./LED.sh 26 1
  2. Turn off LED0 by this command:
    [email protected] ~/DVK512/LED/shell $ sudo ./LED.sh 26 0

Key Demo

bcm2835 program:

  1. Enter the Linux terminal, and run the following commands:
    [email protected] ~/DVK512/KEY/bcm2835 $ sudo ./key
  2. The terminal will show whether there is key-press.
  3. Press the keys Ctrl+C to end the program.

wiringPi program:

  1. Enter the Linux terminal, and run the following commands:
    [email protected] ~/DVK512/KEY/bcm2835 $ sudo ./key
  2. The terminal will show whether there is key-press.
  3. Press the keys Ctrl+C to end the program.

Python program:

  1. Enter the Linux terminal, and run the following commands:
    [email protected] ~/DVK512/KEY/bcm2835 $ sudo ./key
  2. The terminal will show whether there is key-press.
  3. Press the keys Ctrl+C to end the program.

8-channel Logic Level Convertor Demo

The connection between Logic Level Converter and DVK512

Connect the 8-channel Logic Level Converter to the onboard 8I/Os interface. (Notices: The VCCA pin header on the Logic Level Converter should be connected to the 3V3 pin header of the 8I/Os connector on DVK512). Pin relationships between Logic Level Converter and DVK512:

Logic Level Converter DVK512
VCCB 5V
GND GND
B0 LED0
B1 LED2
B3 LED3
B4 KEY0
B5 KEY1
B6 KEY2
B7 DEY3

Enter the terminal, and execute corresponding commands:

bcm2835 program:

[email protected] ~/DVK512/Logic-Converter/bcm2835 $ sudo ./Logic_Converter

wringPi program:

[email protected] ~/DVK512/Logic-Converter/wiringPi $ sudo ./Logic_Converter

python program:

[email protected] ~/DVK512/Logic-Converter/python $ sudo python Logic_Converter.py
  • Press the KEY0-KEY3 on the DVK512, and the relative LED will light up.
  • Press the keys Ctrl+C to end the demo.

Joystick Demo

Connect the Mix Board to the 8I/Os interface. Enter the terminal, and execute corresponding commands:

bcm2835 program:

[email protected] ~/DVK512/JOYSTICK/bcm2835 $ sudo ./joystick

wringPi program:

[email protected] ~/DVK512/JOYSTICK/wiringPi $ sudo ./joystick

python program:

[email protected] ~/DVK512/JOYSTICK/python $ sudo python joystick.py 

Press or move the joystick, the terminal will show the action.

Buzzer and PWM

Connect the Mix Board to the 8I/Os interface. Enter the terminal, and execute corresponding commands:

wringPi program:

[email protected] ~/DVK512/Buzzer_PWM/wiringPi $ sudo ./Buzzer

python program:

[email protected] ~/DVK512/Buzzer_PWM/python $ sudo python buzzer.py 

The buzzer on the Mix Board will buzz in 4 seconds.

Press the keys Ctrl+C to end the program.

DS18B20 Demo

Inserting the DS18B20 to the ON-WIRE interface on Mix Board

Connect the Mix Board to the 8I/Os interface.

Insert the DS18B20 to the ON-WIRE interface on Mix Board.

Symbols Warning.png Dangerous: Please make sure the DS18B20 is connected correctly.
The DS18B20 in wrong connection may generate a high temperature which may cause injuries
The figure shows the correct connection between the DS18B20 and the Mix Board, in which the DS18B20 should be placed according to the shape of the icon shown on the ONE-WIRE interface of Mix Board.

Enter the terminal, and execute corresponding commands:

sysfs program:

[email protected] ~/DVK512/DS18B20/fs $ sudo ./ds18b20

python program:

[email protected] ~/DVK512/DS18B20/python $ sudo python ds18b20.py 

The terminal will display the current temperature information.

Infrared remote control

Connecting the infrared receiver to the IRM interface on Mix Board

Connect the Mix Board to the 8I/Os interface.

Connect the infrared receiver to the IRM interface on Mix Board.

Notices: The infrared receiver should be placed according to the shape of the icon shown on the IRM interface of Mix Board.

Terminal displays the key pressed on the infrared remote controller

Enter the terminal, and execute corresponding commands:

bcm2835 program:

[email protected] ~/DVK512/IRM/bcm2835 $ sudo ./irm

wiringPi program:

[email protected] ~/DVK512/IRM/wiringPi $ sudo ./irm 

python program:

[email protected] ~/DVK512/IRM/python $ sudo python irm.py

Press any key on the infrared remote controller provided by Waveshare. The terminal will display the decoded infrared signal in hexadecimal format.

Press the keys Ctrl+C to end the demo.

LCD1602 (Purchased Separately) Demo

Inserting the LCD1602 into the LCD1602 interface on DVK512

Insert the LCD1602 into the LCD1602 interface on DVK512.

Enter the Linux terminal, and run the following commands:

[email protected] ~/DVK512/LCD1602 $ sudo ./lcd1602

LCD1602 will display relative information. If there is nothing shown, please adjust the potentiometer on the LCD1602. The red box in Figure 11 shows the position of the potentiometer.

PCF8563 RTC Demo

Set the jumpers on DVK512:

  • Connect RTC_SDA to SDA
  • Connect RTC_SCL to SCL

Install i2c-tools. If you have not installed i2c-tools yet, please enter the terminal, and input: [email protected] raspberrypi:/# apt-get install i2c-tools

Enter the Linux terminal, and run the following commands:

[email protected] raspberrypi:/# i2cdetect –y 1
PCF8563 is detected by Raspberry Pi

Then, you will see the device address of PCF8563 connected to Raspberry Pi module. Here, the device address of PCF8563 is 51, indicating that the PCF8563 is detected by Raspberry Pi.

Enter the terminal, and execute corresponding commands:

bcm2835 program:

[email protected] ~/DVK512/PCF8563/bcm2835 $ sudo ./pcf8563

wiringPi program:

[email protected] ~/DVK512/PCF8563/wiringPi $ sudo ./pcf8563

python program:

[email protected] ~/DVK512/PCF8563/python $ sudo ./pcf8563.py

Time of PCF8563 will be shown on the terminal.

PCF8591 AD Demo

Connect the PCF8591 module to the I2C interface on DVK512.

Connecting the pins AIN0 and AD0 together

Connect the pins AIN0 and AD0 on the PCF8591 together via a cable.

Displaying the AD values read from ADC0-ADC3

Enter the terminal, and execute corresponding commands:

bcm2835 program:

[email protected] ~/DVK512/PCF8591/ADC/bcm2835 $ sudo ./pcf8591

wiringPi program:

[email protected] ~/DVK512/PCF8591/ADC/wiringPi $ sudo ./pcf8591

python program:

[email protected] ~/DVK512/PCF8591/ADC/python $ sudo python pcf8591.py

The terminal will display the AD values read from ADC0-ADC3 (corresponding to the pins AIN0-AIN3 on PCF8591).

PCF8591 DA Demo

Connect the PCF8591 module to the I2C interface on DVK512.

Connecting the Pin AOUT on PCF8591 to the LED pin header on DVK512

Connect the Pin AOUT on PCF8591 to the LED pin header on DVK512.

Enter the terminal, and execute corresponding commands:

bcm2835 program:

[email protected] ~/DVK512/PCF8591/DAC/bcm2835 $ sudo ./pcf8591

wiringPi program:

[email protected] ~/DVK512/PCF8591/DAC/wiringPi $ sudo ./pcf8591

python program:

[email protected] ~/DVK512/PCF8591/DAC/python $ sudo python pcf8591.py


The digital conversion value is displayed in the terminal. And the brightness of the LED indicator on DVK512 will change with the level variation on the pin AOUT.

Acceleration of Gravity and Magnetic Sensors LSM303DLHC

Relative values read from acceleration of gravity and magnetic sensor
Connecting the LSM303DLHC module to the I2C interface on DVK512
LSM303DLHC module has two rows of pins, and the one connected to DVK512 contains the pins SDA and SCL.

Connect the LSM303DLHC module to the I2C interface on DVK512.

Notices: LSM303DLHC module has two rows of pins, and the one connected to DVK512 contains the pins SDA and SCL.

Enter the terminal, and execute corresponding commands:

bcm2835 program:

[email protected] ~/DVK512/LSM303DLHC/bcm2835 $ sudo ./LSM303DLHC

wiringPi program:

[email protected] ~/DVK512/LSM303DLHC/wiringPi $ sudo ./LSM303DLHC

python program:

[email protected] ~/DVK512/LSM303DLHC/python $ sudo python LSM303DLHC.py

The terminal will display the relative values read from acceleration of gravity and magnetic sensor.

Angular rate Sensor L3G4200D

Connect the L3G4200D to the SPI interface on DVK512.

Angular velocity values

Enter the terminal, and execute corresponding commands:

bcm2835 program:

[email protected] ~/DVK512/L3G4200D/bcm2835 $ sudo ./L3G4200D

wiringPi program:

[email protected] ~/DVK512/L3G4200D/wiringPi $ sudo ./L3G4200D

python program:

[email protected] ~/DVK512/L3G4200D/python $ sudo python L3G4200D.py

The terminal will display the angular velocity values in three factors of x axis, y axis and z axis, respectively.

UART Demo

Note: The Serial Port of Raspberry pi is used for terminal debugging by default, so for using UART function, the Serial terminal debugging function needs to be closed.

Connect the onboard UART TO USB port to a PC via a mini USB cable.

Enter the terminal, and execute corresponding commands:

wiringPi program: [email protected] ~/DVK512/UART/wiringPi $ sudo ./UART

python program: [email protected] ~/DVK512/UART/python $ sudo ./uart.py

Run Serial monitor software, choose a corresponding COM port and set the baud rate as 115200. The field sent by the software will be sent back and shown on the software.

GPS (Purchased Separately) Demo

Removing the jumper wire from UART JMP for GPS Demo

In the default boot mode of the system image provided by Waveshare, the serial port works as terminal debugging output. In order to control peripherals via serial port communication, you should input corresponding commands on the terminal to disable the debugging function of the serial port.

sudo raspi-config

Choose Advanced Options -> Serial –>no to disable the debugging function of the serial port.

Once the debugging function of the serial port is disabled, you cannot access the Pi using Serial port but you can re-enable the debugging function by raspi-config.

GPS position information

Insert a GPS module into the UART interface on DVK512, and remove the jumper wire from UART JMP.

Enter the terminal, and input the following commands to set the Baud rate (The Baud rate will be restored to the default value: 115200, after the system rebooted).

[email protected]:/# stty -F /dev/ttyAMA0 38400
[email protected]:/# gpsd /dev/ttyAMA0 -F /var/run/gpsd.sock

Enter the terminal and input the following command to open the GPS software provided by the Linux system:

[email protected]:/# cgps -s

The terminal will display relative GPS position information.

Open the terminal of Raspberry Pi and install libraries as guides below

Install WiringPi Library

cd
sudo apt-get install wiringpi
wget https://project-downloads.drogon.net/wiringpi-latest.deb
sudo dpkg -i wiringpi-latest.deb
gpio -v

Install C Library bcm2835

cd
wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.60.tar.gz
tar zxvf bcm2835-1.60.tar.gz 
cd bcm2835-1.60/
sudo ./configure
sudo make && sudo make check && sudo make install

For more information and the newest libraries please refer to website:http://www.airspayce.com/mikem/bcm2835/

Install Python Library

For python2
cd
sudo apt-get update
sudo apt-get install python-pip
sudo pip install RPi.GPIO
For python3
cd
sudo apt-get update
sudo apt-get install python3-pip
sudo pip install RPi.GPIO

Getting Started

The RPi LCD can be driven in two ways: Method 1. install driver to your Raspbian OS. Method 2. use the Ready-to-use image file of which LCD driver was pre-installed.

Method 1. Driver installation

1. Download the lasted image from Raspberry Pi website and write it to SD card.

2. Connect RPi LCD to Raspberry Pi and connect Pi to networking.

3. Configure your Pi:

sudo raspi-config

Set as:

  • Select Expand Filesystem.
  • Boot Option -> Desktop Autologin (may differ depending on Raspbian revision)

In the lasted image, that would be:

  • Advanced Options ->Expand Filesystem ->OK
  • Boot Options -> Desktop/CLI -> Desktop Autologin ->click"Enter"

3. Then open the terminal of Raspberry Pi to install the touch driver. Note: The Raspberry Pi must be connected to the network, or else the touch driver won't be successfully installed. (You may need to connect a keyboard and HDMI LCD to Pi for driver installing, or log in remotely with SSH)

git clone https://github.com/waveshare/LCD-show.git
cd LCD-show/

Note: Net work connection is required while installing driver to your Pi, or else the touch won't work properly.

  • For 2.8inch RPi LCD (A):
./LCD28-show 
  • For 3.2inch RPi LCD (B):
./LCD32-show 
  • For 3.2inch RPi LCD (C):
./LCD32C-show
  • For 3.5inch RPi LCD (A):
./LCD35-show 
  • For 3.5inch RPi LCD (B):
./LCD35B-show 
  • For 3.5inch RPi LCD (C):
./LCD35C-show 
  • For 4inch RPi LCD (A):
./LCD4-show 
  • For 4inch RPi LCD (C):
./LCD4C-show

3. After system rebooting, the RPi LCD is ready to use.

Method 2. Using Ready-to-use image

The image file with pre-installed driver is located in the IMAGE directory of the CD, or you can download it from #Image. Extract the .7z file and you will get an .img file. Write the image to your micro SD card (How to write an image to a micro SD card for your Pi? See RPi Image Installation Guides for more details). Then insert the card to your Pi, power up and enjoy it.

Toggle between LCD and HDMI display

Once this LCD is enabled, meanwhile the default settings for HDMI are changed. If you want to use another HDMI monitor, please run the following command:

cd LCD-show/
 ./LCD-hdmi

This toggles the mode to LCD display:

  • For 2.8inch RPi LCD (A):
./LCD28-show 
  • For 3.2inch RPi LCD (B):
./LCD32-show 
  • For 3.2inch RPi LCD (C):
./LCD32C-show
  • For 3.5inch RPi LCD (A):
./LCD35-show 
  • For 3.5inch RPi LCD (B):
./LCD35B-show 
  • For 3.5inch RPi LCD (C):
./LCD35C-show 
  • For 4inch RPi LCD (A):
./LCD4-show 
  • For 4inch RPi LCD (C):
./LCD4C-show

Screen orientation settings

After touch driver installed, the screen orientation can be set by these commands:

  • For 2.8inch RPi LCD (A):
./LCD28-show degree
  • For 3.2inch RPi LCD (B):
./LCD32-show degree
  • For 3.5inch RPi LCD (A):
./LCD35-show degree
  • For 3.5inch RPi LCD (B):
./LCD35B-show degree
  • For 3.5inch RPi LCD (C):
./LCD35C-show degree
  • For 4inch RPi LCD (A):
./LCD4-show degree
  • For 4inch RPi LCD (C):
./LCD4C-show degree

The degree can be specified as 0, 90, 180, 270.

Touch screen calibration

This LCD can be calibrated using a program called xinput_calibrator which is pre-installed on the CD image. However, it was not pre-installed on original Raspbian OS. So in this case, you should get and install the program manually with

sudo apt-get install -y xinput-calibrator

Enter the following commands for touch screen calibration:

sudo DISPLAY=:0.0 xinput_calibrator

or select Menu -> Preferences -> Calibrate Touchscreen.

After running these commands, there will be a prompt for four-point calibration shown in the LCD screen. Click the points one by one to finish the touch calibration. Then, the new calibration data will be displayed in the terminal, as shows below. Please get these data for future use.

Doing dynamic recalibration:
Setting new calibration data: 3919, 208, 236, 3913

Enter the following command to edit 99-calibration.conf:

sudo nano /etc/X11/xorg.conf.d/99-calibration.conf

Then, the old calibration data will be displayed in the terminal:

Section "InputClass"
Identifier	"calibration"
MatchProduct	"ADS7846 Touchscreen"
Option	"Calibration"	"160 3723 3896 181"
Option	"SwapAxes"	"1"
EndSection

Modify the calibration data to the new calibration data displayed above):

Section "InputClass"
Identifier	"calibration"
MatchProduct	"ADS7846 Touchscreen"
Option	"Calibration"	"3919 208 236 3913"
Option	"SwapAxes"	"1"
EndSection

Press the keys Ctrl+X, and select the option Y to save the modification.

The modification will be valid after rebooting the system. Enter the following command for system reboot:

sudo reboot

Notices: In case of inaccurate touch, please perform screen calibration again and reboot the system.

Install Virtual Keyabord

1. Install matchbox-keyboard

sudo apt-get install update
sudo apt-get install matchbox-keyboard
sudo nano /usr/bin/toggle-matchbox-keyboard.sh

2. Copy the statements below to toggle-matchbox-keyboard.sh and save.

#!/bin/bash
#This script toggle the virtual keyboard
PID=`pidof matchbox-keyboard`
if [ ! -e $PID ]; then
killall matchbox-keyboard
else
matchbox-keyboard -s 50 extended&
fi

3. Execute the commands:

sudo chmod +x /usr/bin/toggle-matchbox-keyboard.sh
sudo mkdir /usr/local/share/applications
sudo nano /usr/local/share/applications/toggle-matchbox-keyboard.desktop

4. Copy the statements to toggle-matchbox-keyboard.desktop and save.

[Desktop Entry]
Name=Toggle Matchbox Keyboard
Comment=Toggle Matchbox Keyboard`
Exec=toggle-matchbox-keyboard.sh
Type=Application
Icon=matchbox-keyboard.png
Categories=Panel;Utility;MB
X-MB-INPUT-MECHANSIM=True

5. Execute commands as below. Note that you need to use "Pi " user permission instead of root to execute this command

nano ~/.config/lxpanel/LXDE-pi/panels/panel

6. Find the statement which is similar to below: (It maybe different in different version)

Plugin {
type = launchbar
Config {
Button {
id=lxde-screenlock.desktop
}
Button {
id=lxde-logout.desktop
}
}

7. Append these statements to add an button option:

Button {
id=/usr/local/share/applications/toggle-matchbox-keyboard.desktop
}

RPILCD-INSTALL-KEYBOARD01.png

8. reboot your Raspberry Pi. If the virtual keyboard is installed correctly, you can find that there is a keyboard icon on the left of the bar

sudo reboot


How to work with a camera

1. Select "Enable Camera" -> "<YES>"

sudo raspi-config

2. Copy the Camera driver to the OS of Pi then:

unzip camera.zip
cd camera
sudo chmod 777 Camera
sudo cp update\ camera/95-stmpe.rules /etc/udev/rules.d/

3. Create a file called wheezy.list.

sudo nano /etc/apt/sources.list.d/wheezy.list

Append:

deb http://archive.raspbian.org/raspbian wheezy main

Exit with save.

4. Create a file called 10defaultRelease.

sudo nano /etc/apt/apt.conf.d/10defaultRelease

Append:

APT::Default-release \"stable";

Exit with save.

5. Create a file called libsdl.

sudo nano /etc/apt/preferences.d/libsdl

Append:

Package: libsdl1.2debian
Pin: release n=jessie
Pin-Priority: -10
Package: libsdl1.2debian
Pin: release n=wheezy
Pin-Priority: 900

Exit with save.

6. Last, execute the commands:

sudo apt-get update
sudo apt-get -y --force-yes install libsdl1.2debian/wheezy
sudo apt-get install evtest tslib libts-bin xinput
sudo apt-get install python-pip 
sudo apt-get install python2.7-dev
sudo pip install picamera==1.10 
sudo reboot
sudo TSLIB_FBDEVICE=/dev/fb1 TSLIB_TSDEVICE=/dev/input/touchscreen ts_calibrate

Camera will be enabled by the steps above.

Related Kits

Template:Resource list

FAQ

Support

Please contact us by Email/Skype/WeChat for technology support. Because of jet lag, our response may be late, you can just leave your questions, we will reply to you as soon as possible in working time.

Service email.png [email protected]
Service skype.png [email protected]
Service wechat.png Webchat Linzeru.png
Service time.png 09:00 - 18:00 (UTC+8 Monday to Staturday)