100% found this document useful (2 votes)
48 views

Download Full Essentials of Arduino™ Boards Programming: Step-by-Step Guide to Master Arduino Boards Hardware and Software 1st Edition Farzin Asadi PDF All Chapters

Hardware

Uploaded by

gaubaremiefj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
48 views

Download Full Essentials of Arduino™ Boards Programming: Step-by-Step Guide to Master Arduino Boards Hardware and Software 1st Edition Farzin Asadi PDF All Chapters

Hardware

Uploaded by

gaubaremiefj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 29

Get ebook downloads in full at ebookmeta.

com

Essentials of Arduino™ Boards Programming: Step-


by-Step Guide to Master Arduino Boards Hardware
and Software 1st Edition Farzin Asadi

https://ebookmeta.com/product/essentials-of-arduino-boards-
programming-step-by-step-guide-to-master-arduino-boards-
hardware-and-software-1st-edition-farzin-asadi/

OR CLICK BUTTON

DOWNLOAD NOW

Explore and download more ebook at https://ebookmeta.com


Maker Innovations Series
Jump start your path to discovery with the Apress Maker Innovations
series! From the basics of electricity and components through to the most
advanced options in robotics and Machine Learning, you’ll forge a path to
building ingenious hardware and controlling it with cutting-edge software.
All while gaining new skills and experience with common toolsets you can
take to new projects or even into a whole new career.
The Apress Maker Innovations series offers projects-based learning,
while keeping theory and best processes front and center. So you get
hands-on experience while also learning the terms of the trade and how
entrepreneurs, inventors, and engineers think through creating and
executing hardware projects. You can learn to design circuits, program AI,
create IoT systems for your home or even city, and so much more!
Whether you’re a beginning hobbyist or a seasoned entrepreneur
working out of your basement or garage, you’ll scale up your skillset to
become a hardware design and engineering pro. And often using low-
cost and open-source software such as the Raspberry Pi, Arduino, PIC
microcontroller, and Robot Operating System (ROS). Programmers and
software engineers have great opportunities to learn, too, as many projects
and control environments are based in popular languages and operating
systems, such as Python and Linux.
If you want to build a robot, set up a smart home, tackle assembling a
weather-ready meteorology system, or create a brand-new circuit using
breadboards and circuit design software, this series has all that and more!
Written by creative and seasoned Makers, every book in the series tackles
both tested and leading-edge approaches and technologies for bringing
your visions and projects to life.​

More information about this series at https://link.springer.com/


bookseries/17311
Essentials of
Arduino™ Boards
Programming
Step-by-Step Guide to Master
Arduino Boards Hardware
and Software

Farzin Asadi
Essentials of Arduino™ Boards Programming: Step-by-Step Guide to Master
Arduino Boards Hardware and Software
Farzin Asadi
Department of Electrical and Electronics Engineering, Maltepe University,
Istanbul, Türkiye
ISBN-13 (pbk): 978-1-4842-9599-1 ISBN-13 (electronic): 978-1-4842-9600-4
https://doi.org/10.1007/978-1-4842-9600-4
Copyright © 2023 by Farzin Asadi
This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or
part of the material is concerned, specifically the rights of translation, reprinting, reuse of
illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way,
and transmission or information storage and retrieval, electronic adaptation, computer software,
or by similar or dissimilar methodology now known or hereafter developed.
Trademarked names, logos, and images may appear in this book. Rather than use a trademark
symbol with every occurrence of a trademarked name, logo, or image we use the names, logos,
and images only in an editorial fashion and to the benefit of the trademark owner, with no
intention of infringement of the trademark.
The use in this publication of trade names, trademarks, service marks, and similar terms, even if
they are not identified as such, is not to be taken as an expression of opinion as to whether or not
they are subject to proprietary rights.
While the advice and information in this book are believed to be true and accurate at the date of
publication, neither the authors nor the editors nor the publisher can accept any legal
responsibility for any errors or omissions that may be made. The publisher makes no warranty,
express or implied, with respect to the material contained herein.
Managing Director, Apress Media LLC: Welmoed Spahr
Acquisitions Editor: Miriam Haidara
Development Editor: James Markham
Coordinating Editor: Jessica Vakili
Cover image designed by eStudioCalamar
Distributed to the book trade worldwide by Apress Media, LLC, 1 New York Plaza, New York, NY
10004, U.S.A. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail [email protected],
or visit www.springeronline.com. Apress Media, LLC is a California LLC and the sole member
(owner) is Springer Science + Business Media Finance Inc (SSBM Finance Inc). SSBM Finance
Inc is a Delaware corporation.
For information on translations, please e-mail [email protected]; for
reprint, paperback, or audio rights, please e-mail [email protected].
Apress titles may be purchased in bulk for academic, corporate, or promotional use. eBook
versions and licenses are also available for most titles. For more information, reference our Print
and eBook Bulk Sales web page at http://www.apress.com/bulk-sales.
Any source code or other supplementary material referenced by the author in this book is
available to readers on GitHub (https://github.com/Apress). For more detailed information,
please visit http://www.apress.com/source-code.
Paper in this product is recyclable
Dedicated to my lovely brother, Farzad, and my lovely
sisters, Farnaz and Farzaneh.
Table of Contents
About the Author�������������������������������������������������������������������������������xiii

About the Technical Reviewer������������������������������������������������������������xv

Introduction��������������������������������������������������������������������������������������xvii

Chapter 1: Introduction to Arduino Boards����������������������������������������� 1


1.1 Introduction��������������������������������������������������������������������������������������������������� 1
1.2 Microcontrollers�������������������������������������������������������������������������������������������� 2
1.3 Elements of a Microcontroller����������������������������������������������������������������������� 4
1.4 Difference Between Microcontroller and Microprocessor���������������������������� 6
1.5 Arduino Boards���������������������������������������������������������������������������������������������� 6
1.6 Programming the Arduino Boards���������������������������������������������������������������� 11
1.7 Downloading the Arduino IDE����������������������������������������������������������������������� 13
1.8 HEX File�������������������������������������������������������������������������������������������������������� 13
1.9 Uploading a Program onto the Arduino Board���������������������������������������������� 21
1.10 Power Supply for the Arduino Board���������������������������������������������������������� 24
1.11 Ready-to-Use Examples����������������������������������������������������������������������������� 26
1.12 Arduino Shields������������������������������������������������������������������������������������������ 28
1.13 Language Reference���������������������������������������������������������������������������������� 31
1.14 References for Further Study��������������������������������������������������������������������� 31

vii
Table of Contents

Chapter 2: Digital Input/Output (I/O)������������������������������������������������� 33


2.1 Introduction�������������������������������������������������������������������������������������������������� 33
2.2 Properties of Pins Configured As Input�������������������������������������������������������� 35
2.3 Pull-Up or Pull-Down Resistors with Pins Configured As Input�������������������� 36
2.4 Properties of Pins Configured As INPUT_PULLUP���������������������������������������� 37
2.5 Properties of Pins Configured As OUTPUT���������������������������������������������������� 38
2.6 Blinking the Onboard LED���������������������������������������������������������������������������� 39
2.7 Delay Generation with the millis Function��������������������������������������������������� 42
2.8 Measurement of Time Used to Run the Commands������������������������������������� 43
2.9 Delay in the Range of Microseconds������������������������������������������������������������ 46
2.10 Blink Two LEDs������������������������������������������������������������������������������������������� 47
2.11 RGB LED����������������������������������������������������������������������������������������������������� 50
2.12 One-Digit Decimal Counter������������������������������������������������������������������������ 55
2.13 Binary Counter������������������������������������������������������������������������������������������� 65
2.14 Binary Counter with 74LS595 Shift Register���������������������������������������������� 71
2.15 Four-Digit Display��������������������������������������������������������������������������������������� 75
2.16 TM1637 Four-Digit Display������������������������������������������������������������������������� 81
2.17 Reading Digital Data���������������������������������������������������������������������������������� 85
2.18 Internal Pull-Up Resistor���������������������������������������������������������������������������� 87
2.19 Toggle a Pin������������������������������������������������������������������������������������������������ 89
2.20 One-Digit Decimal Counter������������������������������������������������������������������������ 90
2.21 Electronic Dice������������������������������������������������������������������������������������������� 96
2.22 Reading a Keypad�������������������������������������������������������������������������������������101
2.23 Simple Calculator��������������������������������������������������������������������������������������104
2.24 Simple Digital Lock�����������������������������������������������������������������������������������109
2.25 Switch Bouncing and How to Avoid It�������������������������������������������������������112
2.26 Implementation of Logic Functions�����������������������������������������������������������113

viii
Table of Contents

2.27 Bit Shift Operators�������������������������������������������������������������������������������������117


2.28 Logical Bitwise Operations�����������������������������������������������������������������������118
2.29 Setting and Clearing a Specific Bit�����������������������������������������������������������120
2.30 Control a Buzzer with Arduino�������������������������������������������������������������������122
2.31 Control a Relay with Arduino���������������������������������������������������������������������123
2.32 References for Further Study��������������������������������������������������������������������126

Chapter 3: Analog-to-Digital Converter (ADC) and


Digital-to-Analog Converter (DAC)����������������������������������������������������127
3.1 Introduction�������������������������������������������������������������������������������������������������127
3.2 Protection of ADC����������������������������������������������������������������������������������������129
3.3 Simple DC Voltmeter�����������������������������������������������������������������������������������132
3.4 Serial Plotter�����������������������������������������������������������������������������������������������134
3.5 AREF Pin������������������������������������������������������������������������������������������������������137
3.6 Speed of Conversion�����������������������������������������������������������������������������������139
3.7 Voltage Level Indicator��������������������������������������������������������������������������������141
3.8 Measurement of Negative Voltages������������������������������������������������������������145
3.9 Measurement of Current Signals����������������������������������������������������������������147
3.10 External ADC and DAC�������������������������������������������������������������������������������150
3.11 PCF8591 As ADC���������������������������������������������������������������������������������������152
3.12 PCF8591 As DAC���������������������������������������������������������������������������������������155
3.13 References for Further Study��������������������������������������������������������������������159

Chapter 4: LCD and EEPROM�������������������������������������������������������������161


4.1 Introduction�������������������������������������������������������������������������������������������������161
4.2 Showing Text on Parallel LCD����������������������������������������������������������������������165
4.3 Showing Text on I2C Serial LCD������������������������������������������������������������������167
4.4 Internal EEPROM�����������������������������������������������������������������������������������������168

ix
Table of Contents

4.5 get( ) and put( ) Commands�������������������������������������������������������������������������170


4.6 External EEPROM����������������������������������������������������������������������������������������172
4.7 Writing and Reading Integer Numbers to the External EEPROM�����������������174
4.8 Writing and Reading Structures to the External EEPROM���������������������������175
4.9 References for Further Study����������������������������������������������������������������������177

Chapter 5: Serial Communication�����������������������������������������������������179


5.1 Introduction�������������������������������������������������������������������������������������������������179
5.2 Observing the Data Transfer with an Oscilloscope�������������������������������������184
5.3 Sending a String to a Computer������������������������������������������������������������������186
5.4 Receiving a String from a Computer�����������������������������������������������������������187
5.5 Receiving Floating-Point Numbers�������������������������������������������������������������188
5.6 Receiving Integer Numbers�������������������������������������������������������������������������190
5.7 Printing the Quotation Mark������������������������������������������������������������������������192
5.8 Printing Binary and Hexadecimal Numbers������������������������������������������������192
5.9 Useful Functions for String Variables����������������������������������������������������������193
5.10 Useful Functions for Character Variables��������������������������������������������������196
5.11 References for Further Study��������������������������������������������������������������������199

Chapter 6: Mathematical Functions�������������������������������������������������201


6.1 Introduction�������������������������������������������������������������������������������������������������201
6.2 Basic Mathematical Function����������������������������������������������������������������������201
6.3 Overflow of Variables����������������������������������������������������������������������������������205
6.4 E Notation���������������������������������������������������������������������������������������������������206
6.5 Map Function����������������������������������������������������������������������������������������������207
6.6 sizeof Operator��������������������������������������������������������������������������������������������209
6.7 Defining Binary and Hexadecimal Variables�����������������������������������������������211
6.8 References for Further Study����������������������������������������������������������������������212

x
Table of Contents

Chapter 7: Pulse Width Modulation (PWM)���������������������������������������213


7.1 Introduction�������������������������������������������������������������������������������������������������213
7.2 PWM Generation on Pin 9���������������������������������������������������������������������������215
7.3 PWM Generation on Pin 5���������������������������������������������������������������������������216
7.4 Duty Cycle Control with Potentiometer�������������������������������������������������������217
7.5 Control the Intensity of an LED��������������������������������������������������������������������219
7.6 Change the Frequency of the PWM Signal��������������������������������������������������222
7.7 References for Further Study����������������������������������������������������������������������224

Chapter 8: Control of Different Types of Motors�������������������������������225


8.1 Introduction�������������������������������������������������������������������������������������������������225
8.2 Control of Servo Motor��������������������������������������������������������������������������������225
8.3 Control of BLDC�������������������������������������������������������������������������������������������228
8.4 Control of Stepper motor with A4988 Driver�����������������������������������������������229
8.5 Control of 28BYJ-48 5V Stepper motor�������������������������������������������������������233
8.6 Control of DC Motor�������������������������������������������������������������������������������������236
8.7 Reading an Encoder������������������������������������������������������������������������������������241
8.8 Control of Servo Motor with Encoder����������������������������������������������������������245
8.9 References for Further Study����������������������������������������������������������������������247

Chapter 9: Interrupts and Internal Comparator��������������������������������249


9.1 Introduction�������������������������������������������������������������������������������������������������249
9.2 Simple Frequency Meter�����������������������������������������������������������������������������250
9.3 Improved Simple Frequency Meter�������������������������������������������������������������253
9.4 Frequency Measurement with the FreqCount Library���������������������������������255
9.5 pulseIn Command���������������������������������������������������������������������������������������256
9.6 Triggering an Interrupt with a Push Button�������������������������������������������������257
9.7 Triggering an Interrupt with Level���������������������������������������������������������������259

xi
Table of Contents

9.8 Comparator Interrupt����������������������������������������������������������������������������������261


9.9 Important Registers of the Internal Analog Comparator�����������������������������264
9.10 Example Code for the Internal Comparator�����������������������������������������������268
9.11 Pin Change Interrupt���������������������������������������������������������������������������������281
9.12 References for Further Study��������������������������������������������������������������������286

Chapter 10: Timers���������������������������������������������������������������������������289


10.1 Introduction�����������������������������������������������������������������������������������������������289
10.2 Clear Timer on Compare Match (CTC) Mode���������������������������������������������290
10.3 Timer 1 in CTC Mode���������������������������������������������������������������������������������299
10.4 Timer 2 in CTC Mode���������������������������������������������������������������������������������304
10.5 References for Further Study��������������������������������������������������������������������308

Chapter 11: Reading Different Sensors with Arduino�����������������������309


11.1 Introduction�����������������������������������������������������������������������������������������������309
11.2 DHT11 Temperature Sensor����������������������������������������������������������������������309
11.3 HCSR04 Ultrasonic Sensor������������������������������������������������������������������������311
11.4 YL69 Soil Moisture Sensor������������������������������������������������������������������������313
11.5 References for Further Study��������������������������������������������������������������������315

Appendix A: Testing the Components�����������������������������������������������317

Index�������������������������������������������������������������������������������������������������327

xii
About the Author
Farzin Asadi received his BSc in Electronics
Engineering, MSc in Control Engineering, and
PhD in Mechatronics Engineering.
Currently, he is with the Department of
Electrical and Electronics Engineering at
Maltepe University, Istanbul, Turkey.
Dr. Asadi has published more than 40 papers
in ISI/Scopus indexed journals. He has written 25
books. His research interests include switching
converters, control theory, robust control of
power electronics converters, and robotics.

xiii
About the Technical Reviewer
Hai Van Pham received his BSc, MSc, and PhD
in Computer Science.
Currently, he is with the School of
Information and Communication Technology,
Hanoi University of Science and Technology,
Hanoi, Vietnam.
Dr. Pham has published over 100 papers in
ISI/Scopus indexed journals. He is an associate
editor in domestic and international journals
and served as chair and technical committee
member of many national and international
conferences including SOICT 2014, KSE 2015, KSE 2017, KSE 2019, KSE
2021, and KSE 2022.
His research interests include artificial intelligence, knowledge-based
systems, big data, soft computing, rule-based systems, and fuzzy systems.

xv
Introduction
Arduino is an open source hardware and software company, project,
and user community that designs and manufactures single-board
microcontrollers and microcontroller kits for building digital devices.
Arduino boards use a variety of microcontrollers, and each board is
suitable for a specific application. For instance, Arduino Nano or Pro Mini
is an ideal option if space or weight is important for you. If you search for
a board with many input/output (I/O) pins, then Arduino MEGA is a good
option for you. If you need an Arduino board for a time-critical application
like a robot control, then Arduino DUE is a good choice. Arduino UNO is a
good option for educational purposes. All of the examples in this book are
done with Arduino UNO.
There exist many other development boards in the world, but why are
Arduino boards so famous with millions of users? Here are some of the
basic reasons that make Arduino boards outstanding:

1) Arduino has an official free of charge Integrated


Development Environment (IDE) to make coding
easier, especially for beginners. The Arduino IDE
has a minimalist interface, making it simple to write,
compile, and upload the code to the Arduino board.
It is a versatile software compatible with Windows,
Linux, and macOS.

2) The Arduino IDE is also preloaded with a broad


library of codes that users can use, modify, or
practice. Users can use these codes instead of
coding from scratch or can modify the codes for

xvii
Other documents randomly have
different content
*** END OF THE PROJECT GUTENBERG EBOOK TEN YEARS IN
BURMA ***

Updated editions will replace the previous one—the old editions


will be renamed.

Creating the works from print editions not protected by U.S.


copyright law means that no one owns a United States copyright
in these works, so the Foundation (and you!) can copy and
distribute it in the United States without permission and without
paying copyright royalties. Special rules, set forth in the General
Terms of Use part of this license, apply to copying and
distributing Project Gutenberg™ electronic works to protect the
PROJECT GUTENBERG™ concept and trademark. Project
Gutenberg is a registered trademark, and may not be used if
you charge for an eBook, except by following the terms of the
trademark license, including paying royalties for use of the
Project Gutenberg trademark. If you do not charge anything for
copies of this eBook, complying with the trademark license is
very easy. You may use this eBook for nearly any purpose such
as creation of derivative works, reports, performances and
research. Project Gutenberg eBooks may be modified and
printed and given away—you may do practically ANYTHING in
the United States with eBooks not protected by U.S. copyright
law. Redistribution is subject to the trademark license, especially
commercial redistribution.

START: FULL LICENSE


THE FULL PROJECT GUTENBERG LICENSE
PLEASE READ THIS BEFORE YOU DISTRIBUTE OR USE THIS WORK

To protect the Project Gutenberg™ mission of promoting the


free distribution of electronic works, by using or distributing this
work (or any other work associated in any way with the phrase
“Project Gutenberg”), you agree to comply with all the terms of
the Full Project Gutenberg™ License available with this file or
online at www.gutenberg.org/license.

Section 1. General Terms of Use and


Redistributing Project Gutenberg™
electronic works
1.A. By reading or using any part of this Project Gutenberg™
electronic work, you indicate that you have read, understand,
agree to and accept all the terms of this license and intellectual
property (trademark/copyright) agreement. If you do not agree to
abide by all the terms of this agreement, you must cease using
and return or destroy all copies of Project Gutenberg™
electronic works in your possession. If you paid a fee for
obtaining a copy of or access to a Project Gutenberg™
electronic work and you do not agree to be bound by the terms
of this agreement, you may obtain a refund from the person or
entity to whom you paid the fee as set forth in paragraph 1.E.8.

1.B. “Project Gutenberg” is a registered trademark. It may only


be used on or associated in any way with an electronic work by
people who agree to be bound by the terms of this agreement.
There are a few things that you can do with most Project
Gutenberg™ electronic works even without complying with the
full terms of this agreement. See paragraph 1.C below. There
are a lot of things you can do with Project Gutenberg™
electronic works if you follow the terms of this agreement and
help preserve free future access to Project Gutenberg™
electronic works. See paragraph 1.E below.
1.C. The Project Gutenberg Literary Archive Foundation (“the
Foundation” or PGLAF), owns a compilation copyright in the
collection of Project Gutenberg™ electronic works. Nearly all the
individual works in the collection are in the public domain in the
United States. If an individual work is unprotected by copyright
law in the United States and you are located in the United
States, we do not claim a right to prevent you from copying,
distributing, performing, displaying or creating derivative works
based on the work as long as all references to Project
Gutenberg are removed. Of course, we hope that you will
support the Project Gutenberg™ mission of promoting free
access to electronic works by freely sharing Project
Gutenberg™ works in compliance with the terms of this
agreement for keeping the Project Gutenberg™ name
associated with the work. You can easily comply with the terms
of this agreement by keeping this work in the same format with
its attached full Project Gutenberg™ License when you share it
without charge with others.

1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside
the United States, check the laws of your country in addition to
the terms of this agreement before downloading, copying,
displaying, performing, distributing or creating derivative works
based on this work or any other Project Gutenberg™ work. The
Foundation makes no representations concerning the copyright
status of any work in any country other than the United States.

1.E. Unless you have removed all references to Project


Gutenberg:

1.E.1. The following sentence, with active links to, or other


immediate access to, the full Project Gutenberg™ License must
appear prominently whenever any copy of a Project
Gutenberg™ work (any work on which the phrase “Project
Gutenberg” appears, or with which the phrase “Project
Gutenberg” is associated) is accessed, displayed, performed,
viewed, copied or distributed:

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.

1.E.2. If an individual Project Gutenberg™ electronic work is


derived from texts not protected by U.S. copyright law (does not
contain a notice indicating that it is posted with permission of the
copyright holder), the work can be copied and distributed to
anyone in the United States without paying any fees or charges.
If you are redistributing or providing access to a work with the
phrase “Project Gutenberg” associated with or appearing on the
work, you must comply either with the requirements of
paragraphs 1.E.1 through 1.E.7 or obtain permission for the use
of the work and the Project Gutenberg™ trademark as set forth
in paragraphs 1.E.8 or 1.E.9.

1.E.3. If an individual Project Gutenberg™ electronic work is


posted with the permission of the copyright holder, your use and
distribution must comply with both paragraphs 1.E.1 through
1.E.7 and any additional terms imposed by the copyright holder.
Additional terms will be linked to the Project Gutenberg™
License for all works posted with the permission of the copyright
holder found at the beginning of this work.

1.E.4. Do not unlink or detach or remove the full Project


Gutenberg™ License terms from this work, or any files
containing a part of this work or any other work associated with
Project Gutenberg™.
1.E.5. Do not copy, display, perform, distribute or redistribute
this electronic work, or any part of this electronic work, without
prominently displaying the sentence set forth in paragraph 1.E.1
with active links or immediate access to the full terms of the
Project Gutenberg™ License.

1.E.6. You may convert to and distribute this work in any binary,
compressed, marked up, nonproprietary or proprietary form,
including any word processing or hypertext form. However, if
you provide access to or distribute copies of a Project
Gutenberg™ work in a format other than “Plain Vanilla ASCII” or
other format used in the official version posted on the official
Project Gutenberg™ website (www.gutenberg.org), you must, at
no additional cost, fee or expense to the user, provide a copy, a
means of exporting a copy, or a means of obtaining a copy upon
request, of the work in its original “Plain Vanilla ASCII” or other
form. Any alternate format must include the full Project
Gutenberg™ License as specified in paragraph 1.E.1.

1.E.7. Do not charge a fee for access to, viewing, displaying,


performing, copying or distributing any Project Gutenberg™
works unless you comply with paragraph 1.E.8 or 1.E.9.

1.E.8. You may charge a reasonable fee for copies of or


providing access to or distributing Project Gutenberg™
electronic works provided that:

• You pay a royalty fee of 20% of the gross profits you derive from
the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information
about donations to the Project Gutenberg Literary Archive
Foundation.”

• You provide a full refund of any money paid by a user who


notifies you in writing (or by e-mail) within 30 days of receipt that
s/he does not agree to the terms of the full Project Gutenberg™
License. You must require such a user to return or destroy all
copies of the works possessed in a physical medium and
discontinue all use of and all access to other copies of Project
Gutenberg™ works.

• You provide, in accordance with paragraph 1.F.3, a full refund of


any money paid for a work or a replacement copy, if a defect in
the electronic work is discovered and reported to you within 90
days of receipt of the work.

• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.

1.E.9. If you wish to charge a fee or distribute a Project


Gutenberg™ electronic work or group of works on different
terms than are set forth in this agreement, you must obtain
permission in writing from the Project Gutenberg Literary
Archive Foundation, the manager of the Project Gutenberg™
trademark. Contact the Foundation as set forth in Section 3
below.

1.F.

1.F.1. Project Gutenberg volunteers and employees expend


considerable effort to identify, do copyright research on,
transcribe and proofread works not protected by U.S. copyright
law in creating the Project Gutenberg™ collection. Despite
these efforts, Project Gutenberg™ electronic works, and the
medium on which they may be stored, may contain “Defects,”
such as, but not limited to, incomplete, inaccurate or corrupt
data, transcription errors, a copyright or other intellectual
property infringement, a defective or damaged disk or other
medium, a computer virus, or computer codes that damage or
cannot be read by your equipment.

1.F.2. LIMITED WARRANTY, DISCLAIMER OF DAMAGES -


Except for the “Right of Replacement or Refund” described in
paragraph 1.F.3, the Project Gutenberg Literary Archive
Foundation, the owner of the Project Gutenberg™ trademark,
and any other party distributing a Project Gutenberg™ electronic
work under this agreement, disclaim all liability to you for
damages, costs and expenses, including legal fees. YOU
AGREE THAT YOU HAVE NO REMEDIES FOR NEGLIGENCE,
STRICT LIABILITY, BREACH OF WARRANTY OR BREACH
OF CONTRACT EXCEPT THOSE PROVIDED IN PARAGRAPH
1.F.3. YOU AGREE THAT THE FOUNDATION, THE
TRADEMARK OWNER, AND ANY DISTRIBUTOR UNDER
THIS AGREEMENT WILL NOT BE LIABLE TO YOU FOR
ACTUAL, DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE
OR INCIDENTAL DAMAGES EVEN IF YOU GIVE NOTICE OF
THE POSSIBILITY OF SUCH DAMAGE.

1.F.3. LIMITED RIGHT OF REPLACEMENT OR REFUND - If


you discover a defect in this electronic work within 90 days of
receiving it, you can receive a refund of the money (if any) you
paid for it by sending a written explanation to the person you
received the work from. If you received the work on a physical
medium, you must return the medium with your written
explanation. The person or entity that provided you with the
defective work may elect to provide a replacement copy in lieu
of a refund. If you received the work electronically, the person or
entity providing it to you may choose to give you a second
opportunity to receive the work electronically in lieu of a refund.
If the second copy is also defective, you may demand a refund
in writing without further opportunities to fix the problem.

1.F.4. Except for the limited right of replacement or refund set


forth in paragraph 1.F.3, this work is provided to you ‘AS-IS’,
WITH NO OTHER WARRANTIES OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO
WARRANTIES OF MERCHANTABILITY OR FITNESS FOR
ANY PURPOSE.

1.F.5. Some states do not allow disclaimers of certain implied


warranties or the exclusion or limitation of certain types of
damages. If any disclaimer or limitation set forth in this
agreement violates the law of the state applicable to this
agreement, the agreement shall be interpreted to make the
maximum disclaimer or limitation permitted by the applicable
state law. The invalidity or unenforceability of any provision of
this agreement shall not void the remaining provisions.

1.F.6. INDEMNITY - You agree to indemnify and hold the


Foundation, the trademark owner, any agent or employee of the
Foundation, anyone providing copies of Project Gutenberg™
electronic works in accordance with this agreement, and any
volunteers associated with the production, promotion and
distribution of Project Gutenberg™ electronic works, harmless
from all liability, costs and expenses, including legal fees, that
arise directly or indirectly from any of the following which you do
or cause to occur: (a) distribution of this or any Project
Gutenberg™ work, (b) alteration, modification, or additions or
deletions to any Project Gutenberg™ work, and (c) any Defect
you cause.

Section 2. Information about the Mission of


Project Gutenberg™
Project Gutenberg™ is synonymous with the free distribution of
electronic works in formats readable by the widest variety of
computers including obsolete, old, middle-aged and new
computers. It exists because of the efforts of hundreds of
volunteers and donations from people in all walks of life.

Volunteers and financial support to provide volunteers with the


assistance they need are critical to reaching Project
Gutenberg™’s goals and ensuring that the Project Gutenberg™
collection will remain freely available for generations to come. In
2001, the Project Gutenberg Literary Archive Foundation was
created to provide a secure and permanent future for Project
Gutenberg™ and future generations. To learn more about the
Project Gutenberg Literary Archive Foundation and how your
efforts and donations can help, see Sections 3 and 4 and the
Foundation information page at www.gutenberg.org.

Section 3. Information about the Project


Gutenberg Literary Archive Foundation
The Project Gutenberg Literary Archive Foundation is a non-
profit 501(c)(3) educational corporation organized under the
laws of the state of Mississippi and granted tax exempt status by
the Internal Revenue Service. The Foundation’s EIN or federal
tax identification number is 64-6221541. Contributions to the
Project Gutenberg Literary Archive Foundation are tax
deductible to the full extent permitted by U.S. federal laws and
your state’s laws.

The Foundation’s business office is located at 809 North 1500


West, Salt Lake City, UT 84116, (801) 596-1887. Email contact
links and up to date contact information can be found at the
Foundation’s website and official page at
www.gutenberg.org/contact

Section 4. Information about Donations to


the Project Gutenberg Literary Archive
Foundation
Project Gutenberg™ depends upon and cannot survive without
widespread public support and donations to carry out its mission
of increasing the number of public domain and licensed works
that can be freely distributed in machine-readable form
accessible by the widest array of equipment including outdated
equipment. Many small donations ($1 to $5,000) are particularly
important to maintaining tax exempt status with the IRS.

The Foundation is committed to complying with the laws


regulating charities and charitable donations in all 50 states of
the United States. Compliance requirements are not uniform
and it takes a considerable effort, much paperwork and many
fees to meet and keep up with these requirements. We do not
solicit donations in locations where we have not received written
confirmation of compliance. To SEND DONATIONS or
determine the status of compliance for any particular state visit
www.gutenberg.org/donate.

While we cannot and do not solicit contributions from states


where we have not met the solicitation requirements, we know
of no prohibition against accepting unsolicited donations from
donors in such states who approach us with offers to donate.

International donations are gratefully accepted, but we cannot


make any statements concerning tax treatment of donations
received from outside the United States. U.S. laws alone swamp
our small staff.

Please check the Project Gutenberg web pages for current


donation methods and addresses. Donations are accepted in a
number of other ways including checks, online payments and
credit card donations. To donate, please visit:
www.gutenberg.org/donate.

Section 5. General Information About Project


Gutenberg™ electronic works
Professor Michael S. Hart was the originator of the Project
Gutenberg™ concept of a library of electronic works that could
be freely shared with anyone. For forty years, he produced and
distributed Project Gutenberg™ eBooks with only a loose
network of volunteer support.

Project Gutenberg™ eBooks are often created from several


printed editions, all of which are confirmed as not protected by
copyright in the U.S. unless a copyright notice is included. Thus,
we do not necessarily keep eBooks in compliance with any
particular paper edition.

Most people start at our website which has the main PG search
facility: www.gutenberg.org.

This website includes information about Project Gutenberg™,


including how to make donations to the Project Gutenberg
Literary Archive Foundation, how to help produce our new
eBooks, and how to subscribe to our email newsletter to hear
about new eBooks.

You might also like