Learning C for Arduino
eBook - ePub

Learning C for Arduino

Syed Omar Faruk Towaha

Share book
  1. 378 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Learning C for Arduino

Syed Omar Faruk Towaha

Book details
Book preview
Table of contents
Citations

About This Book

Ultimate guide for programming Arduino with CAbout This Book• Get hands-on experience with the Ardruino board and learn to control it with your programming skills• Learn the essential concepts of C such as variables, data structures, functions, loops, and pointers• Work with electronic devices such as LEDs, switches, and motors and connect them to Arduino using CWho This Book Is ForThis book is for hobbyists who have no knowledge about programming and microcontrollers, but are keen to learn C programming using a very affordable hardware device.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 boardIn DetailThis 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.Style and approachThis comprehensive step-by-step guide starts with the basic concepts of C for your Arduino board. It will teach you how to leverage C to explore the capabilities of Arduino.

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Learning C for Arduino an online PDF/ePUB?
Yes, you can access Learning C for Arduino by Syed Omar Faruk Towaha in PDF and/or ePUB format, as well as other popular books in Computer Science & Hardware. We have over one million books available in our catalogue for you to explore.

Information

Year
2017
ISBN
9781787123571
Edition
1

Learning C for Arduino


Learning C for Arduino

Copyright Š 2017 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: March 2017
Production reference: 1220317
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78712-009-9
www.packtpub.com

Credits

Author
Syed Omar Faruk Towaha
Copy Editor
Safis Editing
Reviewer
Francesco Balducci
Project Coordinator
Kinjal Bari
Commissioning Editor
Veena Pagare
Proofreader
Safis Editing
Acquisition Editor
Mansi Sanghavi
Indexer
Mariammal Chettiyar
Content Development Editor
Trusha Shriyan
Graphics
Kirk D'Penha
Technical Editor
Naveenkumar Jain
Production Coordinator
Aparna Bhagat

About the Author

Syed Omar Faruk Towaha has degrees in physics and computer engineering. He is a technologist, tech speaker, and physics enthusiast from Shahjalal University of Science and Technology (SUST), Bangladesh. He has passion for programming, tech writing, and physics experiments. His recent books include Easy Circuits for Kids, Fundamentals of Ruby, How You Should Design Algorithms, and JavaScript Projects for Kids. He is an Oracle-certified professional developer who is currently involved with a number of projects that serve both physics and computer architecture. He is currently working as the CTO of an IT company.

About the Reviewer

Francesco Balducci is a software engineer, working on Digital Signal Processing, micro-controllers, systems-on-chip, and ASIC products, and is currently employed at ST Microelectronics. He received his degree in Electronic Engineering at Politecnico di Torino in 2005. His thesis was about software security and methods to measure the strength of copy protection systems.

www.PacktPub.com

For support files and downloads related to your book, please visit www.PacktPub.com.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at [email protected] for more details.
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
www.PacktPub.com
https://www.packtpub.com/mapt
Get the most in-demand software skills with Mapt. Mapt gives you full access to all Packt books and video courses, as well as industry-leading tools to help you plan your personal development and advance your career.

Why subscribe?

  • Fully searchable across every book published by Packt
  • Copy and paste, print, and bookmark content
  • On demand and accessible via a web browser

Customer Feedback

Thanks for purchasing this Packt book. At Packt, quality is at the heart of our editorial process. To help us improve, please leave us an honest review on this book's Amazon page at https://www.amazon.com/dp/1787120090.
If you'd like to join our team of regular reviewers, you can e-mail us at [email protected]. We award our regular reviewers with free eBooks and videos in exchange for their valuable feedback. Help us be relentless in improving our products!

Preface

Have you ever thought about making a robot? Or an electronic device that can be programmed for serving mechanical or logical purposes? If yes, then this book is the perfect guide for you. Throughout this book, you will be guided to learn C programming, which is required to program the microcontroller used in a logical device. You will also learn how you can develop your ideas about making an intelligent device. You will be able to program Arduino for your projects or play with Arduino for fun.

What this book covers

Chapter 1, Getting Started, in this chapter, you will learn about Arduino, types of Arduino, Install the Arduino IDE and know the Arduino IDE. This chapter will also have details about the functions of the Arduino IDE software.
Chapter 2, Our First Program! in this chapter, you will learn how you can connect your Arduino to the computer and write the first program for the Arduino. You will also learn how you can format your code. A simple Arduino project will also be discussed in this chapter.
Ch...

Table of contents