Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Raspberry Pi Essentials
Raspberry Pi Essentials

Raspberry Pi Essentials: Get up and running with the Raspberry Pi to develop captivating projects

eBook
$9.99 $25.99
Paperback
$32.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with Print?

Product feature icon Instant access to your digital copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Redeem a companion digital copy on all Print orders
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Table of content icon View table of contents Preview book icon Preview Book

Raspberry Pi Essentials

Chapter 1. Getting Started with Raspberry Pi

While there are many operating systems (OS) available for the Raspberry Pi, the Raspberry Pi Foundation (http://www.raspberrypi.org) offers Raspbian as the primary OS. Raspbian (http://www.raspbian.org) is based on yet another operating system called Debian, which is built on a Linux kernel for the Raspberry Pi.

Let's get started

The Raspberry Pi, or just Pi as it's called by project designers, is a complete computer system on a small motherboard. In this chapter, you will learn to manage and use the computer with a simple black box methodology. With this simple methodology you don't need to understand the architecture or the internal working of a computer, but you will need to know how it responds to various input and output methods.

At the top level is user input and output. We will use the Raspbian graphical desktop interface as much as possible to simplify interactions with the computer. At the hardware level, you will need to understand the connectors and their purpose. You need not understand the internal architecture of your Pi to complete a project.

There are various models of the Raspberry Pi, which range from one with 256 MB memory with a single-core ARM CPU through to the latest with 1 GB memory and a quad-core ARM CPU. For all of the projects in this book, you can use any of the Raspberry Pi models (they all run the same Raspbian release) with only a slight difference in the I/O connectors to contend with.

We will ignore the internal Raspberry Pi configuration in this book unless it is required to complete a project. So, you won't need to know the CPU type or memory architecture, but you will need to understand the ports (connections) on the board. We've listed the input and output ports available for the Raspberry Pi A+, Raspberry Pi B+, and Raspberry Pi 2 Model B models:

  • AV I/O: This is a four-contact 3.5 mm TRRS jack that provides composite video and stereo audio output
  • Camera interface: This is a mobile industry processor interface (MIPI) and camera serial interface (CSI) fifteen-pin camera connector that supports the PiCam and Pi NoiR cameras
  • Ethernet port: A single RJ45 connector that supports a 10/100-Mbps network connection (the Ethernet controller is connected to the USB bus; there is no Ethernet on the A+ model)
  • GPIO: This is a forty-pin 0.1" header with 5v, 3.3v, 17 GPIO, UART, I2C, SPI, I2S, and EEProm C/D (some shared pin functions)
  • HDMI port: A single HDMI connector supporting resolutions up to 1920*1200, along with digital audio
  • LCD interface: An MIPI (DSI) fifteen-pin LCD connector
  • Micro USB port (power input): There is no data connection on this port, which is used only for the 5-volt power supply; power can be provided via the GPIO pins too, but that will bypass the protection fuse on the micro USB port, so use it with caution
  • System storage: This is a Micro SD Card connector; you need to have one with a minimum of 4 GB, required for Raspbian OS using NOOBs
  • USB ports: There are four USB 2.0 ports supporting up to 480 Mbps (only a single USB port on the A+ model)

Of course, like all computer systems where operation at the desktop level is programmed to be user friendly, once you peer beneath the surface of Pi at both the software and hardware level, it can get complicated.

To ensure that you have the best experience, please read through all of this chapter until you are ready to build and boot Raspbian for the first time and before you start to build your Pi development system.

After completing this chapter, you will be able to:

  • Explain the features of the Raspberry Pi and its peripheral connections
  • List the options for powering the Pi and the connected USB peripherals
  • Summarize the SD Card software configuration options
  • Build a bootable SD Card with a copy of the Raspbian OS
  • Install Raspbian from the SD Card or the Internet
  • Build and configure a working desktop system that boots directly to the graphical desktop interface

Unboxing the Raspberry Pi

Although the Pi A+, B+, and Model 2-B are used for all of our projects, nothing covered in this book precludes the use of the older A and B models. The Pi you purchased might be sourced from many different suppliers. There are some critical differences that you need to be aware of if you plan to use the Pi for a hobby project or education tool:

Model type

GPIO header

SD type

Audio / Composite video

Raspberry Pi A and Pi B

26 pins

standard

Separate TRS and RCA connections

Raspberry Pi B+, A+ and Pi Model 2-B

40 pins

micro

Combined into a single TTRS connector

If you compare other revisions of the Pi with the following image, you will notice that there are some orientation and position changes for connectors and different mounting holes on the A+, B+, and Model 2-B as compared to the A and B models:

Unboxing the Raspberry Pi

We suggest that you consider a complete kit of parts as a good starting point—if you haven't already bought your Pi. In particular, there are kits from Canakit.com for around $90. The kit includes everything needed for a new Pi project designer.

Configure power for Pi

It is important to know that an insufficient power supply current capability could result in an installation that is unreliable and proves hard to diagnose when problems occur. It's OK to have a power supply capable of delivering more current than needed; the system only draws the current it requires.

The most common guidance for the Pi B is a 5-Volt power supply providing between 700 mA and 1 Amp and for the Pi B+ and Model 2-B, between 600 mA and 2 Amp. The higher power requirements for the Pi B+ and Pi 2-B (four USB connections) enable connection to a wide range of USB peripherals such as USB disks, portable printers, scanners, and so on.

Note

Note that the Pi B+ and Pi 2-B have internal current limits of 600 mA set on the USB ports; exceeding the current will power off the port momentarily. The USB 2.0 specification recommends a maximum peripheral device current specification of 500 mA. You should ensure that heavy current peripherals are supported via an externally powered USB hub for the best reliability.

We used an AmazonBasics seven-port USB hub (see the following image) which has two ports that can provide over 1.2 Amp each, and five more ports that can provide up to 500 mA per port. It has a power supply rated for 5V at 4A, which cannot support maximum power on every port simultaneously (rarely required in any realistic configuration).

Our multi-Pi development environment is shown in the following image:

Configure power for Pi

Before you can decide how to power your Pi, you must determine the highest level of current required to ensure that your devices can be properly supported in the configuration. We will continue to discuss power issues as they arise throughout the projects.

Our Pi is powered by a single AmazonBasics hub. The Pi and the hub are attached to a small piece of medium-density fibreboard (MDF) board using Velcro, which is an easy way to connect peripherals while designing a project. There is a WiFi adapter, keyboard, and mouse plugged into the hub. We normally connect via an Ethernet network interface, which facilitates the testing of a broader range of networking scenarios. You will notice in our configuration that a Pi-cam is connected and that we have a Microsoft webcam at the top of the right-hand side speaker.

A development desktop power/USB configuration like the one we showed in the preceding image will provide you with a stable development platform for our project designs. Of course, most final designs may require only the four USB ports on the motherboard and consume as little as 300 mA on average. The following list is the minimum configuration required to complete the projects in this book:

  • A 5-V micro-USB power source rated at 2 A
  • A USB mouse and keyboard
  • An HDMI cable and an HDMI display, or an HDMI-to-DVI cable and a DVI display, or an HDMI-to-VGA convertor and a VGA LCD display
  • An Ethernet cable and connection to your home network or a WiFi adapter for connecting to your WLAN

Local display, keyboard, mouse, or remote headless access

To enable remote access to your Pi from a PC, Mac, or even a smartphone, you must first configure the bootloaders (the initial code that starts the processor) and the operating system on the SD card. Once you configure the OS, it's easy to make the Pi headless.

We use a physical monitor, keyboard, and mouse in our development environment. This configuration allows us to use the graphical desktop, see early error messages, and use advanced bootloader capabilities, such as multi-boot, to select from various configured operating systems that we build.

In our dual-Pi development environment, we have the screen, keyboard, and mouse connected to one Pi and then typically remote into the other using PuTTy or MSTSC (an RDP client) for remote access from a PC. Throughout this book, we will assume you have a connected keyboard, mouse, and display until a project actually requires a headless and wireless configuration.

Selecting a screen

The most modern LCD monitors may have two or more HDMIs, or one HDMI and one DVI or DisplayPort—a much newer display standard). The Pi supports a single HDMI connection and a much more primitive composite video connection, neither of which can connect to VGA directly.

The Pi HDMI interface supports up to 1920 x 1200 pixels and provides the best possible desktop resolution. It may also support sound output over HDMI if the monitor includes speakers.

A composite video connection on the Pi can support up to 800 x 600 pixels depending on the monitor, most of which will typically only work at 640 x 480 pixels. However, a composite image could show some artifacts such as position errors or visible shading lines or bars. Composite monitors, which tend to be quite small, are often used for portable and auto-embedded systems.

When using the Pi, the following video output configurations are possible:

Monitor type

Typical resolution

Required

Description

HDMI TV with built-in speakers

1920 x 1080, 1280 x 720

HDMI A – A cable

Dedicated or multi-source TV

HDMI monitor with or without speakers

1920 x 1080, 1600 x 1024, 1280 x 800, 1440 x 900

HDMI A – A cable

Dedicated or multi-source shared monitor

DVI monitor

1920 x 1080, 1600 x 1024, 1280 x 800, 1440 x 900

HDMI A – DVI – D cable

Dedicated or multi-source shared monitor

VGA monitor

640 x 480, 720p, 1080i, 800 x 600, 1024 x 768

HDMI-VGA convertor +

VGA fifteen-pin Male – Male cable

Dedicated or multi-source shared monitor

Resolution is monitor dependant

Composite A/V

640*480

TRRS four-pin to RCA and audio

Small monitors

The following image show the types of display/video cables that are supported with the Pi:

Selecting a screen

Connecting VGA displays

We do not recommend the use of this type of display for a new user performing a NOOBS installation. To use a VGA screen for a NOOBS installation, you require configuration options that are beyond the scope of this book. If you complete your NOOBS installation with either a DVI or HDMI display (remember that most modern televisions have an HDMI connector), then it is a simple configuration task to enable the use of VGA displays via an HDMI-to-VGA convertor.

To enable output to a VGA display you need to make changes to the config.txt file in the /boot partition after the installation is complete. The following changes must be made to set VGA to 800 x 600:

hdmi_force_hotplug=1
hdmi_group=2
hdmi_mode=9
hdmi_drive=2

For VGA resolutions other than 800 x 600, visit http://elinux.org/RPiconfig.

If you have no other type of display available (composite, DVI, or HDMI) and must connect to a VGA display, while this is beyond the scope of this book, we recommend that you use Berryboot instead of NOOBS for the installation process. You can easily configure Berryboot for a headless install using VNC to provide remote access to the Berryboot menus. Please refer to the following websites for more information on Berryboot:

Tip

The success of the HDMI-to-VGA convertors or cables can vary. The Raspberry Pi organization suggests that the Pi-View HDMI-to-VGA cable is always successful. For a datasheet on this device, go to http://www.farnell.com/datasheets/1670850.pdf.

Getting your SD Card ready

Your Pi kit will typically include an SD Card. The Pi A and the Pi B use a standard-sized SD Card, and the Pi A+, B+, and Model 2-B use a Micro SD Card. Most of these SD Cards provided in kits are preconfigured with NOOBS. Once initialized, Raspbian or another optional operating system will install from an image already on the SD Card or from a network connection.

The minimum recommended SD Card size for the current version of Raspbian (February 2015 Debian 7:7.6 Wheezy) is 4 GB. This version results in a Raspbian install limited to a 2.7 GB partition. Most Pi kits come with a minimum SD Card size of 8 GB, allowing either multiple OS installations or a very large Raspbian partition.

The latest revision (1.4.0) of the new out-of-the-box software (NOOBS) is available in two versions:

  • NOOBS Version 1.4.0: The vast majority of preconfigured SD Cards come with the full version of NOOBS (~700 MB), which includes an image of Raspbian on the card so you don't need an Internet connection to get started. Go to a download link later if you need to get latest the revisions or alternative OS's.
  • NOOBS lite Version 1.4.0: This revision is small (only ~24 MB) but only supports getting your OS images from the network, so it could take longer to install depending on your network bandwidth. You will most likely always use this version when you buy a new SD Card and initialize it by yourself.

Depending on which version of Pi you have, you might need to have both the standard and Micro SD cards. We suggest that you only buy Micro SD cards that can be used for all Pi versions with a Micro SD-to-SD Card adapter.

With the addition of a Micro SD Card reader (Micro SD to USB), you have the greatest flexibility when formatting and initializing SD Cards. You can even reformat and initialize Micro SD Cards using the Pi once you have a working copy of Raspbian. The following image shows you the standard SD and the Micro SD Cards, and their capabilities:

Getting your SD Card ready

SD Cards have a specified speed or Class, typically Class 4 or Class 10. Class 4 cards are quite adequate for the application and typically cost less.

If you bought a kit with a prepared Micro SD Card, then you are ready to boot your Pi system. If you have a blank or previously used Micro or Standard sized SD Card, go to the Chapter 1 folder at http://1drv.ms/1ysAxkl to locate the How to Initialize SD Card instructions.

Booting the Raspberry Pi for the first time

You are now ready to connect your Pi to a screen, keyboard, mouse, and a suitable power supply or USB hub. After inserting the Micro SD Card, you have one more decision to make—are you connecting to a network cable?

If you purchased an SD Card with a full copy of NOOBS or have just built the full copy (700 MB NOOBS install), then you don't need a network connection yet; you are ready to go.

If you built NOOBS Lite, you will need an Ethernet cable to connect to the network. Plug this cable into an Ethernet port on your network. The WAP or network needs to support DHCP, which is normally the way most home networks are configured. The IP address is allocated automatically when the Pi boots up and starts the NOOBS software.

Tip

The Raspberry Pi does not come with a case, and you can potentially damage the card with static or by having connections short out on the motherboard. If the Pi is unprotected, you should ensure that all your cables are secured so that you reduce the potential to damage it in any way. Always keep your Pi on an insulated and static-free surface if it has no case. For example, we use a 9 inch by 12 inch piece of MDF board.

It's time to power up the Pi

Powering up the Pi is easy, since there is no ON/OFF switch; you simply plug in the micro USB connection to the power connector. The following steps show you how to power up the Pi:

  1. Plug it in and you can see that the Red PWR LED comes on and the Green ACT LED flashes, indicating read and write activity to the SD Card. These LEDs are near the GPIO header, as shown in the following image:
    It's time to power up the Pi
  2. Next, you will see a brightly colored screen followed by some messages from NOOBS about resizing your partitions on the SD Card. Finally, there's a background with the Raspberry Pi logo, which is promptly covered by the NOOBS install window.

    The NOOBS install window shows the various OS options on the SD Card; you can select multiple options for the installation.

  3. On the right-hand side of the install screen, there is an icon showing the options on the SD Card, and those that require network access. Selecting any of the options with a network icon will download from the Internet, provided you have a network connection.
  4. Select the following options:
    • Raspbian
    • Data Partition
  5. Click on Install to start the installation process.
  6. A warning will ask you to confirm that you want the install to continue, click on Yes.

    At the bottom of the install window, it indicates the amount of space required to install these components (3275 MB or 3.2 GB). It will take about 25 minutes to install the software; a progress bar indicates what part of the process is currently being completed.

    Tip

    Be careful not to accidentally power down your Pi during the installation process, as the partition table and the OS data are being rewritten, it is possible to corrupt the process and render the SD Card unusable. You won't damage the Pi or SD Card, but you might have to reinstall the NOOBS software to start again.

No video on initial boot

When you power up your Pi, you will notice a flashing Green ACK LED followed by a video display. If, after the LED flashes, you don't see the display within a few seconds, try using one of the following key entries to resolve the issue; enter a numeric key to match your display type:

  • Key 1: This sets the display to Standard HDMI mode. This mode will use the best possible resolution based on the EDID information from the display.
  • Key 2: This sets the display to Safe HDMI mode. This is a low resolution 800 x 600 setting that can overcome displays with bad EDID information.
  • Key 3: This sets the display to low resolution Composite PAL on the RCA connector for the Pi A and the Pi B and on the TRRS connector for the Pi A+, Pi B+, and Pi Model 2-B.
  • Key 4: This sets the display to the low-resolution Composite NTSC on the RCA or TRRS connector.

If you discover that none of the key entries restores the display, check your cables or display functionality and then try the installation again.

Final installation configuration

When the installation process is complete, you will be prompted to continue. Perform the following steps to configure your Pi:

  1. Select continue; Pi will reboot and start Raspbian for the first time. You will now be presented with raspi-config; you can navigate the options using the arrow keys. This is a script that will modify configuration flags and files for options in the Raspbian OS.
  2. Use the following settings to complete your configuration:
    • Change User Password: The default user is pi and the password is raspberry. For greater security, change from the default.
    • Enable Boot to Desktop/Scratch: Change this to Desktop Login as pi on the graphical desktop.
    • International options: Change your time zone to suit your location and the keyboard layout to suit your keyboard. Typically, this will be set to the Generic 105 key (Intl) PC, English (US) or English (GB), AltGR to default, Compose to No, Ctrl + Alt + Backspace change to Yes.
    • Enable Camera: Enable only if you have a Pi camera or intend to use one.
    • Add to Rastrack: This is optional.
    • Overclock: This is optional, but not suggested yet. If you do overclock, then ensure that the CPU has a heatsink attached to it.
    • Advanced Options: A2 is set for hostname (the default is raspberrypi); A4 is set to enable an SSH server; A6 is set to enable I2C; A7 is set to disable kernel use of the serial port for messages and logon.
  3. Select Finish and restart the computer to view the desktop, as shown in the following screenshot:
    Final installation configuration

As the Raspberry Pi boots, you will see text roll up the screen; these are the boot messages as the OS dynamically builds the memory image. You will also see a Raspberry Pi logo in the top-left corner of the screen. One Raspberry indicates a single processor, and four Raspberries indicate the latest quad processor model 2-B.

A quick tour of the desktop

After restarting your Pi, the Raspbian graphical desktop appears, and you are logged in as pi with the password as raspberry (if you did not change it).

Notice that the desktop is uncluttered. All the current GUI applications are located in the menu and five applications are on the quick launch bar. From the Menu/Shutdown, you can Shutdown, Reboot, or Logout. The following is a list of quick pointers of handy keyboard accelerators that you might find useful:

  • Ctrl + Alt + Backspace: Use this key combination to log out of the current Xsession user (use Xsession to login).
  • Ctrl + Alt + F1: Use this key combination to switch to a command session on tty1 (type exit to close)
  • Ctrl + Alt + F7: Use this key combination to switch back to the graphical desktop
  • Ctrl + Alt + F2 through F6: Use this key combination to switch to a command session on tty2-tty6

Instructions for downloading all project files

There are multiple downloadable files for each of the chapter projects, along with extra procedural documents; they are available for download from http://1drv.ms/1ysAxkl.

Tip

Downloading the example code

You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.

You can access them from your Raspberry Pi desktop by performing the following steps:

  1. Use the link http://1drv.ms/1ysAxkl in the web browser.
  2. Use the OneDrive Folder actions dropdown.
  3. Click on Download folder to download all the files to the default /home/pi/Downloads folder as a ZIP file.
  4. Use Xarchiver to extract the files to the default destination folder /home/pi/Downloads and move them manually as required in each chapter project.

Summary

Now that you've built and configured your Pi as a working desktop system that boots directly to the graphical desktop interface, let's review some of the important tasks you learned to perform:

  • You built a hardware configuration for Raspberry Pi with locally connected peripherals
  • You initialized and built a NOOBS SD card
  • You booted NOOBS and then installed Raspbian locally or from the Internet
  • You performed post install configuration selections with raspi-config

In the next chapter, you will use Raspbian desktop tools and the shell command line to build a talking clock using scripts and Python 3.

Left arrow icon Right arrow icon

Description

Programmers new to the Raspberry Pi and novice programmers with little to no experience with micro board computing will find the book useful. A basic knowledge of programming languages in general will prove useful for a better understanding of the topics.

Who is this book for?

Programmers new to the Raspberry Pi and novice programmers with little to no experience with micro board computing will find the book useful. A basic knowledge of programming languages in general will prove useful for a better understanding of the topics.

What you will learn

  • Build your own fullfledged Raspberry Pi hardware and install the Raspbian OS
  • Configure the Raspberry Pi development environment and get acquainted with OS configuration and tools
  • Build a camerabased project using PiCam and USB cameras
  • Build and configure a stereo audio system using VLC
  • Explore the Raspberry Pi GPIO to connect to the outside world
  • Utilize and explore extensive I2C interface support built into the Raspberry Pi to enhance your system
  • Configure remote access and battery power for a mobile Raspberry Pi
  • Build a fully functional Raspberry Pi linefollowing robot using PiCam
Estimated delivery fee Deliver to United States

Economy delivery 10 - 13 business days

Free $6.95

Premium delivery 6 - 9 business days

$21.95
(Includes tracking information)

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Apr 28, 2015
Length: 212 pages
Edition : 1st
Language : English
ISBN-13 : 9781784396398
Vendor :
Raspberry Pi
Category :
Concepts :

What do you get with Print?

Product feature icon Instant access to your digital copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Redeem a companion digital copy on all Print orders
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to United States

Economy delivery 10 - 13 business days

Free $6.95

Premium delivery 6 - 9 business days

$21.95
(Includes tracking information)

Product Details

Publication date : Apr 28, 2015
Length: 212 pages
Edition : 1st
Language : English
ISBN-13 : 9781784396398
Vendor :
Raspberry Pi
Category :
Concepts :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 114.97
Learning Raspberry Pi
$48.99
Raspberry Pi Sensors
$32.99
Raspberry Pi Essentials
$32.99
Total $ 114.97 Stars icon

Table of Contents

9 Chapters
1. Getting Started with Raspberry Pi Chevron down icon Chevron up icon
2. Configuring the Raspberry Pi Desktop and Software Chevron down icon Chevron up icon
3. Raspberry Pi and Cameras Chevron down icon Chevron up icon
4. Raspberry Pi Audio Input and Output Chevron down icon Chevron up icon
5. Port Input and Output on the Raspberry Pi Chevron down icon Chevron up icon
6. Driving I2C Peripherals on the Raspberry Pi Chevron down icon Chevron up icon
7. Going Mobile with Raspberry Pi Chevron down icon Chevron up icon
8. Creating a Raspberry Pi Line-following Robot Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.8
(5 Ratings)
5 star 0%
4 star 80%
3 star 20%
2 star 0%
1 star 0%
Stareagle Oct 08, 2015
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
The Raspberry Pi Esentials book is a great resource for those starting to dabble in this area. It has clear and concise information to get you up and running quickly.It even goes into some detail on various electronic projects that can be completed using the Raspberry PI which is easy to follow and understand.To avoid clutter a lot of the code files are available for download in a single zip file. This also aleviates the error factor of trying to type in the code from the pages of the book and can simply be imported when needed.Although it is a beginners kind of book, I would say the user would need at lease some experience of the Raspberry Pi and an awarenes of electronics in general.Overall a great book and I would recommend it to others.
Amazon Verified review Amazon
Jaume Aragay Badia Oct 11, 2015
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Great introduction level book to the Raspberry Pi but not for newbies. If you know linux and electronics and want to get a first contact with the Raspberry Pi, this is your book; if not, you can find other RasPi books specifically for newbies with step by step instructions.The book is full of little gold nuggets in the comments for real life situations. Some code is not listed on the book pages but is referenced for downloading. This has a good side: no typing errors; but also a bad one, at least for me, I can't see everything in one place to follow the whole thing, that's why I did not give it the fifth star.The chapters cover these topics:- The unboxing and first time booting of the RasPi and it's configuration.- The use of cameras with the RasPi and video resources including motion detection procedures.- The RasPi audio input and output.- The real world interaction through the input and output pins of the RasPi.- The use of different peripherals including I2C ones to run PWM on servos (if you don't understand what I say here, this may not be your book).- What's needed to make a RasPi mobile (autonomous).- A final project: A RasPi line-following robot.All the chapters have their own (very well crafted and interesting) projects and some of them are merged in the robot project at the end of the book.
Amazon Verified review Amazon
Gopinath Palaniappan Oct 09, 2015
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Raspberry Pi Essentials"Get up and running with the Raspberry Pi to develop captivating projects"Author: Jack CreaseyAs the name suggests, its a book to teach you the basics of Raspberry Pi hardware. Its also supplemented with a number of examples and mini projects to keep you occupied for days.* C1 : Includes basic setup of Raspberry Pi, Booting into Rasbian* C2 : Is all about configuration of desktop, networking/wifi and a talking clock* C3 : Helps you setup a webcam or PiCam to capture video. 3 mini projects for security camera application* C4 : Deals with Audio input and output. Includes 2 mini projects to create your own internet radio* C5 : I/O ports* C6 : Interfacing I2C peripherals* C7 : Making it portable* C8 : Building a line follower robotThere is a lot covered in the book. Initial chapters does not require anything but the Raspberry Pi. Later chapters do require additional peripherals and kits. I loved the last chapter that teaches you to assemble a line follower robot.Link to the books:http://www.amazon.com/dp/1784396397 [$14.59 kindle/$29.99 print]https://www.packtpub.com/hardware-and-creative/raspberry-pi-essentials [$23.99 ebook/$29.99 print+ebook]
Amazon Verified review Amazon
Dustin Marx Jun 12, 2015
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
"Raspberry Pi Essentials" packs much detailed information into its pages. Many of the code listings used in the numerous projects are not fully contained in the book, but are instead available via download. This allows the pages to focus on text, graphics, and images. The book covers diverse topics such as selecting and configuring a Raspberry Pi, connecting cameras to the Raspberry Pi, working with audio input and output, making the Raspberry Pi mobile, and building a Raspberry Pi-based robot to follow a line."Raspberry Pi Essentials" features clear graphics and screen snapshots that illustrate the concepts being discussed. Some code samples need to be downloaded rather than being present in the pages of the book. This works with the author's approach to minimize knowledge of coding and keep the focus on the Raspberry Pi. The code samples can be easily downloaded in a single ZIP file."Raspberry Pi Essentials," as its title suggests, covers Raspberry Pi essentials, but covers them in a highly detailed manner that is not always the case with "essentials" books. "Raspberry Pi Essentials" is probably best suited for someone with at least minimal experience with Raspberry Pi and readers of the book should definitely have access to a Raspberry Pi and other described components to work with as the book is read. The book is project-heavy and likely to be most useful to those who implement the projects.I reviewed a PDF version of this book provided by Packt Publishing.
Amazon Verified review Amazon
MRL Oct 09, 2015
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
“Raspberry Essentials” aims to illustrate the basics of Raspberry Pi, from installation to advanced use. The book is meant for both experienced DIY and first time amateurs.In the first part of the book, it wouldn’t have hurt to include more details for first time users.As an example, at page 14:“Ctrl + Alt + Backspace: Use this key combination to log out of the current Xsession user (use Xsession to login).Ctrl + Alt + F1: Use this key combination to switch to a command session on tty1 (type exit to close)Ctrl + Alt + F7: Use this key combination to switch back to the graphical desktopCtrl + Alt + F2 through F6: Use this key combination to switch to a command session on tty2-tty6.”The passage above works for an experienced user -- meaning someone who knows developer tools and has a basic knowledge of administrative tasks of a Linux OS -- but I’m afraid that a first time user who has never seen a Linux OS wouldn’t understand what is a Xsession, an tty1, tty2 and so on!If you are a Linux guy, this book will prove to be very useful, thanks to plenty of tips and hands-on tutorial that will help you to achieve various tasks, from network configuration to appropriate monitor customization. In addition to that, readers will learn, step by step, to keep the development environment up to date.Some complex tasks and configuration files can be downloaded from a web site.Unfortunately some bash scripts (or python scripts) are presented in their final form, without a good explanation about all their functions. This way, programmers can use them as a “recipe” or should put in a lot of work on their own to try to fully understand them.Chapter 5, "Port Input and Output on the Raspberry Pi", and Chapter 6, "Driving I2C Peripherals on the Raspberry Pi", are much more useful and well developed but, in my opinion, the scripts could have used a deeper explanation; it would have tremendously improved the whole presentation.Chapter 7, "Going Mobile with Raspberry Pi", and 8, "Creating a Raspberry Pi Line-following Robot", are great reading materials for DIY aficionados. They pick up some ideas from previous chapters (like using a camera) and they add great advice for someone who needs only a few tips to achieve his goals. Maybe this is the real target of the book: a DIY fan with a lot of time to try something new and an outstanding ability to learn in autonomy.I would have liked the book more if the author had developed the topics in a way that could have been easier to understand. Maybe the author could have focused on less topics. I would recommend to revise the book paying more attention to every single subject from the beginning to end.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is the digital copy I get with my Print order? Chevron down icon Chevron up icon

When you buy any Print edition of our Books, you can redeem (for free) the eBook edition of the Print Book you’ve purchased. This gives you instant access to your book when you make an order via PDF, EPUB or our online Reader experience.

What is the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
Modal Close icon
Modal Close icon