Learning C for Arduino

Ultimate guide for programming Arduino with C
Preview in Mapt
Code Files

Learning C for Arduino

Syed Omar Faruk Towaha

1 customer reviews
Ultimate guide for programming Arduino with C

Quick links: > What will you learn?> Table of content> Product reviews

Mapt Subscription
FREE
$29.99/m after trial
eBook
$25.20
RRP $35.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$25.20
$44.99
$29.99 p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Learning C for Arduino Book Cover
Learning C for Arduino
$ 35.99
$ 25.20
Arduino: Building exciting LED based projects and espionage devices Book Cover
Arduino: Building exciting LED based projects and espionage devices
$ 55.99
$ 39.20
Buy 2 for $35.00
Save $56.98
Add to Cart

Book Details

ISBN 139781787120099
Paperback378 pages

Book Description

This book will start with the fundamentals of C programming and programming topics, such data types, functions, decision making, program loops, pointers, and structures, with the help of an Arduino board. Then you will get acquainted with Arduino interactions with sensors, LEDs, and autonomous systems and setting up the Arduino environment. Moving on you will also learn how to work on the digital and analog I/O, establish serial communications with autonomous systems, and integrate with electronic devices. By the end of the book, you will be able to make basic projects such as LED cube and smart weather system that leverages C.

Table of Contents

Chapter 1: Getting Started
Arduino
Exploring Arduino Uno
Downloading and installing Arduino IDE
Explore Arduino IDE
Summary
Chapter 2: Our First Program!
Connecting your Arduino
Hello Arduino!
Things to remember
Summary
Chapter 3: Exploring C with Arduino IDE
Variables
Data types
Collecting and showing data through serial port
Strings and operations with strings
Summary
Chapter 4: Blinking with Operations and Loops
Expression in C
Logical operators
Exercises
Loops
Exercise
Summary
Chapter 5: Functions and Files with Arduino
Functions
Data logging
Connecting an SD card to your Arduino
Writing on a file
Summary
Chapter 6: Arduino and C++
Object Oriented Programming
Going deeper into class
Understanding OOP better
Fundamentals of OOP
GSM modules
Arduino library
Making a call using GSM module
Sending an SMS
Receiving an SMS
Summary
Chapter 7: Using Pointers and Structure
Pointers
Pointers and arrays
Usages of pointers
Learning about structure
Structure and function
Nested structure
Exercise
Summary
Chapter 8: Working with Arduino Libraries
Arduino library
The Firmata library
The SoftwareSerial library
Uses of LiquidCrystal Library
Installing a library
Removing a library
Creating our own library
Summary
Chapter 9: Lets Build Something Awesome
LED cube
Smart weather system
Home security
Summary
Chapter 10: Few Error Handlings
Few common errors
Auto-reset
Bootloader
java.lang.StackOverflowError
Arduino software freeze when I try to upload a program
Board doesn't turn on (the green power LED doesn't light up)
Get an error when launching arduino.exe on Windows
Could not find the main class
Cygwin conflicts on Windows
Tools | Serial Port menu is not visible
Sketch appear to upload successfully but not do anything
Undeclared functions or undeclared types error
Invalid device signature when trying to upload a sketch
'xxx' does not name a type error
Library is not Installed properly
Wrong folder location
Library dependencies
Wrong library name
Wrong folder name
Forgot to close the Arduino IDE
Check your hardware connections
Check the coding syntax error
Use serial monitor
Stay connected with the Arduino forum
Summary

What You Will Learn

  • Play with mathematical operations using C
  • Use logical operations and loops to play with LEDs and the Arduino board
  • Create custom functions using C and connect an SD card to the Arduino
  • Use Object-oriented Programming to connect a GSM module to the Arduino board
  • Play with an LCD board and Servo using standard Arduino libraries
  • Build projects using Arduino such as a LED cube, a smart weather system, and home security
  • Identify and fix common errors on an Arduino board

Authors

Table of Contents

Chapter 1: Getting Started
Arduino
Exploring Arduino Uno
Downloading and installing Arduino IDE
Explore Arduino IDE
Summary
Chapter 2: Our First Program!
Connecting your Arduino
Hello Arduino!
Things to remember
Summary
Chapter 3: Exploring C with Arduino IDE
Variables
Data types
Collecting and showing data through serial port
Strings and operations with strings
Summary
Chapter 4: Blinking with Operations and Loops
Expression in C
Logical operators
Exercises
Loops
Exercise
Summary
Chapter 5: Functions and Files with Arduino
Functions
Data logging
Connecting an SD card to your Arduino
Writing on a file
Summary
Chapter 6: Arduino and C++
Object Oriented Programming
Going deeper into class
Understanding OOP better
Fundamentals of OOP
GSM modules
Arduino library
Making a call using GSM module
Sending an SMS
Receiving an SMS
Summary
Chapter 7: Using Pointers and Structure
Pointers
Pointers and arrays
Usages of pointers
Learning about structure
Structure and function
Nested structure
Exercise
Summary
Chapter 8: Working with Arduino Libraries
Arduino library
The Firmata library
The SoftwareSerial library
Uses of LiquidCrystal Library
Installing a library
Removing a library
Creating our own library
Summary
Chapter 9: Lets Build Something Awesome
LED cube
Smart weather system
Home security
Summary
Chapter 10: Few Error Handlings
Few common errors
Auto-reset
Bootloader
java.lang.StackOverflowError
Arduino software freeze when I try to upload a program
Board doesn't turn on (the green power LED doesn't light up)
Get an error when launching arduino.exe on Windows
Could not find the main class
Cygwin conflicts on Windows
Tools | Serial Port menu is not visible
Sketch appear to upload successfully but not do anything
Undeclared functions or undeclared types error
Invalid device signature when trying to upload a sketch
'xxx' does not name a type error
Library is not Installed properly
Wrong folder location
Library dependencies
Wrong library name
Wrong folder name
Forgot to close the Arduino IDE
Check your hardware connections
Check the coding syntax error
Use serial monitor
Stay connected with the Arduino forum
Summary

Book Details

ISBN 139781787120099
Paperback378 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Arduino: Building exciting LED based projects and espionage devices Book Cover
Arduino: Building exciting LED based projects and espionage devices
$ 55.99
$ 39.20
Beginning C++ Programming Book Cover
Beginning C++ Programming
$ 39.99
$ 28.00
IoT: Building Arduino-Based Projects Book Cover
IoT: Building Arduino-Based Projects
$ 63.99
$ 44.80
C Programming for Arduino Book Cover
C Programming for Arduino
$ 29.99
$ 21.00
Build Supercomputers with Raspberry Pi 3 Book Cover
Build Supercomputers with Raspberry Pi 3
$ 31.99
$ 22.40
Learn Arduino Prototyping in 10 days Book Cover
Learn Arduino Prototyping in 10 days
$ 27.99
$ 19.60