Pi Camera Tutorial: is this all still accurate for the 2B?

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Locked
User avatar
CaptainSunset
 
Posts: 62
Joined: Thu Mar 19, 2015 2:27 pm

Pi Camera Tutorial: is this all still accurate for the 2B?

Post by CaptainSunset »

Hi-
In the process of installing my new PiTFT Cap. Touchscreen on a Pi 2B, I got into this tutorial on the simplest Point&Shoot camera version:
https://learn.adafruit.com/diy-wifi-ras ... m?view=all

Many of the tutorials are from before the 2B, and even deal with earlier problems.
Just after the touchscreen installation, it says:

Fetching the camera software is just a few extra steps…
First, install the Python library for the Raspberry Pi camera:

sudo apt-get install python-pip
sudo pip install picamera==0.8


(It’s important to use version 0.8 with this, not the shiny new 1.0. The latter is still a bit unstable with some features we’re using. We’re revise this with a newer release once the situation changes.)

Then retrieve our Python camera application:

wget https://github.com/adafruit/adafruit-pi ... master.zip
unzip master.zip


Finally, give it a try. The software must be run as root (using the sudo command) in order to access the TFT display:

cd adafruit-pi-cam-master
sudo python cam.py

If using a capacitive touch PiTFT, see the notes below regarding some extra steps that need to be made first.

If all goes well, after a few seconds’ initialization you should see a live viewfinder preview on the screen, as well as two onscreen buttons.

If this doesn’t happen, an error message should give some sort of troubleshooting guidance; missing library or driver, etc. This is why we recommend working through the TFT tutorial first.
- - -
I've got quite a bit of time into this SD card already, and am wondering

a. is the .8 version still the one to use with the Pi 2B?

b. is there some more recent & recommended project version of setting up the Pi Camera on the 2B, without trying Ben Hecht's rather drastic teardown?:]

Thanks!

User avatar
pburgess
 
Posts: 4161
Joined: Sun Oct 26, 2008 2:29 am

Re: Pi Camera Tutorial: is this all still accurate for the 2

Post by pburgess »

Sorry, just got around to this.

I haven't tested it extensively, but it looks like the Python camera script runs OK with the current version of picamera. Which is already built into Raspbian, thus nothing should need to be installed there.

picamera was super OMG unstable (and the Pi 2 nonexistent) when that guide was written, so I'm making a pass through everything now to hopefully simplify it for current systems.

User avatar
pburgess
 
Posts: 4161
Joined: Sun Oct 26, 2008 2:29 am

Re: Pi Camera Tutorial: is this all still accurate for the 2

Post by pburgess »

Guide's been updated. If you use one of the pre-built Raspbian images w/PiTFT support, it's much easier than before. Current picamera library is baked in and works fine now. Compatible w/Pi 1 or 2.

User avatar
CaptainSunset
 
Posts: 62
Joined: Thu Mar 19, 2015 2:27 pm

Re: Pi Camera Tutorial: is this all still accurate for the 2

Post by CaptainSunset »

Thanks pb, just found your helpful posts- I got a bit distracted making my housing, which led me into some time-eating sidetracks.

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”