Programming the Intel Galileo: Getting Started with the Arduino -Compatible Development Board Christopher Rush download
Programming the Intel Galileo: Getting Started with the Arduino -Compatible Development Board Christopher Rush download
https://ebookmass.com/product/programming-the-intel-galileo-
getting-started-with-the-arduino-compatible-development-board-
christopher-rush/
https://ebookmass.com/product/programming-the-photon-getting-started-
with-the-internet-of-things-rush-christopher/
https://ebookmass.com/product/programming-the-photon-getting-started-
with-the-internet-of-things-tab-christopher-rush/
https://ebookmass.com/product/programming-arduino-getting-started-
with-sketches-tab-monk/
https://ebookmass.com/product/programming-arduino-getting-started-
with-sketches-third-edition-simon-monk/
Programming Arduino: Getting Started with Sketches 3rd
Edition Simon Monk
https://ebookmass.com/product/programming-arduino-getting-started-
with-sketches-3rd-edition-simon-monk/
https://ebookmass.com/product/programming-with-stm32-getting-started-
with-the-nucleo-board-and-c-c-donald-norris/
https://ebookmass.com/product/programming-the-raspberry-pi-third-
edition-getting-started-with-python-simon-monk/
https://ebookmass.com/product/getting-started-with-sql-and-databases-
managing-and-manipulating-data-with-sql-mark-simon/
https://ebookmass.com/product/getting-started-with-sql-and-databases-
managing-and-manipulating-data-with-sql-1st-edition-mark-simon/
Copyright © 2017 by McGraw-Hill Education. All rights reserved. Except as permitted under
the United States Copyright Act of 1976, no part of this publication may be reproduced or
distributed in any form or by any means, or stored in a database or retrieval system, without
the prior written permission of the publisher.
ISBN: 978-1-25-964480-1
MHID: 1-25-964480-4.
The material in this eBook also appears in the print version of this title: ISBN: 978-1-25-
964479-5, MHID: 1-25-964479-0.
All trademarks are trademarks of their respective owners. Rather than put a trademark symbol
after every occurrence of a trademarked name, we use names in an editorial fashion only, and
to the benefit of the trademark owner, with no intention of infringement of the trademark.
Where such designations appear in this book, they have been printed with initial caps.
McGraw-Hill Education eBooks are available at special quantity discounts to use as premiums
and sales promotions or for use in corporate training programs. To contact a representative,
please visit the Contact Us page at www.mhprofessional.com.
TERMS OF USE
This is a copyrighted work and McGraw-Hill Education and its licensors reserve all rights in
and to the work. Use of this work is subject to these terms. Except as permitted under the
Copyright Act of 1976 and the right to store and retrieve one copy of the work, you may not
decompile, disassemble, reverse engineer, reproduce, modify, create derivative works based
upon, transmit, distribute, disseminate, sell, publish or sublicense the work or any part of it
without McGraw-Hill Education’s prior consent. You may use the work for your own
noncommercial and personal use; any other use of the work is strictly prohibited. Your right
to use the work may be terminated if you fail to comply with these terms.
THE WORK IS PROVIDED “AS IS.” McGRAW-HILL EDUCATION AND ITS LICENSORS
MAKE NO GUARANTEES OR WARRANTIES AS TO THE ACCURACY, ADEQUACY OR
COMPLETENESS OF OR RESULTS TO BE OBTAINED FROM USING THE WORK,
INCLUDING ANY INFORMATION THAT CAN BE ACCESSED THROUGH THE WORK
VIA HYPERLINK OR OTHERWISE, AND EXPRESSLY DISCLAIM ANY WARRANTY,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES
OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. McGraw-Hill
Education and its licensors do not warrant or guarantee that the functions contained in the
work will meet your requirements or that its operation will be uninterrupted or error free.
Neither McGraw-Hill Education nor its licensors shall be liable to you or anyone else for any
inaccuracy, error or omission, regardless of cause, in the work or for any damages resulting
therefrom. McGraw-Hill Education has no responsibility for the content of any information
accessed through the work. Under no circumstances shall McGraw-Hill Education and/or its
licensors be liable for any indirect, incidental, special, punitive, consequential or similar
damages that result from the use of or inability to use the work, even if any of them has been
advised of the possibility of such damages. This limitation of liability shall apply to any claim
or cause whatsoever whether such claim or cause arises in contract, tort or otherwise.
CONTENTS
Preface
2 Getting Connected
Power the Board
Communicating with Your Board
Setting Up the Development Environment
Setting Up the Galileo on Windows
Setting Up the Galileo on OSX
Setting Up the Galileo on Linux
Hello World: Uploading Your First Code
Summary
3 Arduino-Style C Programming
What Is Programming?
Setup and Loop
Variables
Floats
Boolean
Char
Commands
If Statement
For Loops
While Loops
Arrays
Strings
Coding Best Practices
Indentation
Commenting Your Code
Whitespaces
Summary
4 Programming Outputs
Experiment 1: Understanding Digital Outputs
Experiment 2: Flashing an LED
Experiment 3: LCD
Experiment 4: Switching High-Voltage Appliances Using a Relay
Experiment 5: Controlling a Servo Motor
Summary
5 Inputs
Digital Inputs
Experiment 6: Reading a Switch
digitalRead ()
Local and Global Variables
Debouncing
Analog Inputs
Experiment 7: Reading a Potentiometer
analogRead
Const
map()
Variable Resistors
Experiment 8: Voltage Divider Circuits
Experiment 9: Reading Temperature
Summary
7 Internet-Connected Hardware
Experiment 10: Analyzing Sensor Data on the Cloud
Creating a Visual Dashboard
Experiment 11: Creating a Simple Web Server
Experiment 12: Creating a Web Server Using Express
Experiment 13: Reading GPIO Pins on the Web Server
Experiment 14: Controlling Digital Pins Using the Web
Experiment 15: Home Automation
Summary
Index
About the Author
Christopher Rush has a degree in computer science and has spent the last 10 years working
for an electronics distribution company as a product manager for single-board computing. He
is the author of 30 BeagleBone Black Projects for the Evil Genius™ and Programming the
Photon: Getting Started with the Internet of Things, both also published by McGraw-Hill
Education.
PREFACE
This book is the perfect introduction to programming the Intel® Galileo development
board. The Galileo was Intel’s first development board aimed for the maker market and based
around their own Intel Quark SoC. With built-in Internet of Things capabilities, this board
unleashes the powerful hardware expanding its capabilities to Internet-connected hardware.
The Intel Galileo is fully compatible with the Arduino™-style programming language
while also introducing its own libraries and features for connectivity. The board itself comes
with the Arduino footprint for connecting Arduino-compatible hardware such as shields. On
its own the board doesn’t really do much, but once you learn how to connect hardware it is
fully capable of acting as the brain of your projects, controlling things and sending data to
cloud services using the on-board Linux.
This book presents you examples using the popular Grove system by Seeed-Studio, which
allows you to interconnect hardware without the worries and frustration of dealing with
circuits and soldering. Most of the examples use the parts commonly found in the Intel
Galileo Grove Starter Kit.
The purpose of this book is to get you started with creating your own hardware projects
with the Intel Galileo. You do not need any previous experience with circuits or
programming, but general computer skills would be highly advantageous. Programming the
Intel® Galileo is written to give you a wide variety of experience and a basic understanding
of the capabilities of the Intel Galileo board. This book only covers the basics of how to
program the board, the assumption being that you will then expand those skills to create your
own exciting projects.
I would love to hear your thoughts and comments regarding this book, so I encourage you
to contact me through www.rushmakes.com or on Twitter @rushmakes. You can download all
the example code from the McGraw-Hill website www.mhprofessional.com/intelgalileo or
through my GitHub, https://github.com/ChristopherRush/Programming-the-Intel-Galileo.
Christopher Rush
Visit https://ebookmass.com today to explore
a vast collection of ebooks across various
genres, available in popular formats like
PDF, EPUB, and MOBI, fully compatible with
all devices. Enjoy a seamless reading
experience and effortlessly download high-
quality materials in just a few simple steps.
Plus, don’t miss out on exciting offers that
let you access a wealth of knowledge at the
best prices!
1
Introduction to the Intel Galileo
The Intel ® Galileo Gen 2 is a board based on the Intel Quark System-on-Chip (SoC)
X1000, a 32-bit Intel Pentium processor system, operating at speeds up to 400 MHz. This
Quark system is capable of supporting the Yocto 1.4 Linux distribution that opens up further
capabilities to the Intel Galileo board.
The board itself has a built-in Ethernet socket with additional support for Power over
Ethernet (PoE), a Universal Serial Bus (USB) 2.0 host port for adding USB devices, a micro-
SD slot for memory expansion, a mini PCI express (mPCIe) card slot, 20 digital input/output
pins (six PWM outputs with 8/12-bit resolution and six analog inputs with 12-bit resolution), a
micro-USB connection for USB client programming, an ICSP header, a JTag header, and two
reset tactile buttons, all of which you can see in Figure 1.1.
The Intel Galileo Gen 2 board also features an integrated real-time clock (RTC), with an
optional 3-V coin cell battery for operation between turn-on cycles of the board.
The Intel Galileo board also supports the use of Arduino™-compatible shields and can
operate at either 3.3 or 5 V using a jumper pin header on the board. The board has been
specifically designed to be hardware and software pin-compatible, with the Arduino shields
based around the standard Uno R3 Arduino board. The shield headers have digital pins 0 to
13, analog inputs 0 to 5, an ICSP header, and universal asynchronous receiver/transmitter
(UART) port pins that are all in the same location as those on the Arduino Uno R3.
Hardware Summary
The Gen 1 Intel Galileo board does not have an on-board regulator, so the power supply
has to be exactly 5 V. In contrast to this, the Gen 2 board has an on-board regulator, so it
may be powered with any suitable power supply providing between 7 and 15 V direct
current (DC). Some other properties of Gen 2 are as follows:
12 GPIOs fully native for greater speed and improved drive strength.
12-bit PWM for more precise control of servos and smoother response times.
12-V PoE capability.
Serial console UART header is compatible with FTDI USB convertors.
Console UART1 can be redirected to Arduino headers in sketches, which can eliminate
the need for soft-serial.
On-Board Linux
The Yocto 1.4 Linux distribution is installed on the Intel Galileo, and you can easily access the
various Linux functions with the system() call in the Arduino integrated development
environment (IDE) program.
Power
The Intel Galileo Gen 2 can be powered only via an external power supply. The power
adaptor can be connected by plugging a 2.1-mm center-positive plug into the board power
jack. The board can operate on an external supply between 7 and 15 V DC. The power pins for
the Intel board are as follows:
VIN: The input voltage to the Intel board. You can access the voltage supplied via the
power jack through this pin.
5 V: This pin outputs a regulated 5 V from the regulator board.
3.3 V: A 3.3-V supply is generated by the on-board regulator, which also provides the
power supply to the Quark microcontroller.
GND: Ground pins.
IOREF: This pin on the Arduino board provides the voltage reference with which the
microcontroller operates. This can be either 3.3 or 5 V, depending on the IOREF jumper
position.
12-V PoE capability.
Buttons
There are two buttons on the Intel Galileo board with different functions:
Memory
The Quark X1000 microcontroller has 512 kB of embedded SRAM available. The board also
has an additional 256 MB of DDR3 RAM and 8 MB of flash to store the firmware and any
Arduino sketches. The on-board uSD slot supports uSD cards up to 32 G and can be used to
provide the complete Yocto 1.4 Linux image.
Serial: 0 (Rx) and 1 (Tx) pins, which are used to receive and transmit time to live (TTL)
serial data to the Galileo board.
Digital I/O: Digital pins 0 to 13 and analog pins A0 to A5 can all be used as a digital
input or output, using the pinMode(), digitalWrite(), and digitalRead() functions in
the Arduino IDE. All of these pins can operate at both 3.3- and 5-V logic.
PWM: Pins 3, 5, 6, 9, 10, and 11 provide 8/12-bit PWM output with the anlogWrite()
function in the Arduino IDE. The resolution of the PWM signal can easily be changed
with the function analogWriteResolution().
SPI: SPI header or ICSP header on other Arduino boards has three pins that support SPI
communication using the SPI Arduino library.
Analog inputs: Pins A0 to A5 each have analog input that can provide 10/12 bits of
resolution, which also can be changed using the analogReadResolution() function
within the Arduino IDE.
SDA and SCL: These support TWI communication using the wire library.
Communication
The Intel Galileo has a number of hardware features for communicating with a computer,
another Galileo board, Arduino, or any other microcontroller board while also being able to
communicate to devices such as phones and tablets. The board provides two UART
controllers: UART 0 to Galileo headers 0 and 1, and UART 1 to 6-pin 3.3-V USB TTL FTDI
header, optionally directed to Galileo headers 2 and 3.
The native USB port can also act as a USB host for connecting peripheral devices such as
mice, keyboards, or smart phones. The on-board uSD card reader slot is accessible through
the SD library functions. The communication between the Galileo and the SD card is provided
by an integrated SD controller and does not require the use of the SPI interface like on other
Arduino boards.
The on-board Ethernet interface is fully supported using the Ethernet library in the Arduino
IDE. Like other Arduino devices and shields, it does not require the use of the SPI interface
and library.
The Arduino software for the Intel Galileo includes a wire library to simplify the use of
TWI/I2C bus.
The board provides an mPCIe slot that allows the full-size and half-size (with adaptor)
mPCIe modules to be connected to the board and also provides an additional USB host port
via the slot. Any standard mPCIe module can be connected and used to provide applications
such as Wi-Fi or Bluetooth connectivity.
Programming
The Intel Galileo can be programmed with a special version of the Arduino software that has
been written specifically for the Intel board. It is possible to make certain requests to the Linux
Kernel with the system() calls within the IDE. This gives your Arduino sketches access to
powerful utilities like Python, Node js, OpenCV, and all sorts of other applications.
Note The Intel Galileo forgets the sketch after powering down or when the board has
rebooted. It is possible to boot the Galileo from the uSD card so as to restore the sketch
from the same card.
The default image of the Intel Galileo board comes flashed with Linux with libraries in the
user space for integrating the Arduino wiring platform. Arduino on the Intel Galileo runs a
little different from the usual Arduino microcontrollers. Arduino runs in the Linux Kernel
user space and is fully integrated with the IDE, which runs on your computer. The major
benefit of using this method on the Galileo board is that developers can build native
applications, install device drivers, change the Linux Kernel configuration, or even change
the whole Linux distribution altogether.
At this stage you might be wondering why you decided to purchase the Intel Galileo board
as opposed to other Arduino microcontrollers. With the Intel Galileo board, the Linux OS is
responsible for handling all the digital and analog Arduino headers, which means that it
avoids additional bridges that would normally need to be put in place and the Quark CPU does
all the processing rather than a microcontroller. The seamless integration allows the Arduino
APIs and Linux APIs to coherently exist and work together. This also means that in theory you
can run multiple Arduino sketches from the command line in Linux using the SD card to store
the sketches.
Summary
Looking at the hardware specification of the Intel Galileo, you see why it is a powerful board.
This is one of the first maker ’s boards Intel brought to market and they have done a great job
of putting the hardware together. The eradication of the need for a microcontroller is quite
unique and offers something different to the market. In the next chapter, we will look at how
to get connected to your board.
2
Getting Connected
In this chapter, we will look at the many ways in which you can connect your Intel Galileo
board and get started straightaway creating Internet-connected hardware projects. Blinking a
light-emitting diode (LED) is more commonly the first thing you will do when using a new
hardware development board, and it is confirmation that everything has been set up correctly
and is in perfect working order. For those of you who have programmed before, you will
know that your first step is to print “Hello World.” Getting an LED to blink on and off is our
way of saying “Hello World.” At the end of this chapter, you will learn the different hardware
features of the Intel Galileo board and what you will need to work with it, and how to install
the custom Arduino integrated development environment (IDE) program to upload the code
to the board.
Note If you are using an Intel Galileo Gen 1 board, make sure you power the board first
before connecting the USB data cable.
Connect the 5-V-DC power adaptor to the DC socket on the Intel Galileo board as shown in
Figure 2.1. Once plugged in and switched on at the main socket, the power LED should light
up green.
Figure 2.1 Powering up the Intel Galileo board.
The USB client port allows for serial communication to a computer through USB. This
provides a serial connection to the serial monitor or other application on your computer, and
it is also used to upload sketches to the board through the Arduino IDE. This will be our
preferred method of programming the Intel Galileo board and the one that we will show you
later on in this book.
The USB host port should not be confused with the USB client port. The USB host port
allows the Intel Galileo to act as a host for connected devices such as mice, keyboards, smart
phones, and many more devices. You can connect a USB hub to this USB port to expand the
number of ports up to 128 devices, if necessary.
One of the more advanced ways of communicating with your Intel Galileo is to use the on-
board mini PCI express (mPCIe) adaptor, which is a first for an Arduino device. This slot on
the board allows both full-size and half-size (with adaptor) mPCIe modules to be connected
easily to the Intel board and also can provide an additional USB host port. Any standard
mPCIe module can be connected to provide application features such as Wi-Fi, Bluetooth, or
cellular. Initially, the board provides support only for Wi-Fi using the mPCIe modules.
Getting connected to the Internet is important for projects involving the Internet of Things
(IoT); that is why the Intel Galileo board comes with an RJ45 Ethernet adaptor built onto the
board for fully wired networks. This is by far the easiest way to connect to your network and
the Internet, and also the quickest. Unlike standard Arduino shields, the Ethernet adaptor is
fully supported hardware and therefore does not require any SPI interface.
The on-board micro-SD card reader can be accessible through using the SD library, which
we will cover later on in this book. The communication between the Intel Galileo and the SD
card is provided by an integrated SD controller and does not require the use of SPI, unlike
other SD Arduino shields and boards. The native SD interface runs at up to 50 MHz depending
on the class of SD card being used.
Now you should have a good understanding of both the Galileo boards and their hardware
features; let us go ahead and set up the development environment. You will need to perform
the following steps in order to get started:
1. First, connect the Intel Galileo board to your selected DC power supply through the
barrel jack. Later on in the book you will learn how to connect the board through a
standard PP3 battery connector, but for a stable power source and reliable results use a
regulated power supply. When the board is plugged in and powered on at the main
socket, you should see the LEDs on the board light up. Once the board is powered on,
you can connect the USB client port to the USB port on your desktop or laptop
computer as shown in Figure 2.3.
Figure 2.3 Intel Galileo Gen 2 board connected to the USB and power ports.
2. Now that you have your Intel Galileo board powered up, it is important to make sure
that you have the latest firmware installed and up to date. Open up the Internet browser
on your computer and go to the following URL:
Visit https://ebookmass.com today to explore
a vast collection of ebooks across various
genres, available in popular formats like
PDF, EPUB, and MOBI, fully compatible with
all devices. Enjoy a seamless reading
experience and effortlessly download high-
quality materials in just a few simple steps.
Plus, don’t miss out on exciting offers that
let you access a wealth of knowledge at the
best prices!
Exploring the Variety of Random
Documents with Different Content
his prior works. Some zealous friends, however, thought this too
small a sum, and opened negotiations with another firm, but the
other firm offered considerably less; and Crabbe, fearing that Murray
might consider the bargain as out of his hands entirely now, went
straightway to Albemarle Street with Rogers and Moore as mediators.
Murray, however, assured them that he had from the first considered
the matter as entirely settled.
Lord Byron’s personal connection with the Albemarle Street
clique was of comparatively short existence, for, in 1816, he left
England for the last time; but to the time of his death he kept up a
regular correspondence with Murray of the frankest and most cordial
kind. Now, Murray hearing that Lord Byron was in difficulties, sends
him a draft for £1500, promising another for the same amount in the
course of a few months, and offering to sell the copyright of his
works for his use, if that were not sufficient. Then, again, in a freak,
Byron presents Murray with “Parisina” and the “Siege of Corinth,” and
returns the cheque for £1000 which the publisher had forwarded.
“Your offer is liberal in the extreme, and much more than the two
poems can possibly be worth; but I cannot accept it, nor will not.
You are most welcome to them as an addition to the collected
volumes, without any demand or expectation on my part whatever.
“P.S.—I have enclosed your draft, torn, for fear of accidents by
the way. I wish you would not throw temptation in mine; it is not
from a disdain of the universal idol, nor from a present superfluity of
his treasures, I can assure you, that I refuse to worship him; but
what is right is right, and must not yield to circumstances.”
The following is in a somewhat different tone:—
“You offer 1500 guineas for the new canto of (”Don Juan“). I
won’t take it. I ask 2500 guineas for it, which you will either give or
not, as you think proper. If Mr. Moore is to have 3000 for “Lalla,” &c.,
if Mr. Crabbe is to have 3000 for his prose or poetry, I ask the
aforesaid price for mine.” (“Beppo” was eventually thrown into the
bargain.) “You are an excellent fellow, mio caro Murray, but there is
still a little leaven of Fleet Street about you now and then—a crumb
of the old loaf.... I have a great respect for your good and
gentlemanly qualities, and return your friendship towards me; and
although I think you are a little spoiled by ‘villanous company,’ with
persons of honour about town, authors, and fashionables, together
with your ‘I am just going to call at Carlton House, are you walking
that way?’—I say, notwithstanding ‘pictures, taste, Shakespeare, and
the musical glasses,’ you deserve the esteem of those whose esteem
is worth having.”
Now, like a spoiled child, Byron wishes back all his copyrights,
and intends to suppress all that he has ever written, and Murray has
to chide him and coax him, with much disinterestedness, urging him
to labour steadily for a few years upon some work worthy of his
talents, and fit to be a true monument of his fame.
Some of Byron’s letters are in an earnest, many in a playful,
mood, most in prose, but sometimes the poet breaks into a charming
doggerel of delicious “chaff.” Here is one specimen:—
£
1807 Hours of Idleness
1809 English Bards and Scotch Reviewers
1812 Childe Harold, I. II.[A] 600
1813 The Gaiour 525
” Bride of Abydos 525
1814 Corsair
15
525
” Lara 700
1815 Hebrew Melodies16
1816 Childe Harold, III. 1,575
” Siege of Corinth 525
” Parisina 525
” Prisoner of Chillon 525
1817 Manfred 315
” Lament of Tasso 315
1818 Beppo 525
” Childe Harold, IV. 2,100
1819 Mazeppa 525
” Don Juan, I. II. 1,525
1820 Don Juan, III. IV. V. 1,525
” Marino Faliero
” Doge of Venice 1,050
1821 Sardanapalus, Cain, and Foscari 1,100
17
” Vision of Judgment
1822 Werner; Deformed Transformed;
Heaven and Earth,
to which were added Hours of
Idleness,
English Bards, Hints from Horace,
&c. 3,885
Sundries 450
1822 Don Juan, VI. VII. VIII. IX. X. XI.
1823 Age of Bronze, The Island, and more
cantos of
Don Juan
Total £19,340
Life, by Thomas Moore 4,200
£23,540
£
“Sketch Book” 467
“Bracebridge Hall” 1050
“Tales of a Traveller” 1575
“Life of Columbus” 3150
“Companions of Columbus” 525
“Conquest of Grenada” 2100
“Tour on the Prairies” 400
“Abbotsford and Newstead” 400
“Legends of Spain” 100
Total £9767
These sums of money having been paid, Mr. Bohn reprinted the
volumes in a cheap edition. A law suit was of course the result, in
which Murray’s expenses ran up to £850, and Mr. Bohn’s were
probably as heavy. The question, however, was settled amicably,
without being fought to the bitter end, and Irving received no more
money from this side the Atlantic.
Most of the famous men with whom Murray had been connected
had by this time disappeared, many of them having shed their rays
meteor-like, and having done the duty unto which they were created
in a momentary flash. The seething excitement called into being by
the throes of the first French Revolution had subsided, and there
were neither readers left to appreciate true poetry, nor true poets
remaining, with strength of voice left in them to bring back memories
in passion-laden melodies of the troublous times they sprung from.
All, on the contrary, was quiet and easeful—a happy time for
commerce, but a barren hour for art.
Murray, skilled as any pilot in watching the direction of the wind,
turned his attention to the publication of travels and expeditions—the
very books for a fireside afternoon, when the wind is howling
outside, and the snow-storm beating on the windows—and very soon
Albemarle Street was as famous for its “Travels” as it had previously
been for its “Belles-Lettres.” Among the most valuable and successful
of these were the expeditions of Mungo Park, Belzoni, Parry, Franklin,
Denham, and Clapperton.
Murray had just launched his “Classical Handbooks,” under the
editorship of his son—had just made, in trade parlance, “another
great hit” in Lady Sale’s “Journal in Afghanistan”—when an attack of
general debility and exhaustion compelled him to leave business and
success alone—and for ever. He rallied so often that no serious
results were anticipated by his family or physician; but after a very
short illness he died suddenly on the 27th June, 1843, in the fifty-
sixth year of his age, leaving three daughters and one only son. To
his widow, in a will dated only seven days before his death, he
bequeathed the whole of his estate.
A gentleman by manners and education; generous and open-
handed, not for purposes of display, often not from mere trade
motives, but from a true desire to return to genius and industry
something of what he derived from them; an excellent man of
business, with more powers of work than most men, understanding
better than any how to measure the calibre of an author’s genius,
and to gauge the duration of his popularity; skilful in timing a
publication, so as to ensure a favourable reception, and yet honestly
abhorring any recourse to the low art of puffing—such was John
Murray as a publisher; the best representative of an honourable
calling, and one who by his own influence tended not a little to make
the years of his own working life the best representative period of
English literature.
Mr. John Murray, who succeeded at once to his father’s business,
was born in the year 1808, and was consequently, in 1843, admirably
fitted, by years and professional training, to take the management of
so important a concern. He was educated at the Charterhouse and at
Edinburgh University, and had had, moreover, all the advantages that
foreign travel could bestow. As early as 1831, we hear of “Mr. John
Murray, Jun.,” at Weimar, presenting Goethe with the dedication of
Byron’s “Marino Faliero,” and being received, together with that
mocking and yet reverent tribute, in a gracious, kindly manner.
Mr. Murray thoroughly followed his father’s idea, that the age had
now come for the cheap publication of useful and practical books,
and in the first year of his accession, issued the prospectus of his
“Home and Colonial Library,” which, being published at half the price
of the “Family Library,” was at least twice as successful, and was
continued for upwards of six years. During these early years Mr.
Murray made one mistake, and achieved one great success. The
mistake was, however, in common with every publisher in London,
for “Eöthen” went the rounds of the metropolitan book market, and
was eventually published by a personal friend of Mr. Kinglake’s.
Mindful of his father’s precedents, Murray soon secured the
copyright. The success, on the contrary, consisted in accepting what
other publishers had refused, and issued from Albemarle Street,
Campbell’s “Lives of the Lord Chancellors” has proved one of the
most successful biographical works of the time. In travel, biography,
history, and science, the present Mr. Murray has fully sustained the
name of the old house, and it is sufficient here to mention only the
names of Hallam, Barrow, Wilkinson, Lyell, Gordon Cumming, Layard,
Murchison, and Sir Robert Peel, to see how much we owe him.
On Lockhart’s death, in 1854, the Reverend Whitwell Elwin was
selected to fill the editorial chair of the Quarterly, and since that date
the political opinions of the periodical have been considerably
modified; at any rate, men of all parties have been allowed to write
conscientiously in its pages, and it is even rumoured, that before
this, its old opponent, Lord Brougham, contributed at least one
article (that on Chesterfield, in vol. lxxvi.).
Among the most successful library books that Mr. Murray has
recently published, we must instance those by Mr. Smiles and Dr.
Livingstone, and, more especially, those by Mr. Darwin.
Mr. Murray’s name is, however, most familiar to us now as the
publisher of the famous Handbooks for travellers, the series now
extending, not only through the outer world, but embracing our
English counties; these latter, it is said, owing much to Mr. Murray’s
personal editorship.
In closing our short sketch of the “House of Murray,” we cannot
refrain from re-echoing a wish that has been often uttered before,
that the present representative may find time amidst his professional
labours, to edit the letters and to write a worthy life of the great
John Murray. No book that has ever been issued from Albemarle
Street could be more popular or more welcome.
WILLIAM BLACKWOOD:
“BLACKWOOD’S EDINBURGH MAGAZINE.”
“Dear James,
“I have received Blackwood’s impudent letter. G—— d——
his soul, tell him and his coadjutor that I belong to the Black
Hussars of Literature, who neither give nor receive criticism.
I’ll be cursed but this is the most impudent proposal that ever
was made.”
Such was the type of English periodical literature, and the Scotch
were certainly no better off. The Scots Magazine stood Constable, it
is true, in good stead, but only as a nursery ground, from which
writers might be trained for transplantation to a stronger soil. Vastly
different was the condition of the rival quarterlies; but still, in
Scotland at all events, the Edinburgh carried everything after its own
desire. Wit the writers had in plenty—learning, too, and the gift of
open-speaking; but to fairness, biassed as they were by party ties,
they never laid the least claim, and yet all Edinburgh was enthralled
by the opinions of the Edinburgh Review, for intellectual attainments
at that time commanded for their possessors the leading place in the
society of the Modern Athens, and, as the principles advocated in its
pages were decidedly opposed to those of the existing
administration, the success it indubitably had attained, the vast
following it was gathering, not only irritated but alarmed the Scotch
Tory party.
Of course, the actual inventorship of the new project is a
disputed point, but the evidence seems to tell us that, however the
idea of a new Conservative organ had been talked over in literary
coteries (and what scheme has not been planned a thousand times
before execution whenever literary men meet together?), the plan
had long been entertained and spoken of by Blackwood; and, as he
proceeded to carry it into execution, the scheme may to all intents
and purposes be regarded as his own.
Two gentlemen were engaged—Pringle and Cleghorn—who had
received their training in the enemy’s camp, as editors in chief, and
with the assistance of Hogg, and the promised support of Scott and
many other men of talent, the first number of the Edinburgh Monthly
Magazine was issued on All-Fools’ Day, 1817—an ominous day for
Blackwood, for he soon discovered that the prophets he had
summoned to curse, heaped blessings on the heads of his
opponents. This first number differed but little from other periodicals
of its class. Only half the space was devoted to original matter, and
the very opening pages contained a panegyric upon Horner, then
lately deceased, an Edinburgh Reviewer—a Whig, and not much
else. “You can’t say too much about Sydney Smith and Brougham,”
said Scott to Jeffrey; “but I will not admire your Horner. He always
puts me in mind of Obadiah’s bull, who, although, as Father Shandy
observed, he never produced a calf, went through his business with
such a grave demeanour that he always maintained his credit in the
parish.” Nor was this the worst. In No. 3 a violent defence of the
Edinburgh was undertaken warmly. This was too much for
Blackwood; he gave his editors notice of a coming change, and after
much chaffering he was glad to pay £125 down, and get rid at once
of them and the magazine; and—somewhat, doubtless, to his
chagrin—they immediately returned to Constable and took charge of
the Scots Magazine, which, under the title of Constable’s Edinburgh
Magazine, made a futile effort to re-juvenate itself.
With the sixth number of the Edinburgh Monthly Magazine had
appeared a notice stating that “this work is now discontinued, this
being the last number of it;” but in the following month, with an
alteration in the title, it arose, Phœnix-like, from the ashes, and, as
Blackwood’s Edinburgh Magazine, No. 7, created a sensation which
has never perhaps been equalled. There was, to commence with, a
monstrous list of all possible and impossible articles, chiefly
threatened attacks upon the Edinburgh, then a violent attack upon
their former defence of the Edinburgh Reviewer’s onslaught upon
Burns and Wordsworth; but the great feature in No. 7 (No. 1 in
reality of Blackwood) was the “Translation from an Ancient Caldee
Manuscript,” in which the circumstances of the late feud, and
Constable’s endeavours to repair the fortunes of his old magazine,
and the resuscitation of “Maga”—the birth, that is, of the genuine
“Maga”—are thrown into an allegorical burlesque.
“The two beasts (the two late editors), the lamb and the bear,
came unto the man who was clothed in plain apparel, and stood in
the door of his house; and his name was as if it had been the colour
of ebony (Blackwood), and his number was the number of a maiden
when the days of her virginity have expired (No. 17, Prince’s Street),
... and they said unto him, Give us of thy wealth, that we may eat
and live, and thou shalt enjoy the fruits of our labour for a time,
times or half a time.
“And he answered and said unto them, What will ye unto me
whereunto I may employ you?
“And they proffered unto him a Book, and they said unto him,
Take thou this, and give us a piece of money, that we may eat and
drink and our souls may live.
“And we will put words into thy Book that shall astonish the
children of thy people. And it shall be a light unto thy feet and a
lamp unto thy path; it shall also bring bread to thy household, and a
portion to thy maidens.
“And the man hearkened unto their voice, and he took their
Book, and he gave them a piece of money, and they went away
rejoicing in heart. And I heard a great noise, as if it had been the
noise of many chariots, and of horsemen prancing upon their horses.
“But after many days they put no words in the Book, and the
man was astonied, and waxed wroth, and said unto them, What is
this that ye have done unto me, and how shall I answer those to
whom I am engaged? And they said, What is that to us? see thou to
that.
“And the man wist not what for to do; and he called together the
friends of his youth, and all those whose heart was as his heart, and
he entreated them, and they put words into the Book; and it went
abroad, and all the world wondered after the Book, and after the
two beasts that had put such amazing words into the Book.
“Then the man who was crafty in counsel and cunning in all
manner of work (Constable), when this man saw the Book, and
beheld the things which were in the Book, he was troubled in spirit
and much cast down.
“And he hated the Book and the two beasts that put words into
the Book, for he judged according to the reports of men;
nevertheless, the man was crafty in counsel, and more cunning than
his fellows.
“And he said unto the two beasts, Come ye and put your trust
under the shadow of my wings, and we will destroy the man whose
name is as ebony and his Book.
“And the two beasts gave ear unto him, and they came over to
him, and bowed down before him with their faces to the earth....
“Then was the man whose name is as ebony ‘sore dismayed,’
and appealed to the great magician who dwelleth by the old fastness
hard by the river Jordan which is by the Border (to Walter Scott),
and the magician opened his mouth and said, Lo! my heart wisheth
thy good, and let the thing prosper which is in thy hands to do it.
“But thou seest that my hands are full of working, and my labour
is great. For, lo! I have to feed all the people of my land, and none
knoweth whence his food cometh, but each man openeth his mouth
and my hand filleth it with pleasant things. (This is more than a
shrewd guess of the authorship of the Waverley Novels.)
“Moreover, thine adversary also is of my familiars (Constable, his
publisher).
“Yet be thou silent, peradventure will I help thee some little.”
Chapter II. shows us Blackwood gazing despondently from his
inner chamber, when a veiled figure appears, who
“Gave unto the man in plain apparel a tablet containing the
names of those upon whom he should call; and when he called they
came, and whomsoever he asked he came....
“And the first which came was after the likeness of the beautiful
leopard, from the valley of the palm-trees, whose going forth was
comely as the greyhound, and his eyes like the lightning of fiery
flame (Professor Wilson, author of the ‘Isle of Palms.’)...
“There came also from a far country, the scorpion which
delighteth to sting the faces of men, that he might sting sorely the
countenance of the man which is crafty, and of the two beasts
(Lockhart).
“Also the great wild boar from the forest of Lebanon, and he
roused up his spirit; and I saw him whetting his dreadful tusks for
the battle” (James Hogg).
Then come Dr. Macrie, Sir William Hamilton, Arthur Mower, “and
the hyæna that escheweth the light, and cometh forth at eventide to
raise up and gnaw the bones of the dead, and it is as a riddle unto a
vain man (Riddell, the legal antiquarian).
“And the beagle and the slowhound after their kind, and all the
beasts of the field, more than could be numbered, they were so
many.”
In Chapter III., Constable finds that the “bear” and the “lamb”
are unprofitable servants, and he, too, calls for aid, but Jeffrey—“the
familiar spirit unto whom he had sold himself”—Leslie, and Playfair—
contributors to the Edinburgh—refuse to come. In Chapter IV.,
Constable does get aid from Macney Napier, and others.
“And when I saw them all gathered together, I said unto myself,
Of a truth the man which is crafty hath many in his host, yet, think I,
that scarcely will these be found sufficient against them which are in
the gates of the man who is clothed in plain apparel....
“Verily the man which is crafty shall be defeated, and there shall
not escape one to tell of his overthrow.
“And while I was yet speaking, the hosts drew near, and the city
was moved; and my spirit failed within me, and I was sore afraid,
and I turned to escape away.
“And he that was like unto the messenger of a king, said unto
me, Cry: and I said, What shall I cry? for the day of vengeance is
come upon all those that ruled the nation with a rod of iron.
“And I fled into an inner chamber to hide myself, and I heard a
great tumult, but I wist not what it was.”
It is very hard for us now to duly appreciate the crushing effect
of this Caldee manuscript.
It is certainly humorous, after a fashion now so prevalent in
America, and undoubtedly witty.
Among the Edinburgh people of that time, when every man
knew his neighbour, the effect was absolutely prodigious. A yell of
despairing pain arose from one portion of the Whig party, who, if
they had no administrative power in their hands, had hitherto held a
patent of all literary ability; and from the other portion came an
equally discordant cry, which eventually culminated in a fierce
accusation of blasphemy and irreligion. Perhaps, however, the
strongest test we can apply to the power of this galling squib is the
fact that every title bestowed in its pages has “stuck” to the
individual against whom it was directed.
Blackwood was alarmed at the commotion he had caused,
withdrew the obnoxious article from the second edition, suppressed
it in what he could of the first, and in the second number inserted
the following announcement:—“The editor has learnt with regret
that an article in the first edition of last number, which was intended
merely as a jeu d’esprit, has been construed so as to give offence to
individuals justly entitled to respect and regard; he has, on that
account, withdrawn it in the second edition, and can only add that, if
what has happened could have been anticipated, the article in
question certainly never would have appeared.” It was, however, too
late, war had been declared to the knife, and Blackwood was
nothing loath to continue the struggle.
“The conception of the Caldee MS.,” says Wilson’s son-in-law,
Professor Ferrier, “and the first thirty-seven verses of Chapter I., are
to be ascribed to the Ettrick Shepherd; the rest of the composition
falls to be divided between Professor Wilson and Mr. Lockhart, in
proportions which cannot now be determined.” Again, Mrs. Gordon
tells us that this audacious squib was composed in her
grandmother’s house, 23, Queen Street, where Wilson lived, “amid
such shouts of laughter as made the ladies in the room above send
to inquire and wonder what the gentlemen below were about;” and
yet she adds, as if to protect her father from suspicion of a share in
it, that she “cannot trace to her father’s hand any instance of
unmanly attack, or one shade of real malignity.” Very probably not;
but at the same time the fun of the squib is decidedly in Wilson’s
favourite manner. “An old contributor to Blackwood,” who, in 1860,
furnished a most interesting and full account of Maga and
Blackwoodiana to the columns of the Bookseller, asserts, in
reference to Hogg’s claim, “on the best authority (that of the man
who did write it), that there is no foundation whatever for any such
pretext. The hare was started by Wilson at one of those symposia
which preceded and perhaps suggested the Noctes. The idea was
caught up with avidity by Hogg, and some half-dozen verses were
suggested by him on the ensuing day; but we are, we believe,
correct in affirming that no part of his ébauche appeared in the
original or any other draft of the article.” It is to be wished that this
writer, whose article evidently exhibits personal knowledge, and,
apart from a running attack upon Hogg, due impartiality, had, in
putting forward a new version of the story, in contradiction to those
already given, been enabled to give us the name of the writer,
apparently, from the wording of the context, a new claimant.
Not only were Blackwood’s “enemies” discomforted, but even his
friends were sore dismayed. The first number of Blackwood bore the
imprint of John Murray, but the “Caldee MS.” caused him to withdraw
his name, but after passing through the hands of three different
London agents, the sixth again appeared under his countenance.
This number, however, contained some unpalatable strictures on
Gifford and the Quarterly Reviewers, and the Albemarle Street
patronage was again withdrawn, only to be renewed in the eleventh
number; but by the time it reached the seventeenth he washed his
hands of it entirely, and in future it appeared without the ornamental
appendage of any London bookseller’s name; the agency, distinctly
one of sale only, was given to Cadell and Davies, who found it
profitable enough to occupy the greater part of their attention.
Cadell, naturally as nervous as Murray of giving, or being in any way
instrumental in giving, offence, kept a stereotyped reply in readiness
for any angry victim who rushed into his shop for redress—“I know
nothing of the contents of the magazine; I am merely the carrier of
a certain portion of its circulation to its English readers.”
From the commencement of the new series—from the
foundation that is of Blackwood’s Edinburgh Magazine—Blackwood’s
fortunes and even the story of his life are inextricably bound up in
the progress of the periodical; for he did not again, once he had got
rid of Pringle and Cleghorne, entrust its charge and conduct to the
care of any editor. For a long time Wilson was supposed to occupy
the editorial chair. This supposition is treated in a letter, printed by
his daughter: “Of Blackwood I am not the editor, although I believe I
very generally got both the credit and discredit of being Christopher
North. I am one of the chief writers, perhaps the chief writer, but
never received one shilling from the proprietor, except for my own
compositions. Being generally on the spot, I am always willing to
give him my advice, and to supply such articles as are most wanted,
when I have leisure.” “From an early period of its progress,” says
Lockhart, speaking of Blackwood and the magazine, “it engrossed a
Welcome to our website – the perfect destination for book lovers and
knowledge seekers. We believe that every book holds a new world,
offering opportunities for learning, discovery, and personal growth.
That’s why we are dedicated to bringing you a diverse collection of
books, ranging from classic literature and specialized publications to
self-development guides and children's books.
ebookmasss.com