So now that you've taken all the steps to set up your pi, lets get cracking! Time to set up the camera and take your first still picture!
Follow along, and you'll be taking photos in no time!
Follow along, and you'll be taking photos in no time!
- Procure a pi camera. Yes, that is correct, without the camera, you cannot set up the camera!
- Plug in the camera into the slot right next to the HDMI port. Note - the silver connecters on the camera wire must face the HDMI port. See the image below:
- Power up your already set up pi. Here's a photo of how I powered it up, because I haven't bothered with setting up the pi UPS yet, I'm still using my USB breakout cable. If you remember the earlier post about plugging in the USB cable, you can ignore the RX and TX and just plugin the ground and the 5 volt. This should immediately power up your Pi
- SSH in to your Pi. Remember that static IP I had you set up? Open terminal and type - ssh -X pi@IP-ADDRESS-YOU-SETUP-EARLIER
- Use the password you created to login to your pi and type - sudo raspi-config
- Now, if you had followed the previous posts correctly, you should see an option called "Enable Camera". Using the arrow keys, choose that option, press Enter/Return, enable the camera and you're all set!
- Choose "Finish" on the config, and accept to reboot the pi
- Dont freak out, you should have been disconnected from the Pi. Give it a minute or so to reboot, and re-ssh in to your Pi
- Now, to test your setup, point the camera towards your face and type - raspistill -o selfie.jpg
- Start vncserver on your pi by typing - vncserver :0 -geometry 1024x768 -depth 24 (Explained in setting up the pi part II). Now, open screen sharing on your mac by typing open "/System/Library/CoreServices/Screen Sharing.app" (Also explained in setting up part II), in the connect to type pi@IP-ADDRESS, enter your password, and see the desktop for your pi. Now, at the bottom left corner, choose file explorer, and you should see a file as soon as the explorer opens up called "selfie.jpg". VOILA! See below for a screenshot of my desktop where my pi took a selfie of itself :)
No comments:
Post a Comment