(Ebook) Getting Started with Sensors: Measure the World with Electronics, Arduino, and Raspberry Pi by Kimmo Karvinen, Tero Karvinen ISBN 9781449367084, 1449367089 instant download
(Ebook) Getting Started with Sensors: Measure the World with Electronics, Arduino, and Raspberry Pi by Kimmo Karvinen, Tero Karvinen ISBN 9781449367084, 1449367089 instant download
(Ebook) Make: Arduino Bots and Gadgets: Six Embedded Projects with
Open Source Hardware and Software by Tero Karvinen, Kimmo Karvinen
ISBN 1449389716
https://ebooknice.com/product/make-arduino-bots-and-gadgets-six-
embedded-projects-with-open-source-hardware-and-software-2118704
(Ebook) Make: Arduino Bots and Gadgets: Six Embedded Projects with
Open Source Hardware and Software by Tero Karvinen, Kimmo Karvinen
ISBN 9781449389710, 1449389716
https://ebooknice.com/product/make-arduino-bots-and-gadgets-six-
embedded-projects-with-open-source-hardware-and-software-2269498
https://ebooknice.com/product/biota-grow-2c-gather-2c-cook-6661374
https://ebooknice.com/product/make-a-mind-controlled-arduino-robot-
use-your-brain-as-a-remote-37605416
(Ebook) Matematik 5000+ Kurs 2c Lärobok by Lena Alfredsson, Hans
Heikne, Sanna Bodemyr ISBN 9789127456600, 9127456609
https://ebooknice.com/product/matematik-5000-kurs-2c-larobok-23848312
https://ebooknice.com/product/sat-ii-success-
math-1c-and-2c-2002-peterson-s-sat-ii-success-1722018
https://ebooknice.com/product/getting-started-with-python-and-
raspberry-pi-54981210
(Ebook) Master SAT II Math 1c and 2c 4th ed (Arco Master the SAT
Subject Test: Math Levels 1 & 2) by Arco ISBN 9780768923049,
0768923042
https://ebooknice.com/product/master-sat-ii-math-1c-and-2c-4th-ed-
arco-master-the-sat-subject-test-math-levels-1-2-2326094
https://ebooknice.com/product/cambridge-igcse-and-o-level-history-
workbook-2c-depth-study-the-united-states-1919-41-2nd-edition-53538044
Make:
Make:
Sensors/ DIY Projects
Started with
tiny accelerometers, GPS modules, and cameras inside your
smartphone. Thanks to the proliferation of mobile devices,
sensors are now remarkably affordable, meaning you can
Sensors
combine inexpensive sensors and microcontroller boards to
make your own devices.
This fully-illustrated, hands-on book teaches you to connect and
read sensors through a series of short projects. You’ll learn to use
the immensely popular Arduino and Raspberry Pi boards to
process data through simple programs you develop.
Make:
Sensors/ DIY Projects
Started with
tiny accelerometers, GPS modules, and cameras inside your
smartphone. Thanks to the proliferation of mobile devices,
sensors are now remarkably affordable, meaning you can
Sensors
combine inexpensive sensors and microcontroller boards to
make your own devices.
This fully-illustrated, hands-on book teaches you to connect and
read sensors through a series of short projects. You’ll learn to use
the immensely popular Arduino and Raspberry Pi boards to
process data through simple programs you develop.
Published by Maker Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
Maker Media books may be purchased for educational, business, or sales promotional use.
Online editions are also available for most titles (http://my.safaribooksonline.com). For more
information, contact O’Reilly Media’s corporate/institutional sales department:
800-998-9938 or [email protected].
Make:, Maker Shed, and Maker Faire are registered trademarks of Maker Media, Inc. The
Maker Media logo is a trademark of Maker Media, Inc.
Many of the designations used by manufacturers and sellers to distinguish their products
are claimed as trademarks. Where those designations appear in this book, and Maker Media,
Inc. was aware of a trademark claim, the designations have been printed in caps or initial
caps.
While every precaution has been taken in the preparation of this book, the publisher and
authors assume no responsibility for errors or omissions, or for damages resulting from the
use of the information contained herein.
ISBN: 978-1-449-36708-4
[LSI]
Contents
Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii
1/Sensors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Project 1: Photoresistor to Measure Light. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Parts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Build It. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Discussion: Photoresistors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Interactive Sensor Control. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Going Forward. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2/Basic Sensors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Project 2: A Simple Switch. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Parts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Build It. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Troubleshooting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
An LED Needs a Resistor. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Project 3: Buzzer Volume Control. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Parts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Build It. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Troubleshooting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Project 4: Hall Effect. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Parts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Build It. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Troubleshooting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Project 5: Firefly. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Integrated Circuits. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
555 Timer IC. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Light Up an LED When It’s Bright. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Light to Darkness. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Transistors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Fading an LED. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
555 Fading Blink. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
iii
Capacitors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Firefly. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
iv Contents
Hello, Python World. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Project 14: Blink an LED with Python. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Parts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Build the LED Blink Project. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Run the Code. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Project 15: Adjustable Infrared Switch. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Parts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Build the IR Switch Project. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Run the Code. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Voltage Divider. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Analog Resistance Sensors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Project 16: Potentiometer to Measure Rotation. . . . . . . . . . . . . . . . . . . . . . . . . . 77
Parts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Build It. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Install SpiDev. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Allow SPI Without root. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Run the Code. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
Project 17: Photoresistor. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Parts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Build It. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Run the Code. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Playing with Resistance Numbers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Project 18: FlexiForce. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Parts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Build It. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Run the Code. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Project 19: Temperature Measurements (LM35). . . . . . . . . . . . . . . . . . . . . . . . . 86
Parts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Build It. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Run the Code. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
Project 20: Ultrasonic Distance. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Parts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Build It. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
Run the Code. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
Real Time or Fast?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
A/ Troubleshooting Tactics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
Contents v
C/ Setting Up Raspberry Pi. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Index. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
vi Contents
Preface
vii
level, and the focus is really on just getting a sensor safely wired and teaching
some of the basics. The second part of the book deals with how to process
sensor data. You will learn how to easily and quickly write programs with
Arduino to process sensor data, as well as how to wire and program a Rasp-
berry Pi to support analog sensors.
In this book, you’ll gain hands-on experience with some of the most useful
and instructive sensors available. Among the sensors and applications in this
book, you’ll learn how to detect and respond to:
Some well-known sellers of Arduino boards and related parts include Maker
Shed, SparkFun Electronics, Parallax, and Adafruit. All four of these shops
should stock most of the individual sensors used in this book, and all sell
original, high-quality parts. Start with these shops.
Global electronics distributors, like Element14 and RS Components, are
great places to order parts from, too. However, their product lists can be
daunting for beginners to navigate. These global suppliers stock parts that
differ from each other only in the pin format or voltage tolerances, which can
viii Preface
be quite exhaustive. The parts sold from both of these global suppliers are
high quality parts and very well documented.
Some online shops are very cheap, but these places typically do not sell of-
ficial Arduino boards—they will say the product is “compatible.” The sensors
they sell may differ slightly in their pin configuration or even general appear-
ance. At the time of writing, DealExtreme is one of the most popular shops
of this sort. Even though they are based in Hong Kong and Shenzhen and
offer free worldwide shipping, the quality of their parts varies a lot and de-
livery time can be slow. AliExpress is another popular Asian shop.
If you’re ordering from abroad, research your local laws regarding custom
fees. In some countries, small orders may be exempt from customs and
taxes.
Preface ix
You can extract the zip package by double-clicking it, or by right-clicking and
selecting Extract from the pop-up menu.
This book is here to help you get your job done. In general, you may use the
code in this book in your programs and documentation. You do not need to
contact us for permission unless you’re reproducing a significant portion of
the code. For example, writing a program that uses several chunks of code
from this book does not require permission. Selling or distributing a CD-ROM
of examples from Make: books does require permission. Answering a ques-
tion by citing this book and quoting example code does not require permis-
sion. Incorporating a significant amount of example code from this book into
your product’s documentation does require permission.
We appreciate, but do not require, attribution. An attribution usually includes
the title, author, publisher, and ISBN. For example: “Getting Started With
Sensors by Kimmo Karvinen and Tero Karvinen (Maker Media). Copyright
2014, 978-1-4493-6708-4.”
If you feel your use of code examples falls outside fair use or the permission
given here, feel free to contact us at [email protected].
How to Contact Us
Please address comments and questions concerning this book to the pub-
lisher:
Make:
x Preface
1005 Gravenstein Highway North
Sebastopol, CA 95472
800-998-9938 (in the United States or Canada)
707-829-0515 (international or local)
707-829-0104 (fax)
We have a web page for this book, where we list errata, examples, and any
additional information. You can access this page at: http://bit.ly/get-start-
sensors.
To comment or ask technical questions about this book, send email to: book
[email protected]
Acknowledgments
The authors would like to thank Hipsu, Marianna, Nina, and Valtteri.
Preface xi
1/Sensors
1
Figure 1-1. Various sensors: infrared proximity, rotation, brightness, but-
ton, temperature, and distance
What are sensors? Sensors are electrical components that function as input
devices. Not all inputs are explicitly sensors, but almost all inputs use sen-
sors! Consider your computer mouse or trackpad, a keyboard, or even a
webcam; these are not sensors, but they definitely use sensors in their de-
sign. More abstractly, you can frame sensors as a component to measure a
stimulus that is external to the system it is in (its environment). The output
data is based on the measurement. For example, when you type at a key-
board, the letter that appears on your screen (the output) is based on the
measurement (which switch, or key, you pressed on the keyboard). How
many letters appear on screen is based on another measurement (how long
you keep the key pressed).
Figure 1-2. Simple AND connection with buttons, built and designed by a
four-year-old with help from an adult
The first project uses a photoresistor to measure light. Without the photo-
resistor (or similar sensor), there is no way the circuit can know how bright
Sensors 3
The circuit is designed so that an LED is dependent on the photoresistor’s
measurement. Too much resistance and the LED simply will not turn on.
Enough discussion—it’s time to build! Figure 1-4 shows the finished project.
Parts
You need the following parts for this project:
• Photoresistor
• 5 mm red LED (different LEDs will work differently with this circuit; later,
you’ll learn a more sophisticated way to fade LEDs)
• 470 Ω resistor (four-band resistor: yellow-violet-brown; five-band resis-
tor: yellow-violet-black-black; the last band will vary depending on the
resistor’s tolerance)
• Breadboard
• 9 V battery clip
• 9 V battery
2. Look at your LED and determine which lead has a flat side above it on
the colored plastic housing—this indicates the negative lead of the LED
(the negative lead is also the shorter of the two), as shown in
Figure 1-6. LEDs have a certain polarity and putting them in backward
might damage them.
3. Insert the photoresistor so that the negative lead of the LED and one of
the photoresistor leads occupy the same column. The second (positive)
Sensors 5
LED lead should occupy its own column for now. Refer back to Figure 1-5
to see how they should be arranged.
4. Connect the 470 Ω resistor to the column with the positive LED lead and
make sure it’s not the same column that already has the photoresistor
and LED’s negative lead in it. Make sure that the resistor’s other lead is
in a separate column.
5. Attach the black wire from the battery clip to the column that contains
only a photoresistor lead.
6. Insert the red wire from the battery clip to the column that contains only
a resistor lead.
7. Double-check the steps and if everything looks like Figure 1-5, connect
the 9 V battery.
Discussion: Photoresistors
It might not seem like the circuit is doing much. That’s because the light levels
probably have not changed much in your room. Put your finger over the pho-
toresistor and watch the LED closely. Did anything seem to change with the
LED? There should have been some change in the LED brightness. Try adding
more light to the photoresistor. The opposite happened, right? Now that
you’ve seen the photoresistor in action, how would you describe what is going
[Photograph by Anderson.
JULIUS CÆSAR.
There can be little reason for doubt that Antony, who is to play
so important a part in the subsequent pages of this history, saw
Cleopatra in Rome on several occasions. After his reconciliation to
Cæsar in the early summer of B.C. 45, he must have been a constant
visitor at the Dictator’s villa; and, as we shall presently see, his
espousal of Cleopatra’s cause in regard to Cæsar’s will suggests that
her charm had not been overlooked by him. It is said, as we have
seen, that he had met her, and had already been attracted by her,
ten years previously, when he entered Alexandria with Gabinius in
order to establish her father Auletes upon his rickety throne. He was
a man of impulsive and changeable character, and it is difficult to
determine his exact attitude towards Cæsar at this time. While the
Dictator was in Egypt Antony had been placed in charge of his affairs
in Rome, but owing to a quarrel between the two men, Cæsar, on
his return from Alexandria, had dismissed him from his service. Very
naturally Antony had felt considerable animosity to the Dictator on
this account, and it was even rumoured, as has been said, that he
desired to assassinate him. After the Spanish war, however, the
quarrel was forgotten; and, as we have just seen, it was Antony who
had offered him the crown at the festival of the Lupercalia. In spite
of this, Cæsar does not seem to have trusted him fully, although he
now appears to have been recognised as the most ardent supporter
of the Cæsarian party.
Cæsar had never excelled as a judge of men. Although
unquestionably a genius and a man of supreme mental powers, the
Dictator was ever open to flattery; and he collected around him a
number of satellites who had won their way into his favour by
blandishments and by countenance of their master’s many
eccentricities. Balbus and Oppius, Cæsar’s two most intimate
attendants, were men of mediocre standing; and Publius Cornelius
Dolabella, who now comes into some prominence, was a young
adventurer, whose desire for personal gain must have been
concealed with difficulty. This personage, although only five-and-
twenty years of age, had been appointed by Cæsar to the consulship
which would become vacant upon his own departure for the East, a
move that must have given grave offence to Antony; for Dolabella, a
few years previously, had fallen in love with Antony’s wife, Antonia,
who had consequently been divorced, the outraged husband
thereafter finding consolation in the marriage to his present wife
Fulvia. The various favours conferred by Cæsar on this young scamp
must therefore have caused considerable irritation to Antony; and it
is not easy to suppose that the latter’s apparent devotion to the
cause of the Dictator was altogether genuine. Indeed, the rumour
once more passed into circulation that Antony nursed designs upon
Cæsar’s life, this time, strange to say, in conjunction with Dolabella.
On hearing this report the Dictator remarked that he “did not fear
such fat, luxurious men as these two, but rather the pale, lean
fellows.”
Of the latter type was Cassius, a sour, fanatical soldier and
politician, who had fought against Cæsar at Pharsalia, and had been
freely pardoned by him afterwards. From early youth Cassius
entertained a particular hatred of any form of autocracy; and it is
related of him that when at school the boy Faustus, the son of the
famous Sulla, had boasted of his father’s autocratic powers, Cassius
had promptly punched his head. Cæsar’s attempts to obtain the
throne excited this man’s ferocity, and he was probably the
originator of the plot which terminated the Dictator’s life. The plot
was hatched in February B.C. 44, and, when Cassius and his friends
had prevailed upon the influential and studious Marcus Brutus to join
them, it rapidly developed into a widespread conspiracy. “I don’t like
Cassius,” Cæsar was once heard to remark; “he looks so pale. What
can he be aiming at?”
For Brutus, however, the Dictator entertained the greatest
affection and esteem, and there was a time when he regarded him
as his probable successor in office. One cannot view without
distress, even after the passage of so many centuries, the devotion
of the irritable old autocrat to this scholarly and promising young
man who was now plotting against him; for, in spite of his manifold
faults, Cæsar ever remains a character which all men esteem and
with which all must largely sympathise. On one occasion somebody
warned him that Brutus was plotting against him, to which the
Dictator replied, “What, do you think Brutus will not wait out the
appointed time of this little body of mine?” It is probable that Cæsar
thought it not at all unlikely that Brutus was his own son, for his
mother, Servilia, as early as the year of his birth, and for long
afterwards, had been on such terms of intimacy with Cæsar as
would justify this belief. Brutus, on the other hand, thought himself
to be the son of Servilia’s legal husband, and through him claimed
descent from the famous Junius Brutus who had expelled the
Tarquins. Servilia was the sister of Cato, whose suicide had followed
his defeat by Cæsar in North Africa, and Porcia, the wife of Brutus,
was Cato’s daughter. It might have been supposed, therefore, that
Brutus would have felt considerable antipathy towards the Dictator,
more especially after the publication of his venomous Anti-Cato.
There was, however, equally reasonable cause for Brutus to have
sympathised with Cæsar, for his supposed father had been put to
death by Pompey, an execution which Cæsar had, as it were, been
instrumental in avenging. As a matter of fact, Brutus was a young
man who lived upon high principles, as a cow does upon grass; and
such family incidents as the seduction of his mother, or the
destruction of his mother’s brother and his wife’s father, or the
bloodthirsty warfare between his father’s executioner and his father-
in-law’s enemy and calumniator, were not permitted to influence his
righteous brain. In his early years he had, very naturally, refused on
principle to speak to Pompey, but when the civil war broke out he
set aside all those petty feelings of dislike which, in memory of his
legal father, he had entertained towards the Pompeian faction, and,
on principle, he ranged himself upon that side in the conflict,
believing it to be the juster cause. Pompey is said to have been so
surprised at the arrival of this good young man in his camp, whither
nobody had asked him to come, and where nobody particularly
desired his presence, that he stood up and embraced him as though
he were a lost lamb come back to the fold. Then followed the battle
of Pharsalia, and Brutus had been obliged to fly for his life. He need
not, however, have feared for his safety, for Cæsar had given the
strictest orders that nobody was to hurt him either in the battle or in
the subsequent chase of the fugitives. From Larissa, whither he had
fled, he wrote, on principle, to Cæsar, stating that he was prepared
to surrender; and the Dictator, in memory, it is said, of many a
pleasant hour with Servilia, at once pardoned him and heaped
honours upon him. Brutus, then, on principle, laid information
against Pompey, telling Cæsar whither he had fled; and thus it came
about that the Dictator arrived in Egypt on that October morning of
which we have read.
Brutus was an intellectual young man, whose writings and
orations were filled with maxims and pithy axioms. He had, however,
a certain vivacity and fire; and once when Cæsar had listened, a
trifle bewildered, to one of his vigorous speeches, the Dictator was
heard to remark, “I don’t know what this young man means, but,
whatever he means, he means it vehemently.” He believed himself to
be, and indeed was, very firm and just, and he had schooled himself
to resist flattery, ignoring all requests made to him by such means.
He was wont to declare that a man who, in mature years, could not
say “no” to his friends, must have been very badly behaved in the
flower of his youth. Cassius, who was the brother-in-law of Brutus,
deemed it very advisable to introduce this exemplary young man
into the conspiracy, and he therefore invited him, as a preliminary
measure, to be present in the Senate on the Calends of March, when
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade
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