Download (Ebook) Science and Engineering Projects Using the Arduino and Raspberry Pi: Explore STEM Concepts with Microcomputers by Paul Bradt, David Bradt ISBN 9781484258101, 148425810X ebook All Chapters PDF
Download (Ebook) Science and Engineering Projects Using the Arduino and Raspberry Pi: Explore STEM Concepts with Microcomputers by Paul Bradt, David Bradt ISBN 9781484258101, 148425810X ebook All Chapters PDF
com
DOWLOAD EBOOK
https://ebooknice.com/product/beginning-robotics-with-raspberry-pi-
and-arduino-using-python-and-opencv-pdfdrive-com-50195874
ebooknice.com
ebooknice.com
ebooknice.com
(Ebook) Beginning Robotics with Raspberry Pi and Arduino:
Using Python and OpenCV by Jeff Cicolani ISBN
9781484268902, 1484268903
https://ebooknice.com/product/beginning-robotics-with-raspberry-pi-
and-arduino-using-python-and-opencv-23518014
ebooknice.com
https://ebooknice.com/product/arduino-and-raspberry-pi-sensor-
projects-for-the-evil-genius-55308442
ebooknice.com
ebooknice.com
https://ebooknice.com/product/raspberry-pi-home-automation-with-
arduino-2nd-edition-50194998
ebooknice.com
Science and
Engineering Projects
Using the Arduino
and Raspberry Pi
Explore STEM Concepts with
Microcomputers
—
Paul Bradt
David Bradt
Science and
Engineering Projects
Using the Arduino
and Raspberry Pi
Explore STEM Concepts
with Microcomputers
Paul Bradt
David Bradt
Science and Engineering Projects Using the Arduino and Raspberry Pi:
Explore STEM Concepts with Microcomputers
Paul Bradt David Bradt
Houston, TX, USA Houston, USA
v
Table of Contents
vi
Table of Contents
Mass�������������������������������������������������������������������������������������������������������������������78
Velocity and Acceleration������������������������������������������������������������������������������������78
Inertia������������������������������������������������������������������������������������������������������������������81
Momentum����������������������������������������������������������������������������������������������������������81
Friction����������������������������������������������������������������������������������������������������������������81
More Advanced Aspects of Calculus�������������������������������������������������������������������83
Summary������������������������������������������������������������������������������������������������������������84
vii
Table of Contents
viii
Table of Contents
ix
Table of Contents
Astronomy Terms����������������������������������������������������������������������������������������������228
Specifications of the Meade ETX-60AT�������������������������������������������������������������229
Setup, Updates, and Repairs�����������������������������������������������������������������������231
Helpful Books����������������������������������������������������������������������������������������������������232
Index�������������������������������������������������������������������������������������������������233
x
About the Authors
Paul Bradt has a BS in Computer Science
from the University of Houston–Clear
Lake. He currently owns a small business
and writes books, develops code, and does
IT support work. He has experimented
with the Arduino and Raspberry Pi system
and believes them to be excellent tools for
developing an understanding of electronic
components and hardware interaction in
integrated systems. He believes they are very
useful as a teaching aid in learning computer
programming, science, and engineering. He likes to perform sophisticated
troubleshooting of computer problems and has found that online
resources can be a great help for novice users to get their experiments
operating quickly and effectively.
xi
About the Technical Reviewer
Sri Manikanta Palakollu is an undergraduate student pursuing his
bachelor’s degree in Computer Science and Engineering at SICET under
JNTUH. He is a founder of the OpenStack Developer Community in his
college. He started his journey as a competitive programmer. He always
loves to solve problems that are related to the data science field. His
interests include data science, app development, web development,
cybersecurity, and technical writing. He has published many articles
on data science, machine learning, programming, and cybersecurity in
publications like Hacker Noon, freeCodeCamp, Noteworthy, and DDI
through the Medium platform.
xiii
Acknowledgments
This book would not be possible without the authors’ gaining early
technical insight regarding the Raspberry Pi and Arduino from others.
Jared Brank and Dennis Pate provided a lot of basic information, key
insights, and Arduino hardware early in the process. The authors thank
the following individuals who listened to them on many occasions and
provided help, insight, and inspiration with their own experiences with
the Raspberry Pi and other projects: Jeff Dunehew, Todd Franke, and Fitz
Walker. Additionally, significant assistance with 3D printing was provided
by Mitch Long and David Thoerig.
Producing this book would not have been possible without the
excellent help and guidance regarding scope and early editorial reviews
by Joanna Opaskar and Ed Weisblatt. The authors also utilized many
ideas from Andrew Bradt and Laura Brank’s science fair experience. Most
important was the support and advice from Andrea Bradt.
xv
Introduction
The authors’ journey developing this book started in 2013 when they
discovered the Arduino microcontroller. It is interesting how something big
really starts with one step as they found the Arduino incredibly powerful.
Users are able to program it with computer code, and then it executes its
instructions for as long as it has power. The authors started evaluating
various applications of the Arduino around the house and in their hobby
endeavors. In 2017, they started experimenting with the Raspberry Pi
minicomputer which enables users to take projects to a whole new level
with a low-cost computer that interfaces with sensors. Since a Raspberry
Pi is very affordable, a real computer can now be dedicated to operating a
system permanently. While requiring some technical steps to set up, both
of these tools can be used to gather data, automate tasks, and provide a
lot of fun. The authors found it very satisfying to watch a device do several
tasks, especially when they set it up. This book chronicles some science
and engineering projects the authors developed over the past few years
and provides helpful hints, along with a few things to avoid.
There are two primary areas of focus or goals of this book. The first goal
is to help the reader explore the Arduino and Raspberry Pi. The second
goal is exploring science and engineering in interesting and fun ways.
The projects and concepts in this book are meant to accomplish
the first goal by providing information to get an Arduino or Raspberry
Pi system set up, running, and ready to capture data. The text provides
enough detail for users with average assembly or electrical skills to
complete them. Additionally, the goals of learning are to gain knowledge
and skills. When the reader engages in a project that requires them to
try new things, it reinforces how they learn and gain confidence and
encourages them to try even more complex tools and techniques.
xvii
Introduction
What Is STEM?
STEM (Science, Technology, Engineering, Mathematics) is a program
based on educating students in science, technology, engineering, and
mathematics in an integrated, interdisciplinary approach to learning.
School systems today strive to improve education in STEM. This goal is
an area where educators can use outside help developing and improving
students’ knowledge when they actively contribute, design, and build
hands-on projects. In many ways, the young mind is excited and motivated
building projects. They develop an in-depth understanding of what is
required and how it works. The authors believe this is the best way to learn
and remember these concepts, which results in a solid STEM foundation
for students.
A question not often understood is how the scientific method is different
from an engineering approach. Understanding the difference between
science and engineering can be seen in the original Star Trek series.
xviii
Introduction
Mr. Spock was the science officer, and Montgomery Scott (Scotty) was
the chief engineer. Their jobs and how they approached new scenarios
or problems really provide a great explanation about the differences
and similarities between science and engineering. Let’s examine some
examples.
Mr. Spock used the term fascinating when describing a new event
or phenomenon. The role of science is to expand knowledge and
investigate new events. This fascination with new and unique areas is
key for a scientist. Scotty, the engineer, on the other hand always had to
fix the warp engines, the transporter, or some other critical system. The
normal role of an engineer is to develop and implement solutions to
problems. In one of the episodes, Scotty indicated he would rather read
his engineering journals to learn about how others solved problems
than go on shore leave!
Science
Researchers use the scientific method as a tool to understand questions
in their area of interest. Based on the information they have initially,
they develop a hypothesis and then methods to test the validity of the
hypothesis. When sufficient test data are gathered and analyzed, the
researcher either accepts or rejects the hypothesis. In many cases, positive
or negative results point to the next step or direction of exploration and
contribute to the general body of scientific and engineering knowledge.
Engineering
The primary goal of engineering is to evaluate alternatives and choose
the optimal solution to minimize or eliminate specific problems or issues.
Solutions are not necessarily new, but may be repurposed concepts
applied to different problem areas. Other aspects of engineering include
xix
Introduction
xx
Introduction
Both Mr. Spock and Scotty realized they needed each other (science
and engineering) to accomplish the goals of exploration and keep
the Enterprise flying safely through space. In today’s complex world,
integrating science and engineering is key to researching problems and
developing solutions.
In the following chapters, the authors will demonstrate all of the
components of STEM needed to research scientific questions, use new
technology (Arduino and Raspberry Pi), employ engineering techniques,
and use mathematics to quantify the scientific data. As Star Trek boldly
went forth to explore new worlds, the authors hope the students of today
do the same!
xxi
CHAPTER 1
A
rduino Basics
The Arduino is a powerful microcontroller that is ready to program and
acts as an intermediary device between a personal computer and various
sensors. It is relatively new technology that is a great tool for gaining
insight into physical properties and other scientific parameters.
The Arduino board was first developed in Italy in 2004 as a tool to help
train students in programming. It is an open source tool and as such has
developed a large base of helpful web sites and user groups. It represents
a breakthrough as an easy-to-use, relatively inexpensive, programmable
interface between a computer and various sensors. The software
development package and all of the online resources help make this an
ideal data logging tool for science fair/college projects.
The Arduino, Adafruit, SparkFun, Hacktronics, and other web sites are
great places to start. There are also several introductory books to help the
researcher get started using this device. Getting started with Arduino by
Banzi is a very good beginner’s book on Arduino.
Other sources of information for the Arduino novice are maker faires
and user group activities.
© Paul Bradt and David Bradt 2020 1
P. Bradt and D. Bradt, Science and Engineering Projects Using the Arduino and Raspberry Pi,
https://doi.org/10.1007/978-1-4842-5811-8_1
Chapter 1 Key Technology Tools
There are several versions and sizes, but for the projects in this book,
the Arduino Uno and the Integrated Development Environment (IDE)
version 1.89 were utilized. Figure 1-1 shows an example of the Arduino
Uno. The authors recommend for the person unfamiliar with Arduinos
to use an official version and not a clone. The authors have never
experienced a problem with an official Arduino, but there are many clones,
and the authors have experienced problems with one of them.
A
rduino Setup
Setting up an Arduino is relatively straightforward; the reader should
follow these basic steps to get the device running:
These steps sound basic, and after the reader completes these steps a few
times, they will see how easy it is to connect and run an Arduino. In many cases,
2
Chapter 1 Key Technology Tools
the challenges occur with the code. If the reader is copying code from a source,
it is important to type it in exactly as it looks. Even then there could be errors, but
that is part of the adventure, and it’s very rewarding when the code runs.
P
orts and Interfaces
Figure 1-3 shows the main ports of the Arduino Uno.
3
Chapter 1 Key Technology Tools
There are five primary port groupings that are used to connect to the
Arduino:
4
Chapter 1 Key Technology Tools
There are other components and hardware that can be used with the
Arduino:
5
Chapter 1 Key Technology Tools
6
Chapter 1 Key Technology Tools
7
Chapter 1 Key Technology Tools
Raspberry Pi Basics
The Raspberry Pi 3 is a powerful minicomputer. This piece of technology
comes with a lot of features like any other modern computer. It is an
experimental/hobbyist device developed around 2011 in the United
Kingdom to teach programming. For its low cost, it has many capabilities
and allows the user to configure it in many ways. There are several models
on the market. For this book, the authors choose the Raspberry Pi 3
Model B V1.2 (Figures 1-4 and 1-5). There is a new Raspberry Pi 4 that
was recently released that has more features. The authors researched the
setup and use of the Raspberry Pi 4, and it appears to be the same as the
Raspberry Pi 3. We believe these projects will work the same if you have a
Raspberry Pi 4.
8
Chapter 1 Key Technology Tools
9
Chapter 1 Key Technology Tools
Raspberry Pi Setup
These are the general steps to set up the Pi:
1. Insert the SD card.
2. Plug in the monitor.
3. Plug in the keyboard.
4. Plug in the mouse.
10
Chapter 1 Key Technology Tools
For the purposes of this book, the authors will focus primarily on how
to connect sensors to the Raspberry Pi and get data out of them. There are
many other uses for the Raspberry Pi that will not be covered in this text.
Figure 1-7 shows the General-Purpose Input/Output or GPIO pins,
although it may not be easy to determine the pin number on the Raspberry Pi.
A ribbon cable is also shown that connects to a nice interface board made
by MCM. This interface board has pin numbers and makes it a lot easier to
connect sensors to the Raspberry Pi. More about this in the next chapter.
11
Exploring the Variety of Random
Documents with Different Content
The Project Gutenberg eBook of The Life of
That Wonderful and Extraordinarily Heavy
Man, Daniel Lambert
This ebook is for the use of anyone anywhere in the United States
and most other parts of the world at no cost and with almost no
restrictions whatsoever. You may copy it, give it away or re-use it
under the terms of the Project Gutenberg License included with this
ebook or online at www.gutenberg.org. If you are not located in the
United States, you will have to check the laws of the country where
you are located before using this eBook.
Author: Anonymous
Language: English
LIFE
OF
HEAVY MAN,
DANIEL LAMBERT,
FROM
NEW-YORK:
PUBLISHED BY SAMUEL WOOD & SONS,
NO. 261, PEARL-STREET;
And Samuel S. Wood & Co. No. 212, Market-street,
Baltimore.
1818.
THE
LIFE
OF
Daniel Lambert.
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebooknice.com