Saturday, 3 May 2014

Install RaPi Camera

Introduction

A good idea for remote control robot is a preview video. Raspberry Pi can connect to a dedicated high-quality camera.

We need

  • Raspberry Pi with ArchLinux
  • Raspberry Pi Camera (operating in the visible light) or Raspberry Pi NOIR (operating in the infrared)

  Raspberry Pi Camera, first (green shield) for the visible light, second (black) for the infrared.


Camera connection

Camera package includes ribbon cable. The free cable end should be connected to the Raspberry.



The cable you need to insert the appropriate side, blue side is to be directed toward the ethernet port.


Position ribbon cable before installation.

Camera installed.


Standard RaPi Camera software

Run Raspberry and add two line to file /boot/config.txt:

start_file=start_x.elf
fixup_file=fixup_x.dat

restart Raspberry.

If you  want turn off led dide on board camera add line to /boot/config.txt:
disbale_camera_led=1

When you login, you can take a picture or record a video.
Take a picture:
# /opt/vc/bin/raspistill -o testimage.jpg
Record 10 seconds video:
 # /opt/vc/bin/raspivid -t 10000 -fps 25 -o testvideo.h264 


links:

No comments:

Post a Comment

Note: only a member of this blog may post a comment.