Skip to main content
Displaying 1 of 1
Learn robotics with Raspberry Pi : build and code your own moving, sensing, thinking robots
Please select and request a specific volume by clicking one of the icons in the 'Where is it?' section below.
Where is it?
Matt Timmons-Brown takes you through the process of building your own robot with the Raspberry Pi microcomputer - with no experience necessary! Starting from the ground up, you'll add complexity to your robot with each chapter by adding and tweaking code and components, and also receive advice on which materials you can use to make your builds unique and personal. By the end of the book, you'll know how to apply the knowledge you've gained to build other robots. If you're ready to level up your robotics skills with Raspberry Pi, let Learn Robotics with Raspberry Pi be your guide!
Map It
Large Cover Image
Table of Contents
Acknowledgmentsp. xiii
Forewordp. xiv
Introductionp. xv
Why Build And Learn About Robots?p. xvi
Why The Raspberry Pi?p. xvii
What Is In This Book?p. xvii
Who Is This Book For?p. xix
Where Should You Buy Parts?p. xix
Let's Get Started!p. xx
Chapter 1Getting Up And Runningp. 1
Get Your Hands On A Raspberry Pip. 2
Your First Taste Of Pip. 4
What You'll Needp. 6
Setting Up Your Raspberry Pip. 8
Installing Your Pi's Operating System On Windows/Macosp. 8
Plugging In And Wiring Up Your Raspberry Pip. 12
Installing Raspbianp. 14
Configuring Raspbianp. 15
The Terrific World Of The Terminalp. 17
Touring The Terminalp. 18
Accessing Your Raspberry Pi From Another Computerp. 21
What Is Programming?p. 25
Introducing Pythonp. 25
Writing Your First Python Programp. 26
Summaryp. 28
Chapter 2Electronics Basicsp. 29
What Is Electricity?p. 30
Resistancep. 32
Ohm's Law Of Electricityp. 33
Making An Led Blink: Raspberry Pi Gpio Outputp. 33
The Parts Listp. 34
Wiring Up Your Ledp. 37
Programming Your Raspberry Pi To Blink Your Ledp. 39
Running Your Program: Make Your Led Blinkp. 42
Challenge Yourself: Change The Timingp. 43
Input From A Button: Raspberry Pi Gpio Inputp. 43
Explaining The Parts Listp. 44
Wiring Up Your Buttonp. 44
Programming Your Raspberry Pi To Display Input From Your Buttonp. 46
Running Your Program: Get Input From Your Buttonp. 47
Challenge Yourself: Combine Your Button And Led Programsp. 48
Summaryp. 48
Chapter 3Building Your Robotp. 49
Your First Robotp. 50
What You'll Needp. 51
Chassisp. 52
Motorsp. 54
Batteriesp. 57
Voltage Regulatorp. 58
Motor Controllerp. 59
Recommended Toolsp. 60
Assembling Your Robotp. 60
Making The Chassisp. 60
Attaching The Motorsp. 62
Stabilizing The Robotp. 63
Attaching The Batteriesp. 65
Mounting The Raspberry Pi, Breadboard, And Buck Converterp. 66
Wiring Up Power To The Raspberry Pip. 67
Wiring Up The Motorsp. 71
Summaryp. 78
Chapter 4Making Your Robot Movep. 79
The Parts Listp. 80
Understanding The H-Bridgep. 80
First Movementp. 81
Programming Your Robot With A Predefined Routep. 81
Running Your Program: Make Your Robot Movep. 84
Making Your Robot Remote-Controlledp. 87
The Wiimote Wireless Controllerp. 87
Installing And Enabling Bluetoothp. 88
Programming Remote Control Functionalityp. 90
Running Your Program: Remote-Control Your Robotp. 92
Varying The Motor Speedp. 93
Understanding How PWM Worksp. 93
Understanding The Accelerometerp. 95
Looking At The Datap. 96
Figuring Out The Remote Movement Controlp. 97
Programming Your Robot For Variable Speedp. 99
Running Your Program: Remote-Control Your Robot With PWMp. 101
Challenge Yourself: Refine Your Remote-Controlled Robotp. 101
Summaryp. 102
Chapter 5Avoiding Obstaclesp. 103
Obstacle Detectionp. 104
Using Ultrasonic Sensors For Analog Object Detectionp. 104
Understanding How The HC-SR04 Worksp. 105
Measuring A Short Distancep. 106
The Parts Listp. 106
Reducing Voltage With Voltage Dividersp. 107
Wiring Up Your HC-SR04p. 109
Programming Your Raspberry Pi To Read Distancep. 112
Running Your Program: Measure A Short Distancep. 114
Make Your Robot Avoid Obstaclesp. 115
Mounting Your HC-SR04 Ultrasonic Sensorp. 115
Programming Your Robot To Avoid Obstaclesp. 116
Running Your Program: Make Your Robot Avoid Obstaclesp. 119
Challenge Yourself: Improve The Obstacle Avoidance Programp. 119
Summaryp. 120
Chapter 6Customizing With Lights And Soundp. 121
Adding Neopixels To Your Raspberry Pi Robotp. 122
Introducing Neopixels And The RGB Color Systemp. 122
The Parts Listp. 124
Wiring Up Your Neopixel Stickp. 125
Installing The Softwarep. 127
Configuring The Library's Example Codep. 129
Running The Example Codep. 132
Controlling Neopixels Using The Wilmote Programp. 132
Running Your Program: Neopixels And Wiimote Controlp. 135
Challenge Yourself: Experiment With Color And Patternp. 135
Adding A Speaker To Your Raspberry Pi Robotp. 136
Understanding How 3.5 Mm Speakers Workp. 136
Connecting Your Speakerp. 137
Adding A Car Horn To The Wiimote Programp. 138
Installing The Softwarep. 138
Playing Sounds From The Terminalp. 140
Playing Sound Using The Wiimote Programp. 141
Running Your Program: Neopixels, Sound Effects, And The Wiimote Controlp. 142
Adding Beeping To The Obstacle Avoidance Programp. 142
Integrating The Beep Sound Into The Obstacle Avoidance Programp. 142
Running Your Program: Beeping Obstacle Avoidancep. 143
Challenge Yourself: Add Sound Effects To Your Other Projectsp. 143
Summaryp. 144
Chapter 7Line Followingp. 145
Creating A Trackp. 146
The Theory Behind Line Followingp. 149
Using An Ir Sensor To Detect A Linep. 153
The Parts Listp. 153
Wiring Up Your Tcrt5000 Line-Following Sensor Modulep. 155
Programming Your Raspberry Pi To Detect A Linep. 156
Running Your Program: Detect A Line!p. 157
Make Your Robot Follow A Line Autonomouslyp. 158
Wiring Up The Second TCRT5000 Line-Following Sensor Modulep. 158
Mounting Your Sensorsp. 159
Programming Your Robot To Follow A Linep. 160
Running Your Program: Make Your Robot Follow A Line!p. 162
Summaryp. 164
Chapter 8Computer Vision: Follow A Colored Ballp. 165
The Computer Vision Processp. 166
The Parts Listp. 167
The Target: A Colored Ballp. 167
The Official Raspberry Pi Camera Modulep. 168
Connecting And Setting Up Your Camera Modulep. 169
Mounting Your Camerap. 171
Enabling The Camera And VNC, And Setting The Screen Resolutionp. 172
Taking A Test Photop. 174
Controlling Your Pi's Desktop Remotely With VNCp. 175
Installing And Making A Connection With VNC Viewerp. 175
Taking And Viewing A Photo Using The Raspberry Pi Camera Modulep. 177
Make Your Robot Seek And Follow A Ballp. 179
Understanding The Theory Behind Colored-Object Recognitionp. 179
Installing The Softwarep. 183
Identifying The HSV Color Of Your Colored Ballp. 183
Running The HSV Test Programp. 184
Programming Your Raspberry Pi To Follow A Ballp. 185
Running Your Program: Make Your Robot Follow A Colored Ball!p. 192
Summaryp. 194
Next Stepsp. 195
The Raspberry Pi GUYp. 196
Get In Touch!p. 196
Other Websitesp. 197
Clubs And Eventsp. 198
Books And Publicationsp. 199
Raspberry Pi GPIO Diagramp. 200
Resistor Guidep. 202
How To Solderp. 204
What You Needp. 205
Solderp. 205
Soldering Ironp. 206
Stand And Soldering Tip Cleanerp. 207
Soldering Components Togetherp. 209
Preparing To Solderp. 210
Tinning The Tipp. 210
Setting Up The Componentsp. 211
Soldering The Perfect Jointp. 212
Summaryp. 214
Run Program On Startupp. 215
Editing The Rc.Local Filep. 216
A Practice Examplep. 217
Librarian's View
Displaying 1 of 1