Python 3 is already installed. So you don't have to do that.
0. First make sure you have an internet connection. Probably that would be Wifi, because the Ethernet port is blocked by Spirit rover's frame.
1. You do have to install the picamera library (to my best memory). Python's pip/pip3 is like an app store for Python libraries. You can use it from a terminal:
On the start menu go to Accesoires --> Terminal
sudo pip3 install picamera
2. You need to activate the camera. From the Start Menu go to Preferences --> Raspberry Pi Configuration.
Go to the tab Interfaces. Here enable the Camera. In my case I had to reboot now.
3. Start the Python 3 shell. From the Start Menu go to Programming --> Python 3 (IDLE).
Make a new file (File --> New File)
4. Type the following code:
(I've put the camera.rotation in this code, because in the first attempt the photo was upside down)
Code: Select all
from picamera import PiCamera
from time import sleep
camera = PiCamera()
camera.rotation = 180
Save this file. Now you can run the code right away by pressing F5. Don't forget to smile if you aim the camera at yourself
5. Look in /home/pi/Desktop. There should be a file called picam_test01.jpg.