Skip to Content
Learn Robotics Programming
book

Learn Robotics Programming

by Danny Staple
November 2018
Beginner
472 pages
13h 5m
English
Packt Publishing
Content preview from Learn Robotics Programming

Getting a picture from the Pi

The first thing we need to do, to confirm that our setup was successful, is to ask the Pi camera to take a picture for us. This will check whether all the connections are good or not. If there are problems detecting the camera, please go back and check that the cable connection is correct, that you have installed picamera, and that you have enabled the Raspberry Pi camera in raspi-config.

Reconnect to the Raspberry Pi with PuTTY, and type the following to get a picture:

pi@myrobot:~ $ raspistill -o test.jpg

raspistill takes a still image, and the -o parameter tells it to store that image in test.jpg. You can then use your SFTP client (which we set up in the headless chapter) to download this image and verify ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learn Robotics Programming - Second Edition

Learn Robotics Programming - Second Edition

Danny Staple

Publisher Resources

ISBN: 9781789340747Supplemental Content