Errata

Arduino Cookbook

Errata for Arduino Cookbook

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
PDF Page 22
paragraph 1 (counting from zero) under "Discussion"

"unsigned values are always positive" is incorrect. This should read "unsigned values are always non-negative" since unsigned values may include zero. It is also not correct to state "an unsigned variable has twice the capacity of a signed variable". The capacity is exactly the same, but it is shifted along the number line. I'll leave it up to you as to how best to correctly express this for your audience.

Andy Waddington  Feb 12, 2018 
Printed Page 159
bottom of correction

For the following corrections,Printed Copy page-numbers
differ from those on the errata-list:

P159 Recipe 7.6 is on P233.
P300 Correction refers to P298
P346 Correction refers to P344
P412 Correction refers to P411
P419 Correction refers to P418
P448 Figure 14-8 is on P444
P454 bottom reference is on P453 top

mgt6910  Aug 12, 2011 
PDF Page 176
FInal paragraph

You are using the word "accuracy" when what you really mean is "precision". The same error occurs on p 177 in the second sentence of the first paragraph. On p 179 in the final sentence of the paragraph starting "The last line", "accurate" should also be "precise". Science education makes a point of drilling into students the important difference between accuracy and precision !

Andy Waddington  Feb 12, 2018 
Printed Page 248
Very Top

Says "The resistor is shown in Figure 7-2 connected between the cathode and ground..."

Figure 7-2:
Resistor is connected from anode to pin. It might be more logical to say it doesn't matter where the resistor goes because (it's all in series and) it limits the current through the path the LED is on.

Just pointing out an inconsistency. Also, in figure 7-2, the circuit connection from the LED of pin 3 to Gnd isn't the same as the other two.

Not sure about other versions, just version 2 (2nd revision) of printed book.

Tomi  Jan 05, 2016 
Printed Page 282
Sketch 7.14 on 11th line including a blank line from the end of sketch

In the sketch 7.14, for the "knight rider" effect to proceed, that is, for the LED sequences to sequentially flash in a cycle of back and forth from either end, the line:

Tlc.set(channel, intensity ); // full intensity on this LED
if (channel < 16){

should be changed to:

Tlc.set(channel, intensity ); // full intensity on this LED
if (channel < 15){

Otherwise the statement:

else {
direction = -1

is never read and the flashing sequence merely cycles to start of loop
after the LED Out15 sequence, (0-15), ends and jumps back to the LED Out0 flash with only a single direction of flashing, the reverse flash sequence (15-0) is never displayed.

A. Clausell  Oct 04, 2014 
Printed Page 299
top

Where it says if (Serial.available()) it should be while(Serial.available()), to empty the serial buffer correctly.

Anonymous  Jun 04, 2013 
Printed Page 616
bool setPulseWidth

RESOLUTION is not declared in the scope of the setPulseWidth routine and there is no explanation in the discussion.

What should RESOLUTION be?

Anonymous  Nov 06, 2018