Muutke küpsiste eelistusi

Programming Arduino Getting Started with Sketches [Pehme köide]

  • Formaat: Paperback / softback, 176 pages, kõrgus x laius x paksus: 213x137x10 mm, kaal: 205 g, 45 Illustrations
  • Ilmumisaeg: 29-Nov-2011
  • Kirjastus: TAB Books Inc
  • ISBN-10: 0071784225
  • ISBN-13: 9780071784221
  • Pehme köide
  • Hind: 26,19 €*
  • * saadame teile pakkumise kasutatud raamatule, mille hind võib erineda kodulehel olevast hinnast
  • See raamat on trükist otsas, kuid me saadame teile pakkumise kasutatud raamatule.
  • Kogus:
  • Lisa ostukorvi
  • Tasuta tarne
  • Lisa soovinimekirja
  • Formaat: Paperback / softback, 176 pages, kõrgus x laius x paksus: 213x137x10 mm, kaal: 205 g, 45 Illustrations
  • Ilmumisaeg: 29-Nov-2011
  • Kirjastus: TAB Books Inc
  • ISBN-10: 0071784225
  • ISBN-13: 9780071784221
Using clear, easy-to-follow examples, Programming Arduino: Getting Started with Sketches reveals the software side of Arduino and explains how to write well-crafted sketches using the modified C language of Arduino. No prior programming experience is required! The downloadable sample programs featured in the book can be used as-is or modified to suit your purposes. - Understand Arduino hardware fundamentals - Install the software, power it up, and upload your first sketch - Learn C language basics - Write functions in Arduino sketches - Structure data using arrays and strings - Use Arduinos digital and analog inputs and outputs in your programs - Work with the Standard Arduino Library - Write sketches that can store data - Program LCD displays - Use anEthernet shield to enable Arduino to function as a web server - Write your own Arduino libraries --Provided by publisher. Provided by publisher. Program Arduino with ease!Using clear, easy-to-follow examples, Programming Arduino: Getting Started with Sketches reveals the software side of Arduino and explains how to write well-crafted sketches using the modified C language of Arduino. No prior programming experience is required! The downloadable sample programs featured in the book can be used as-is or modified to suit your purposes.Understand Arduino hardware fundamentalsInstall the software, power it up, and upload your first sketchLearn C language basicsWrite functions in Arduino sketchesStructure data using arrays and stringsUse Arduinos digital and analog inputs and outputs in your programsWork with the Standard Arduino LibraryWrite sketches that can store dataProgram LCD displaysUse an Ethernet shield to enable Arduino to function as a web serverWrite your own Arduino librariesIn December 2011, Arduino 1.0 was released. This changed a few things that have caused two of the sketches in this book to break. The change that has caused trouble is that the classes Server and Client have been renamed to EthernetServer and EthernetClient respectively. To fix this:Edit sketches 10-01 and 10-02 to replace all occurrences of the word Server with EthernetServer and all occurrences of Client with EthernetClient.Alternatively, you can download the modified sketches for 10-01 and 10-02 from here: http://www.arduinobook.com/arduino-1-0Make Great Stuff!TAB, an imprint of McGraw-Hill Professional, is a leading publisher of DIY technology books for makers, hackers, and electronics hobbyists.
Acknowledgments ix
Introduction xi
1 This Is Arduino
1(14)
Microcontrollers
1(2)
Development Boards
2(1)
A Tour of an Arduino Board
3(4)
Power Supply
4(1)
Power Connections
4(1)
Analog Inputs
4(1)
Digital Connections
5(1)
Microcontroller
5(1)
Other Components
6(1)
The Origins of Arduino
7(1)
The Arduino Family
8(5)
Uno, Duemilanove, and Diecimila
9(1)
Mega
10(1)
Nano
10(1)
Bluetooth
11(1)
Lilypad
11(2)
Other "Official" Boards
13(1)
Arduino Clones and Variants
13(1)
Conclusion
13(2)
2 Getting Started
15(12)
Powering Up
15(1)
Installing the Software
16(1)
Uploading Your First Sketch
17(5)
The Arduino Application
22(3)
Conclusion
25(2)
3 C Language Basics
27(24)
Programming
27(2)
What Is a Programming Language?
29(5)
Blink---Again!
34(2)
Variables
36(2)
Experiments in C
38(4)
Numeric Variables and Arithmetic
40(2)
Commands
42(6)
If
42(3)
For
45(3)
While
48(1)
The #define Directive
48(1)
Conclusion
49(2)
4 Functions
51(16)
What Is a Function?
51(2)
Parameters
53(1)
Global, Local, and Static Variables
54(3)
Return Values
57(1)
Other Variable Types
58(4)
Floats
59(1)
Boolean
59(2)
Other Data Types
61(1)
Coding Style
62(4)
Indentation
62(1)
Opening Braces
63(1)
Whitespace
64(1)
Comments
64(2)
Conclusion
66(1)
5 Arrays and Strings
67(18)
Arrays
67(5)
Morse Code SOS Using Arrays
71(1)
String Arrays
72(2)
String Literals
72(1)
String Variables
73(1)
A Morse Code Translator
74(9)
Data
75(1)
Globals and Setup
76(1)
The loop function
76(4)
The flashSequence Function
80(1)
The flashDotOrDash Function
81(1)
Putting It All Together
81(2)
Conclusion
83(2)
6 Input and Output
85(20)
Digital Outputs
85(4)
Digital Inputs
89(11)
Pull-up Resistors
90(3)
Internal Pull-up Resistors
93(1)
Debouncing
94(6)
Analog Outputs
100(2)
Analog Input
102(1)
Conclusion
103(2)
7 The Standard Arduino Library
105(10)
Random Numbers
105(7)
Math Functions
108(1)
Bit Manipulation
109(2)
Advanced I/O
111(1)
Generating Tones
111(1)
Feeding Shift Registers
112(1)
Interrupts
112(2)
Conclusion
114(1)
8 Data Storage
115(10)
Constants
115(1)
The Progmem Directive
116(1)
Eeprom
117(4)
Storing an int in Eeprom
118(1)
Storing a float in Eeprom (Unions)
119(1)
Storing a String in Eeprom
120(1)
Clearing the Contents of Eeprom
121(1)
Compression
121(2)
Range Compression
121(2)
Conclusion
123(2)
9 LCD Displays
125(6)
A USB Message Board
127(2)
Using the Display
129(1)
Other LCD Library Functions
130(1)
Conclusion
130(1)
10 Arduino Ethernet Programming
131(12)
Ethernet Shields
132(1)
Communicating with Web Servers
132(2)
HTTP
132(1)
HTML
132(2)
Arduino as a Web Server
134(3)
Setting Arduino Pins over the Network
137(5)
Conclusion
142(1)
11 C++ and Libraries
143(10)
Object Orientation
143(1)
Classes and Methods
143(1)
Built-in Library Example
144(1)
Writing Libraries
144(7)
The Header File
145(1)
The Implementation File
146(1)
Completing Your Library
147(4)
Conclusion
151(2)
Index 153
Dr. Simon Monk has a degree in Cybernetics and Computer Science and a PhD in Software Engineering. He spent several years as an academic before he returned to industry, co-founding the mobile software company Momote Ltd. He has been an active electronics hobbyist since his early teens and is an occasional author in hobby electronics magazines. Simon is also author of 30 Arduino Projects for the Evil Genius and 15 Dangerously Mad Projects for the Evil Genius.