-
Pi-Camera: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Add {{Deprecated}} template |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{Deprecated}} | |||
==Use the Raspberry OS that we provide== | ==Use the Raspberry OS that we provide== | ||
* On the Terminal, enter | * On the Terminal, enter | ||
| Line 45: | Line 46: | ||
* Run Camera APP | * Run Camera APP | ||
''sudo ./Camera'' | ''sudo ./Camera'' | ||
[[Category:Raspberry pi]] | |||
[[Category:Knowledge]] | |||
Latest revision as of 11:04, 30 April 2026
⚠️ Deprecated: This page is outdated and may contain inaccurate information. It is kept for reference only.
Use the Raspberry OS that we provide
- On the Terminal, enter
cd /home/pi/camera/ sudo ./Camera
Wait a few seconds. The Camera APP will work.Double-click on the screen to capture images
Use at yourself Raspbian OS
- Enable the camera driver
sudo raspi-config
Choice 'Enable Camera'-> 'Enable'
- Download File:Picamera.zip unzip it, then copy document 'camera' to your Pi
unzip camera.zip cd camera sudo chmod 777 Camera sudo cp update\ camera/95-stmpe.rules /etc/udev/rules.d/
sudo nano /etc/apt/sources.list.d/wheezy.list
Add the following code to it,Then Press Ctrl+X,choose Y to save:
deb http://archive.raspbian.org/raspbian wheezy main
sudo nano /etc/apt/apt.conf.d/10defaultRelease
Add the following code to it,Then Press Ctrl+X,choose Y to save:
APT::Default-release \"stable";
sudo nano /etc/apt/preferences.d/libsdl
Add the following code to it,Then Press Ctrl+X,choose Y to save:
Package: libsdl1.2debian Pin: release n=jessie Pin-Priority: -10 Package: libsdl1.2debian Pin: release n=wheezy Pin-Priority: 900
sudo apt-get update 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==0.8
- Calibration
sudo TSLIB_FBDEVICE=/dev/fb1 TSLIB_TSDEVICE=/dev/input/touchscreen ts_calibrate
- Run Camera APP
sudo ./Camera