Mastering Arduino: A project-based approach to electronics, circuits, and programming
- Length: 372 pages
- Edition: 1
- Language: English
- Publisher: Packt Publishing
- Publication Date: 2018-09-28
- ISBN-10: 178883058X
- ISBN-13: 9781788830584
- Sales Rank: #1862445 (See Top 100 Books)
Mastering Arduino is a practical, no-nonsense guide that will teach you the electronics and programming skills that you need to create advanced Arduino projects.
Key Features
- Covers enough electronics and code for users at any level
- Includes complete circuit diagrams for all projects
- Final robot project combines knowledge from all the chapters
Book Description
Mastering Arduino is an all-in-one guide to getting the most out of your Arduino. This practical, no-nonsense guide teaches you all of the electronics and programming skills that you need to create advanced Arduino projects. This book is packed full of real-world projects for you to practice on, bringing all of the knowledge in the book together and giving you the skills to build your own robot from the examples in this book. The final two chapters discuss wireless technologies and how they can be used in your projects.
The book begins with the basics of electronics, making sure that you understand components, circuits, and prototyping before moving on. It then performs the same function for code, getting you into the Arduino IDE and showing you how to connect the Arduino to a computer and run simple projects on your Arduino.
Once the basics are out of the way, the next 10 chapters of the book focus on small projects centered around particular components, such as LCD displays, stepper motors, or voice synthesizers. Each of these chapters will get you familiar with the technology involved, how to build with it, how to program it, and how it can be used in your own projects.
What you will learn
- Explains the basics of electronics and circuits along with the Arduino IDE and basic C operations
- Use sensors to build a mini weather station
- Control LEDs using code
- Power a robot arm using stepper motors
- Remotely control your Arduino using RF, Bluetooth LE, and Bluetooth Classic
- Make a sound tone generator with buttons
Who this book is for
Mastering Arduino is for anybody who wants to experiment with an Arduino board and build simple projects. No prior knowledge is required, as the fundamentals of electronics and coding are covered in this book as well as advance projects.
Title Page Copyright and Credits Mastering Arduino Dedication Packt Upsell Why subscribe? packt.com Contributors About the author About the reviewers Packt is searching for authors like you Preface Who this book is for What this book covers To get the most out of this book Download the example code files Download the color images Conventions used Get in touch Reviews The Arduino History of the Arduino What is the Arduino? Touring the Arduino UNO R3 Powering the Arduino Using the VIN/GND pins to power the Arduino Using the DC supply input to power the Arduino Using the USB connector to power the Arduino Arduino shields Arduino pin Digital pins Analog input pins PWM pins Power pins Serial pins SPI pins Different Arduino boards Arduino Micro Arduino Mega 2560 Lilypad Arduino Nano Generic boards Summary Basic Electronics Electronic building block Power supply Input Output Control circuit Multimeter Electronic components Resistor Potentiometer Switches Transistor LED Capacitor Integrated circuit What is electricity? Current Voltage Resistance Ohm's law What is power? Resistor color codes Summary Circuit Diagrams What is a circuit? Fritzing Fritzing diagrams Schematic diagrams Parallel and series circuits Series circuits Resistance Voltage Current Parallel circuits Resistance Voltage Current Voltage drop Light up LED Summary Basic Prototyping Setting up a work area Using a solderless breadboard Dupont (jumper) cables Prototyping Four building blocks of an electronic project Creating a diagram Building the prototype First prototype Summary Arduino IDE Arduino Sketch Arduino IDE Exploring the IDE Configuring the Arduino within the IDE Arduino web editor Exploring Configuring the Arduino within the IDE Examples Arduino libraries Serial monitor Hello World Echo Summary Programming the Arduino - The Basics Curly brackets Semicolons Comments Variables Data types Boolean Byte Integer Long Double and float Character Arrays Character arrays Constants Arithmetic functions Comparison operators Logical operators Casting Decision making Looping Functions Summary Programming the Arduino - Beyond the Basics Setting digital pin mode Digital write Digital read Analog write Analog read Structures Unions Adding tabs Working with tabs Object-oriented programming String library Summary Motion Sensor Introduction Components needed Circuit diagrams Code Running the project Challenge Summary Environment Sensors Introduction Components needed Circuit diagrams Code Running the project Challenge Summary Obstacle Avoidance and Collision Detection Introduction Crash sensor Obstacle avoidance sensor Ultrasonic range finder Components needed Circuit diagrams Code Running the project Challenge Summary Fun with Lights Introduction Components needed Circuit diagrams Code RGB LED NeoPixel shield Running the project Challenge Summary Fun with Sound Introduction Components needed Circuit diagrams Code Using the tone function Playing a ringtone in the RTTTL format Challenge Summary Using LCD Displays Introduction Components needed Circuit diagrams Code Drawing a line Displaying text Rotating text Basic shapes Filled shape Rectangle Filled rectangle Rounded rectangle Filled rounded rectangle Challenge Summary Speech Recognition and Voice Synthesizing Introduction Components needed Circuit diagrams Code Running the project Challenge Summary DC Motors and Motor Controllers Introduction Components needed Circuit diagrams Code Running the project Challenge Summary Servo Motors Introduction Components needed Circuit diagrams Code Challenge Summary Using a Relay Introduction Components needed Circuit diagrams Code Challenge Summary Remotely Controlling the Arduino Introduction Components needed Circuit diagrams Code Challenge Summary Creating a Robot Introduction Chassis and movement Motors and power Autonomous robot–obstacle avoidance and collision detection Remotely controlling a robot User feedback Making things rotate Non-robotic projects Weather station Smart thermostat Proximity sensor Challenge Summary Bluetooth LE Introduction Bluetooth LE radio Network topology Bluetooth LE broadcasting Bluetooth LE connections Bluetooth LE profiles Generic access profile (GAP) Generic attribute (GATT) profile HM-10 Bluetooth module Components needed Circuit diagrams Project 1 – serial communication Test command Query software version Restore factory default Restart module Query MAC (Media Access Control) address Set name Query name Set the advertising interval Query the advertising interval Set advertising type Query advertising type Set baud rate Query baud rate Set characteristic id Set service id Query service id Set role Query role Clear last connected device Try to connect to last connected device Try to connect to an address Set pin code Query pin code Set module power Query module power Set bond mode Query bond mode Set notify information Query notify information Project 2 – controlling LED Project 3 – environmental sensor What is new with Bluetooth 4.1, 4.2 and 5.0? Bluetooth 4.1 Bluetooth 4.2 Bluetooth 5.0 Bluetooth mesh Challenge Summary Bluetooth Classic Introduction Bluetooth radio Network topology Components needed Circuit diagrams Project 1 – configuring the Bluetooth modules Test command Reset command Query firmware Restore defaults Query module address Set/Query module mode Set/Query UART parameters Set/Query connection mode Set/Query bind address Project 2 – serial connection, sending data Project 3 – joystick remote control Summary Another Book You May Enjoy Leave a review - let other readers know what you think
Donate to keep this site alive
How to download source code?
1. Go to: https://github.com/PacktPublishing
2. In the Find a repository… box, search the book title: Mastering Arduino: A project-based approach to electronics, circuits, and programming
, sometime you may not get the results, please search the main title.
3. Click the book title in the search results.
3. Click Code to download.
1. Disable the AdBlock plugin. Otherwise, you may not get any links.
2. Solve the CAPTCHA.
3. Click download link.
4. Lead to download server to download.