Full download IoT Machine Learning Applications in Telecom, Energy, and Agriculture: With Raspberry Pi and Arduino Using Python 1st Edition Puneet Mathur pdf docx
Full download IoT Machine Learning Applications in Telecom, Energy, and Agriculture: With Raspberry Pi and Arduino Using Python 1st Edition Puneet Mathur pdf docx
com
https://ebookmeta.com/product/iot-machine-learning-
applications-in-telecom-energy-and-agriculture-with-
raspberry-pi-and-arduino-using-python-1st-edition-puneet-
mathur/
OR CLICK HERE
DOWLOAD NOW
https://ebookmeta.com/product/beginning-robotics-with-raspberry-pi-
and-arduino-using-python-and-opencv-pdfdrive-com-1st-edition-jeff-
cicolani/
ebookmeta.com
https://ebookmeta.com/product/a-hands-on-course-in-sensors-using-the-
arduino-and-raspberry-pi-2nd-edition-volker-ziemann/
ebookmeta.com
https://ebookmeta.com/product/easy-croquette-cookbook-50-delicious-
croquette-recipes-2nd-edition-booksumo-press/
ebookmeta.com
The One Minute Workout Science Shows a Way to Get Fit That
s Smarter Faster Shorter 1st Edition Martin Gibala
Christopher Shulgan
https://ebookmeta.com/product/the-one-minute-workout-science-shows-a-
way-to-get-fit-that-s-smarter-faster-shorter-1st-edition-martin-
gibala-christopher-shulgan/
ebookmeta.com
https://ebookmeta.com/product/the-king-is-dead-1st-edition-benjamin-
dean/
ebookmeta.com
https://ebookmeta.com/product/analog-to-digital-conversion-4th-
edition-marcel-j-m-pelgrom/
ebookmeta.com
https://ebookmeta.com/product/frostbite-royal-claws-book-2-1st-
edition-milly-taiden/
ebookmeta.com
Julia for Data Analysis - MEAP Version 7 Bogumi■ Kami■ski
https://ebookmeta.com/product/julia-for-data-analysis-meap-
version-7-bogumil-kaminski/
ebookmeta.com
IoT Machine Learning
Applications in
Telecom, Energy, and
Agriculture
With Raspberry Pi and Arduino
Using Python
—
Puneet Mathur
www.allitebooks.com
IoT Machine Learning
Applications in
Telecom, Energy, and
Agriculture
With Raspberry Pi and Arduino
Using Python
Puneet Mathur
www.allitebooks.com
IoT Machine Learning Applications in Telecom, Energy, and Agriculture
Puneet Mathur
Bangalore, Karnataka, India
www.allitebooks.com
This book is dedicated to the Supreme Divine Mother.
www.allitebooks.com
Table of Contents
About the Author���������������������������������������������������������������������������������ix
www.allitebooks.com
Table of Contents
vi
Table of Contents
vii
Table of Contents
Index�������������������������������������������������������������������������������������������������273
viii
About the Author
Puneet Mathur is an author, AI consultant,
and speaker with over 20 years of corporate
IT industry experience. He has risen from a
programmer to a third-line manager working
with multinationals like HP, IBM, and Dell
at various levels. For several years he has
been working as an AI consultant through his
company, Boolbrite International, for clients
around the globe, guiding and mentoring
client teams stuck with AI and machine
learning problems. He is a regular speaker at international conferences.
He is also an Udemy Instructor with several courses on machine learning.
His latest bestselling book, Machine Learning Applications Using Python
(Apress), is for those machine learning professionals who want to advance
their career by gaining experiential knowledge from an AI expert. His other
hot books include The Predictive Project Manager, The Predictive Program
Manager, Prediction Secrets, and Good Money Bad Money. You can read
more about him on his website at www.PMAuthor.com.
ix
About the Technical Reviewer
Abhishek Nandy has a B.Tech in IT and is a
constant learner. He is a Microsoft MVP for
the Windows platform, an Intel Black Belt
Developer, and an Intel Software Innovator;
he has a keen interest in AI, IoT, and game
development. He is currently serving as an
application architect in an IT firm. He also
consults on AI and IoT and does projects
with AI, ML, and deep learning. He is
also an AI trainer and drives the technical part of the Intel AI Student
developer program at leading IITs in India. He has showcased a demo
on Reinforcement Learning with Unity at SIGGRAPH 2018 in Vancouver,
Canada. He has won four AI for PC Challenges at Intel. He was involved
in the first Make in India initiative, where he was among the top 50
innovators and got trained in IIMA. He won an Early Innovation Game Dev
grant from Intel; the game got published for Runs Great on Intel.
Link to DevMesh: https://devmesh.intel.com/users/abhishek-nandy
Link to his publication at the Intel Developer Zone: https://software.
intel.com/en-us/user/78014
Link to Medium: https://medium.com/@abhishek.nandy81
xi
Acknowledgments
I acknowledge the various engineers working at telecom companies,
hi-tech agricultural farms, and in the energy sector who came forward to
share information on how their operations needed further improvements
and where AI could help; I used anonymous surveys conducted through
personal and online means. I would also like to thank various company
experts from multinationals like ABB, GE, and others who came forward to
discuss topics related to this book, which needed their suggestions.
All the data in this book is anonymized and is not taken from any
particular company, situation, or source. Any resemblance to actual data is
only a coincidence. The datasets in this book are based on my experience
working with clients and engineers; however, I have taken care to not take
any such data from them and it is completely clean of any plagiarism.
The instruments and sensors including the drone and energy devices
are not sponsored by any company nor did I get any fee or any incentive
of any kind to use one over the other. The choice of all devices and sensors
used in this book is entirely based on my independent judgement and
experience.
xiii
Introduction
In late January of 2019, after attending a conference on IoT, I met a potential
client in Mumbai regarding the use of machine learning in a factory setting.
He wanted to know if machine learning could be used in his environment
and, if so, what kind of business benefit could he look forward to in its
implementation. I discussed a few use cases with him which involved the
use of Industrial Internet of Things (IIoT). In business, there are two types
of strategies: one is revenue growth and the other is cost reduction. If you
are in a business where there is high revenue growth taking place, then
you would not bother much about cost reduction. Your focus would be
to expand your business. However, if you are seeing steady growth for a
number of years and you have stiff competition, then the pressure on you
is to not just to maintain your existing customers but also to reduce cost so
that you can beat the competition. My client was in this mode of business.
Most of the use cases I showed him were of revenue growth, which did not
meet his expectation. However, the use case of doing an energy audit in
his factory using IIoT caught his attention and he explained that he had
a large electricity bill and he wanted me to implement an energy audit
to help reduce cost. His next set of questions involved how much of cost
reduction he could look forward to versus the investment that was needed
to implement the solution. I gave him a small workout with a plan for its
implementation, which was received well within his company, although
we were doing this for the first time in a factory setting.
This book features one of those solutions, although not the complete
one as it would need a separate book to do so. But the solutions in this
book will help you get started in IoT and IIoT using machine learning.
xv
CHAPTER 1
Getting Started:
Necessary Software
and Hardware
This chapter will introduce you to the world of single-board computers
(SBCs). Many of you, hearing this term for the first time, may wonder
what an SBC is and what it is used for. This chapter will explain SBCs and
how they have developed historically. You will also learn about the most
popular SBCs on the market such as Banana Pi, Raspberry Pi, and Arduino.
In an in-depth comparison, I will explain the features of popular SBCs with
regards to USB, storage, networking, and communication.
You will then learn about the Raspberry Pi and more specifically the
Raspberry Pi 3 Model B+ because you are going to use it as a master node
in the IoT and IIoT projects in this book. You will also find an in-depth
explanation of the GPIO (general purpose input/output) pins located on
the Raspberry Pi and their uses. You will then learn about single board
micron rollers (SBMs), which are different from single-board computers.
The single-board microcontrollers in IoT and IIoT applications are
generally used as slaves to the single-board computers like Raspberry Pi.
The most popular single-board microcontroller is the Arduino, and you
will look at the types of SBMs in a detailed tabular format covering their
processors, I/O modules, frequency, voltage, etc.
You will then look at Arduino Mega 2560 and its layout and learn about
its GPIO pins. Next, you will learn about the most important topic of the
book: IoT sensors and their types and applications. You will use some of
them in the case study solutions. Also covered is the topic of drones because
they can be used to collect data for a telecom application. Please note that
flying drones requires a license in most countries and you should comply
before trying to use one for any project. You will also learn about an Modbus
device and how it is used to build a commercial application. Lastly, you will
learn about the software programs that run all of these devices.
Note Python version 3.x is used throughout the book. If you have an
older version of Python, the code examples may not work. You need
Python 3.x or later to be able to run them successfully.
Hardware Requirements
For running the exercises in this book you will need the following hardware:
• Raspberry Pi 3 Model B+
• Range: 5 km
S
ingle-Board Computer
A single-board computer is a completely functional computer set on a
single printed circuit board. What makes this type of computer unique is
that the entire input, output, and processing such as graphics and numeric
calculations all happen on the same board. While a SBC can be built as a
high computing server, a more popular version of this type of computer is a
small and compact machine.
Historically, SBCs were built to be educational and compact; now they
are used in mainstream commercial applications.
Single-board computers are built on different microprocessors but
they are all of a simple design. They are built to be handy and compact.
Running a fast computer that occupies very little space and is stable and
also portable adds to the charm of owning these machines.
One of the early implementations (May, 1976) of single-board
computer was called the Diana micro; it was based on the Intel C8080A
processor and was a very popular home computer as part of the BigBook
series of computers. With the expansion of the PC market, the SBC did
not progress further until now, when the PC has almost been replaced by
tablets, laptops, and mobiles. You can go to https://en.wikipedia.org/
wiki/Single-board_computer for more information.
Some of the advantages of using SBCs are shown in Table 1-1.
3
Chapter 1 Getting Started: Necessary Software and Hardware
4
Table 1-2. Popular Single-Board Computers
Name PCIe USB[2] Storage Networking Communication Generic I/O
2 3 Device On-board Flash SATA Eth. Wi-Fi Bt. I2C SPI GPIO Analog
slots
Raspberry No No No OTG No microSD No No b/g/n 4.1 + Yes Yes 17 No
PiZero W BLE
Chapter 1
5
Getting Started: Necessary Software and Hardware
6
Table 1-2. (continued)
Chapter 1
adapter for
Touch)
Name PCIe USB[2] Storage Networking Communication Generic I/O
2 3 Device On-board Flash SATA Eth. Wi-Fi Bt. I2C SPI GPIO Analog
slots
Chapter 1
7
Getting Started: Necessary Software and Hardware
Chapter 1 Getting Started: Necessary Software and Hardware
As of this writing, the most popular SBCs today are the Raspberry Pi
and Banana Pi. They are equally popular with hobbyists and serious users.
While Raspberry Pi runs OSes like Noobs, Raspbian, and Windows IoT,
Banana Pi run Linux and Android 4.x. Raspberry Pi developed from Model
Zero to the current one, which is 3 Model B+ and, as you can see from
Table 1-2, there have been huge hardware improvements. Raspberry Pi 3
B+ how has an ARM Cortex-A53 1.4GHz CPU, which is an improvement
over the Raspberry Pi 3 B, which had an ARM Cortex-A53 1.2GHz CPU. The
RAM size has not changed; however, there is an enhancement in Wi-Fi,
which now has the capability of up 5GHz transfers. The Ethernet support
has been increased from 100Mbps to 300Mbps. The use of Banana Pi is
preferred by users who have projects that are closely linked with mobile
applications since the operating system is Android which, although built
on Linux, has Android as the kernel for its operations. For the projects in
this book I have chosen Raspberry Pi. The operating system we are going
to use is Raspbian, which is an adaptation of the Debian OS. We are not
using Noobs because we want to make commercial-grade applications on
the SBC and we are not using Windows IoT since we need an OS that has a
desktop and development IDE embedded in it. So the choice of Raspbian
is pretty obvious.
Use Table 1-3 to help you decide which Raspberry Pi to use for your
projects.
8
Table 1-3. Raspberry Pi Technical Specifications
Raspberry Pi RAM Processor USB Ethernet Wi-Fi Bluetooth HDMI Other MicroSD
Platform Video
9
Getting Started: Necessary Software and Hardware
10
Chapter 1
Raspberry Pi RAM Processor USB Ethernet Wi-Fi Bluetooth HDMI Other MicroSD
Platform Video
Raspberry Pi 3 B+ 1GB 1.4 GHz 4 ports 300/Mbps/ 802.11ac 4.2 Yes DSI, Yes
64-bit ARM PoE Composite
Cortex A53
Raspberry Pi Zero 512MB 1 GHz 1 micro - - - Mini- - Yes
single-core USB HDMI
ARM11
Raspberry Pi Zero 512MB 1 GHz 1 micro - 802.11n 4.1 Mini- - Yes
Wireless single-core USB HDMI
ARM11
Getting Started: Necessary Software and Hardware
Chapter 1 Getting Started: Necessary Software and Hardware
In Figure 1-1, you can see that there are a total 40 GPIO pins. They
have a structure and it is important that you understand it in order to use
it. The pins are numbered from 1 to 40 in the diagram. Pin 1 and 17 are for
supplying power output to your device (3.5 volts). Pins 2 and 4 are used for
giving a power output of 5 volts each. Pins numbered 6, 9, 14, 20, 25, 30, 34
11
Chapter 1 Getting Started: Necessary Software and Hardware
and 39 are used for grounding the circuit. The rest of the pins are used for
GPIO. You will be using this information later when you create a complete
circuit for some IoT-based solutions.
Let’s now discuss microcontrollers and how they are used.
Single-Board Microcontrollers
SBMs are microcontrollers built into a single circuit board; they are used
in industrial and commercial applications to interface between industrial
and commercial devices such as ones that use serial bus communication.
They are used in applications to develop solutions requiring interfacing
with industrial machines or network interfaces such as ones requiring
Modbus communication protocol.
Arduino is a very popular single-board microcontroller and is used by
hobbyists and students to learn hardware implementations and how to
control and build hobby machines that interface with common C and C++
programs. However, we are going to use Arduino for an industrial-grade
purpose. Let’s compare three models from the Arduino line in order to
select the best microcontroller for our purpose.
Arduino Uno, Arduino Mega, and Arduino Mega 2560 are the three
models we are going to use for our comparison. All three single-board
microcontrollers use a 16MHz frequency processor. The printed circuit
board dimensions of the Mega and Mega 2560 are higher than the Arduino
Uno, which is smaller than both of them by half in length at 2.7 inches x
2.1 inches to 4 inches x 2.1 inches. The Arduino Mega 2560 has the highest
flash memory of 256kb, whereas Arduino Uno has the lowest flash memory
of 32kb. Arduino Mega has 128kb. Flash memory is very important as far as
SBMs are concerned because whatever programs you write for controlling
the hardware through your application has to be written to the flash
memory first. If the flash memory is low, you cannot write an industrial-
grade application on top of it. Both the Mega models have higher EEPROM
12
Chapter 1 Getting Started: Necessary Software and Hardware
and SRAM than the Arduino Uno; also, the Mega models have 54 GPIO
pins while the Uno has just 14 pins. Why do we need more pins for our
applications? We will be using our applications for communicating with
serial Modbus communication interfaces which may need two or three
devices connected at the same time. If the number of pins is less, we will be
limited in having parallel devices. So we need higher pins for this purpose.
So the best model for us is the Arduino Mega 2560, which has the
highest flash memory.
You can see the area marked as GPIO pins in the single-board
computer diagram in Figure 1-2. This model supports both digital pins
and analog pins. Digital pins are used to control and communicate with
devices such as digital sensors, and analog pins are used to communicate
with analog devices such as analog sensors. This model has a USB
interface, which is used for serial bus communication with another device
such as a SBC like the Raspberry Pi. You will look at this in detail later in
13
Chapter 1 Getting Started: Necessary Software and Hardware
the part of the book on how to connect and communicate between the
Raspberry Pi and Arduino. Figure 1-3 shows the overlay of GPIO pins on
the Arduino Mega 2560 board.
As you can see in the figure, the pin numbers starting from D mean
digital pins; these are the slots where you will connect digital sensors
and devices. The pins starting from A are analog pins and can be used
to communicate with analog devices. For now, this is what you need to
understand. You will look at all of this in detail once you start to assemble
your system.
I oT sensors
IoT is an extension of internet connectivity to everyday physical devices
and objects. When devices like sensors and internet connectivity are
added to it and embedded to physical devices like art objects or any other
object that display information on creation date, an artist description of
the object, recently modified date, etc., then the IoT is formed. We now
have the concept of automatic reordering cabinets which can order food
14
Chapter 1 Getting Started: Necessary Software and Hardware
You can see from Table 1-4 that there are a variety of sensors available
and they range from digital to analog to measure and detect objects using Wi-
Fi cameras to detecting a change in weight or load on an electronic device.
The uses and applications of these sensors are limitless and can give fresh life
to an IoT application. You will be using these common types of sensors in this
book and I will outline them in more detail as you build your solutions.
15
Chapter 1 Getting Started: Necessary Software and Hardware
D
rones
A drone is defined by Wikipedia (https://simple.wikipedia.org/
wiki/Unmanned_aerial_vehicle) as an unmanned aerial vehicle
operated through remote control devices. Drones usually have a small
microcontroller embedded inside them which has the capability to detect
changes in air pressure, the proximity of objects, acceleration, etc. It has
many IoT sensors embedded within it, making it smarter than manned
planes. However, there are very few automatic drones that do not require
human supervision to fly and work. Most drones have human supervisors
who control their activities through a remote control mechanism.
You will be using an industrial grade drone in the solution for the
telecom domain case study. You will need an industrial grade drone that
can take payloads up to 3.5 pounds or 1.5 kgs and has a range of 5 km since
you will be flying it for detection purposes around an area in a particular
locality. The minimum flight time you need is 30 minutes because this is
the minimum time required to gather some decent data to apply machine
learning. These types of drones are definitely not cheap; they start at
$2,500.
M
odbus Device
You will be using another device in the energy segment of the case study.
A Modbus device is a standard communication protocol for connecting to
industrial devices, such as machines to a computer. They are also used to
gather and send data. There is a master device or microcontroller that uses
the Modbus protocol to communicate with its slaves, which can be up to
247 in number. This makes the protocol very robust, which is the reason I
chose an Arduino Mega 2560 single-board microcontroller (because it has
a lot of space for analog and digital pins on its board for communication).
16
Chapter 1 Getting Started: Necessary Software and Hardware
Required Software
For running the exercise in this book, you will need Python 3.x installed.
I recommend you use the default Python installation that comes with the
Raspbian OS for this purpose. Python is a simple distribution and it does
not require any installation whatsoever, unlike Anaconda. All the coding
exercises in this book work on this version of Python. The exercises and
solutions in this book do not support Windows nor have they been tested
on any version of Windows. Using the Raspbian OS is a must to make
them work. Please follow the steps for installation that are given in the
installation section of this book.
17
Chapter 1 Getting Started: Necessary Software and Hardware
You will also be using the Arduino IDE to communicate between the
Arduino and Raspberry Pi, so the Arduino is going to work as a slave to
the Raspberry Pi in your solutions. This can be installed via the apt-get
command, which you will see later in the installation part of the book.
Summary
This chapter covered SBCs and how they have developed historically.
You learned about the most popular SBCs in the market, such as Banana
Pi, Raspberry Pi, and Arduino. In an in-depth comparison, you explored
the features of popular SBCs in terms of USB, storage, networking, and
communication features. You also learned about the Raspberry Pi and
more specifically the Raspberry Pi 3 Model B+ that you will be using to
use as a master node in your IoT and IIoT projects later in this book. You
learned about the GPIO pins located on the Raspberry Pi and their uses.
You also learned about the single-board microcontrollers and how they
are different from the single-board computers. You also learned that the
single-board microcontrollers in IoT and IIoT applications are generally
used as slaves to the single-board computers like Raspberry Pi. You also
saw that the most popular single-board microcontroller is the Arduino and
you looked at a table about the types of SBMs and feature information like
processors, I/O modules, frequency, voltage, etc.
You then looked at the Arduino Mega 2560 and its layout and learned
about its GPIO pins. Then you learned about the most important topic
of the book: IoT sensors and their types and applications. You also
learned about drones, as they will be used to collect data for the telecom
application in this book. You learned about a Modbus device and how it
is used to build a commercial application. Lastly, you got a list of software
that will be used through this book.
18
Discovering Diverse Content Through
Random Scribd Documents
rehearsal of ancient seers, reads history thus.
“How the wilde and sauage people vsed a naturall poesie in versicle and
rime as our vulgar is” (chapter v); and “How the riming poesie came first
to the Grecians and Latins, and had altered and almost spilt their maner
of poesie” (chapter vi). Classification into heroic, lyric, etc., and then into
comedy, tragedy, ode, elegy, etc., is followed (chapter xxxi) by a review of
English poetry as meager for a roll of honor as it is undiscriminating in
criticism.
Book II, Proportion Poeticall, is a misguided prosody. “Proportion” is
exhibited (chapter ii) in “staff” (i.e., stave or stanza); (iii) in “measure”
(i.e., feet) estimated by the number of syllables without assigning a
distinct function to “accent”; (v) in caesura ranged with “comma, colon,
periodus,” terms transferred from rhetoric to serve as aspects of rhythm;
(vi and following) in “concord,” which includes rime, accent, time, “stir,”
and “cadence”; (xi) in “position”; and finally in “figure,” square stanzas,
triangles, ovals, suitable to emblems and other devices. Through this
confusion and deviation the typical English stress habit glimmers so faintly
as never to be distinct. “How Greek and Latin feet might be applied in
English” (xiii) leads in the closing chapters to “a more particular
declaration of the metrical feet of the ancient poets.”
Book III, Ornament, is a long and elaborate classification of figures of
speech.[60] It ends conventionally with typical faults, with decorum, and,
in tardy caution, with Horace’s ars celare artem.
13. PATRIZZI
Patrizzi’s poetic (Della poetica di Francesco Patrici la deca
disputata ... Ferrara, 1586) renews the quarrel with Aristotle begun
in his rhetoric.
14. DENORES
Jason Denores, on the contrary, made his Poetica a digest of
Aristotle with a tabular view at the end of each section (Poetica di
Iason Denores, nella qual per via di definitione & divisione si tratta
secondo l’opinion d’Aristotele della tragedia, del poema heroico, &
della comedia ... Padua, 1588). The book has no critical grasp.
16. SUMMARY
In the variety of these poetics appear certain habits and
tendencies significant of the period. First, the Renaissance
gentleman scholar finds it becoming not only to write verse,
especially Latin verse, but to discuss poetic. Sound taste and
informed judgment in poetry, as in painting and sculpture, give him
rank as accomplished. The people assembled by Castiglione to
discuss the ideal courtier agree on this; and indeed several of them
might have written the dialogues examined above. Modern readers
impatient at the willingness to talk from the book without
independent thinking should beware of disparaging the value of a
general obligation to be informed about poetry. But even the
Renaissance gentlemen who were in the stricter sense scholars seem
content with learning for itself. Instead of interpreting and
advancing, they exhibit.
The confusion about imitation is too general to be attributed to
the stupidity of individuals. It reflects the clash of two conceptions:
Aristotle’s idea of imitating human life[67] by focusing its actions and
speech in such continuity as shall reveal its significance, an idea of
composition; and the humanist idea of imitating classical style. As
ideas, the two have nothing to do with each other; but they tripped
each other in fact. For the first was new, not yet understood either
exactly or generally; and the second was a widespread habit of
thought. Imitation suggested classicism. Aristotle, being an ancient,
must in some way be reconciled to this. Meantime it is evident,
especially from the more commonplace discussions, that though the
theory might not be clear, the practice inclined toward dilation and
borrowing. Ciceronianism, even while it waned, had spread far
beyond Cicero. Bembo’s imitation of Petrarch was not a reproach; it
was an added virtue.
The cult of the great period does not preclude citation of Claudian,
Statius, Silius Italicus; and Scaliger adds Ausonius and Sidonius.
Even Apuleius is not excluded; and space is occasionally found for
the dullness of Aulus Gellius and Macrobius. The “Greek Romances”
of Achilles Tatius, Apollonius or Heliodorus find place not only with
Cinthio, Scaliger, and Vauquelin, but also with Ronsard and Sidney.
Indeed, those poetic habits summed up in the term Alexandrianism
and corresponding to the decadent rhetoric called sophistic, crop out
often enough to suggest a considerable vogue. The sophistic recipe
for encomium is accepted by Ronsard; and there is common
approval, in doctrine as in practice, of parenthetical dilation by
descriptive show-pieces. So the rhetoric of Hermogenes, embraced
by Camillo and Partenio for poetic, is mentioned elsewhere with
respect. Alexandrianism is at least an inclination of the Renaissance.
But the commonest sign of the times is the unabated vogue of
Horace’s “Ars poetica”. It is gospel as much to the Renaissance as it
had been to the Middle Age. The cynical explanation would be its
very shallowness and conventionality; but probably the deeper
reason is that Renaissance thinking on poetic, as Horace’s, was
essentially rhetorical. Here, at any rate, is the main significance of
these poetics. Various as they may be otherwise, they have this in
common. Tasso stands out as an exception, in theory as in practice,
by his clear view of poetic as a distinct art of composition; and he is
supported by Castelvetro’s penetrative interpretation of the Poetic of
Aristotle. But Vauquelin has not heard them; and even Sidney,
though he sees the distinction, still falls back on rhetoric. Even to the
end of the sixteenth century, Renaissance poetic was largely
rhetoric.[68]
Chapter VIII
PROSE NARRATIVE
1. TALES
Nothing is more characteristic of the Renaissance than the
abundance of tales. Printed in large collections, they evidently
answered a steady demand; and they furnished many plots for the
Elizabethan stage. Often significant of Renaissance taste in stories,
they are generally less interesting in narrative art.
(a) Bandello
Even these better longer tales, then, are quite unequal in story
management. Bandello seems to take his stories as he finds them.
His literary fiction of writing a story that he has heard seems
essentially true in that sense. As he has not discerned in Boccaccio
the various achievement of a narrative artist, so he does not see
what makes his own best tales good, much less shape others
accordingly. He is not creative.
There might be seene also a certain sharpe and rude situation of craggy
and vnfruictful rocks, which notwithstanding yelded some pleasure to the
Eyes to see theym tapissed with a pale moasie greene, which disposed
into a frizeled guise made the place pleasaunt and the rock soft according
to the fashion of a couerture. There was also a very fayre and wide Caue,
which liked him well, compassed round about with Firre trees, Pine apples,
Cipres, and Trees distilling a certayne Rosen or Gumme, towards the
bottom whereof, in the way downe to the valley, a man might haue
viewed a passing company of Ewe trees, Poplers of all sortes, and Maple
trees, the Leaues whereof fell into a Lake or Pond, which came by
certaune smal gutters into a fresh and very cleare fountayne right agaynst
that Caue. The knight viewing the auncientry and excellency of the place,
deliberated by and by to plant there the siege of his abode for performing
of his penaunce and life (Vol. III, p. 222, of the 1890 reprint).
Description for itself, without function, and even more plainly the
other habitual means of decoration, show not only the general habit
of dilation, but also the general carelessness of narrative values. So
is smothered even the Spanish tale of Don Diego and Ginevra,[72]
which Bandello had the wit, or the luck, to repeat in its original
sequence. Evidently these versions were looking not to composition,
not to the conduct of the story, but only to style.
one Nisus, who had to daughter a damsel named Scilla, a proper sweet
wench, in goodliness a goddess, in shape Venus herself, in shew a saint,
in perfection of person peerless, but in deeds a dainty dame, in manners a
merciless maid, and in works a wilful wench.... But to paint her out more
plainly, she was more coy than comely, more fine than well-favoured,
more lofty than lovely, more proud than proper, more precise than pure.
If there be any place for such style, surely it is not in story. The story
is hardly told; it is decorated, moralized, generalized without
narrative salience. The decoration thus abused by Pettie became a
vogue through John Lyly (1553?-1606). His Euphues, the Anatomy
of Wit (1578) and Euphues and His England (1580) made the
schemata of sophistic, especially isocolon, parison, and paromoion,
[73] a main item in the curious style called euphuism.
Come therefore to me, all ye lovers that have been deceived by fancy, the
glass of pestilence, or deluded by women, the gate to perdition; be as
earnest to seek a medicine as you were eager to run into a mischief. The
earth bringeth forth as well endive to delight the people as hemlock to
endanger the patient, as well the rose to distil as the nettle to sting, as
well the bee to give honey as the spider to yield poison (Croll’s ed., p. 93).
Yet if thou be so weak, being bewitched with their wiles, that thou hast
neither will to eschew nor wit to avoid their company, if thou be either so
wicked that thou wilt not or so wedded that thou canst not abstain from
their glances, yet at the least dissemble thy grief. If thou be as hot as the
mount Aetna, feign thyself as cold as the hill Caucasus, carry two faces in
one hood, cover thy flaming fancy with feigned ashes, show thyself sound
when thou art rotten, let thy hue be merry when thy heart is melancholy,
bear a pleasant countenance with pined conscience, a painted sheath with
leaden dagger (Ibid., p. 104).
2. RABELAIS
Émile Egger was once moved to protest: “The actual French usage
of 1530 shows nowhere in either speech or writing the diction of
Rabelais.”[75] Every student of Rabelais will recognize this
observation as a lead. It means much more than the truisms that
every eminent author has his own style, and that study of style is
the most constantly fruitful study of literature. It means that
Rabelais makes the special demand of compelling attention always
to his style. His vocabulary[76] ranges from Latinizing to dialect and
jargon; his word-play from reckless puns to various iteration; his
cadences from the clausula of Cicero to mere lists. His volubility
flashes with picturesque concreteness. He is popular, yes, but rarely
in being simple, usually in talking with his readers and in stimulating
them by extravagance. The fifteenth-century extravagance of
Skelton, showing a similar volubility, has less display. Rabelais will
not let us ever forget his style.
When Philip threatened siege, the Corinthians prepared for defense. Some
from the fields to the fortresses brought household goods, cattle, wine,
food, and necessary munitions. Others repaired walls, raised bastions ...
[and so through a series of 25 predicates]. Some polished corselets [and
so through another catalogue of particulars]. Diogenes girt his loins, rolled
up his sleeves, gave his manuscripts to the charge of an old friend [and so
through another series of details].... “Icy beuvant je delibere, je discours,
je resouldz et concluds. Aprés l’epilogue je ris, j’escris, je compose, je boy.
Ennius beuvant escrivoit, escrivant beuvoit. Eschylus (si à Plutarche foy
avez in Symposiacis) beuvoit composant, beauvant composait. Homere
jamais n’escrivit à jeun. Caton jamais n’escrivit qu’aprés boire.” Thus the
resolution gives occasion for eight pages. (Prologue to Tiers Livre.) As
here, the amplification is often oratorical.
How comes it, most learned Tiraqueau, that in the abundant light of our
century, in which by some special gift of the gods we see all the better
disciplines recovered, there are still found everywhere men so constituted
as to be either unwilling or unable to lift their eyes from the more than
Cimmerian darkness of the gothic time to the evident torch of the sun?
[77]
3. HISTORY
History straddles the fundamental division of composition into the
forms of discussion or persuasion on the one hand and, on the other,
those of story or play. For history is now one, now the other, and
now both together. Earlier chronicles, more or less epic, hardly
discuss at all; some recent histories are so bent on analysis as hardly
to narrate at all; and some of the greater histories, ancient or
modern, Thucydides, Tacitus, Macchiavelli, bring the two into
effective combination. In any age this last is so difficult as to
demand superior grasp. Livy, for instance, being generally content
with narrative, hardly makes even his imaginary orations to troops
expository. But Thucydides, narrating effectively, is no less
concerned to instruct his readers in the issues. His “Expedition
against Syracuse” thus became both tragedy and sermon.
(a) Latin Histories
Book III: Pope Gregory to the Florentines for peace through the
restoration of the exiles; and the Florentine speech of refusal.
Book IV: Ianus Labella for insuring the republic against the pride of the
nobles.
Book VI: Debate of the Perugian envoys with the Florentines.
Book VIII: The Florentine envoys to the Pope; the Pope’s reply and
Barbadoro’s indignant rejoinder.
Book XII: The Milanese legates at Venice against the Florentines, and
the Florentine reply.
Finishing his first book in 1416, his sixth in 1429, Bruni solemnly
presented nine books to the Signory in 1439, and lived to finish his
long labor before 1444.
De bello italico adversos gothos gesto historia (1441), an
amplification of the summary in the first book of his History of
Florence, has less interpretation. The steady, concise narrative, with
little comment, has sometimes too little salience. But to attentive
reading the story of battle after battle, now victory, now defeat,
gradually gives some grasp of the military operations to hold Italy for
Justinian. The main figure is Belisarius. Except in occasional concrete
description, this history is more like Caesar’s, and is an experiment in
that expository narrative later mastered by Macchiavelli. Belisarius is
clearly exhibited not only as marvelous in military science, but as an
intelligent organizer and administrator. When he feels himself let
down by Justinian, and is approached by the Goths toward a joint
kingdom, he will not commit himself to any disloyalty. His triumphal
return to Justinian reports his intelligent discipline in Italy. Later his
recall to Italy after other generals had meantime failed finds the task
of reorganization hopeless in the disaffection of the imperial soldiers
so long unpaid and ill led. With very little comment or review
Belisarius emerges clearly from the narrative itself.
Bruni’s histories are evidence of a sober earlier humanism immune
to the extravagances of Ciceronianism and to that allusive display
that led to dilation. They go about their business. Oratory is kept
subsidiary to the story and the message. This tradition of Latin
history continues in the Scotorum historiae (1526) of Hector Boece,
and again in the Rerum scoticarum historia (1582) of George
Buchanan. Both wrote Latin history seriously as European scholars.
Buchanan, sometimes arid and partisan, was nationalist, indeed,
only in his later years. Meantime he had taught for many years in
France, had written Latin tragedies, and had been saluted by Joseph
Scaliger as the foremost of Latin poets. History, then, kept alive
among the humanists the medieval tradition of international Latin.
Its classicism, more restrained and more intelligent, less of style
than of method, was the more valid imitation.
MORE
All this notwithstanding, here I deliuer him, and hys brother in him, to
kepe into your handes, of whom I shall aske them both afore God and the
world. Faithfull ye be, that wot I wel, and I know wel ye be wise. Power
and strength to kepe him if you list neither lacke ye of yourself nor can
lack helpe in this cause. And if ye cannot elsewhere, than may ye leue him
here. But only one thing I beseche you, for the trust that his father put in
you euer and for the trust that I put in you now, that as farre as ye thinke
that I fere to muche, be ye wel ware that ye fere not as farre to little. And
therewithall she said vnto the child: Farewel, my own swete sonne; God
send you good keping; let him kis you ones yet ere ye goe, for God
knoweth when we shal kis togither agayne. And therewith she kissed him
and blessed him, turned her back and wept and went her way, leauing the
childe weping as fast. When the lord Cardinal and these other lordes with
him had receiued this yong duke, thei brought him into the sterrechamber,
where the protectour toke him in his armes and kissed him with these
wordes: Now welcome, my lord, euen with al my very hart. And he sayd in
that of likelihod as he thought. Thereupon forthwith they brought him to
the kynge his brother into the bishoppes palice at Powles, and from
thence through the citie honorably into the Tower, out of which after that
day they neuer came abrode (40).
And for thys cause as a goodly continent prince, clene and faultles of
himself, sent out of heauen into this vicious world for the amendment of
mens maners, he caused the bishop of London to put her to open
penance, going before the crosse in procession upon a Sonday with a
taper in her hand. In which she went in countenance and pace demure so
womanly, and albeit she were out of al array saue her kyrtle only, yet
went she so fair and louely, namelye while the wondering of the people
caste a comly rud in her chekes, of whiche she before had most misse,
that her great shame wan her much praise.... But me semeth the chaunce
so much the more worthy to be remembred in how much she is now in
the more beggerly condicion, vnfrended and worne out of acquaintance,
after good substance, after as gret fauour with the prince, after as gret
sute and seking to with al those that those days had busynes to spede, as
many other men were in their times, which be now famouse only by the
infamy of their il dedes. Her doinges were not much lesse, albeit thei be
much lesse remembred because thei were not so euil (53).
The duke laughed merely at the tale, and said: My lord, I warant you
neither the lyon nor the bore shal pyke anye matter at any thyng here
spoken; for it shall neuer come nere their eare. In good fayth, sir, said the
bishop, if it did, the thing that I was about to say, taken as wel as afore
God I ment it, could deserue but thank; and yet taken as I wene it wold,
might happen to turne me to litle good and you to lesse. Then longed the
duke yet moch more to wit what it was. Wherupon the byshop said: In
good faith, my lord, as for the late protector, sith he is now king in
possession, I purpose not to dispute his title. But for the weale of this
realm, wherof his grace hath now the gouernance, and wherof I am my
self one poore member, I was about to wish that to those habilities wherof
he hath already right many litle nedyng my prayse, it might yet haue
pleased God for the better store to haue geuen him some of suche other
excellente vertues mete for the rule of a realm as our Lorde hath planted
in the parsone of youre grace (91).
The Quene her self satte alone alowe on the rishes all desolate and
dismayde (20).
Beyond doubt rancor seems greater and strokes are heavier when
liberty is recovered than when it is defended (II. xxxvii. 123).
For a republic no law can be framed which is more vicious than one that
looks to the past (III. iii. 136).
No one who starts a revolution in a city should expect either to stop it
where he intends, or to regulate it in his own way (III. x. 148).
Between men who aspire to the same position it is easy to arrange
alliance, but not friendship (VI. ix. 34).
For men in power shame consists in losing, not in crooked winning (VI.
xvii. 81).
Thereupon arose in the city those evils which oftenest spawn in a
peace. For the young, freer than usual, spent immoderately on dress,
suppers, and such luxuries, and being idle, wasted their time and