Book Image

Raspberry Pi Robotics Projects - Second Edition

By : Dr. Richard Grimmett
Book Image

Raspberry Pi Robotics Projects - Second Edition

By: Dr. Richard Grimmett

Overview of this book

<p>This book starts with the essentials of turning on the basic hardware. It provides the capability to interpret your commands and have your robot initiate actions. In this second edition, you will learn more specifics on how to use the Raspberry Pi’s GPIO pins to communicate with and control a wide range of additional hardware.</p> <p>Teaching you to use the Raspberry Pi from scratch, this book will discuss a wide range of capabilities that can be achieved with it. These capabilities include voice recognition, human-like speech simulation, computer vision, motor control, GPS location, and wireless control. You will then learn how to combine these capabilities to create your own robotics projects. By the end of the book, you will be able to employ the Raspberry Pi to build some intricate and enthralling robotics projects with ease.</p>
Table of Contents (18 chapters)
Raspberry Pi Robotics Projects Second Edition
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Creating, editing, and saving files on Raspberry Pi


Now that you can log in and move easily between directories and see the files in them, you'll want to be able to edit those files. To do this, you'll need a program that allows you to edit the characters in a file. If you are used to working on Microsoft Windows, you have probably used programs such as Microsoft Notepad, WordPad, or Word to do this. As you know, these programs are not available in Linux. But, there are several other choices for editors, all of which are free. In this chapter, we will use an editor program called Emacs. Other possibilities are programs such as nano, vi, vim, and gedit. Programmers have strong feelings about which editor to use, so if you already have a favorite, you can skip this section.

If you want to use Emacs, download and install it by typing sudo apt-get install emacs. Once installed, you can run Emacs simply by typing emacs filename, where filename is the name of the file you want to edit. If the...