Table of Contents
ARDUINO PROGRAMMING
A Comprehensive Beginner's Guide
to learn the Realms of Arduino from A-Z
Introduction
Where Do I Find a Microcontroller?
Arduino
Know the Hardware
Chapter 1
:
Basic Concepts of Arduino
Physical Computing
Open Source Hardware
Free Software
Arduino
Processing
Fritzing
Chapter 2
:
Electronics
Concept of Electronics
Voltage
Electric Current
Direct Current
Alternate Current
Resistance
Ohm's Law
Electronic Systems
Summary of Electronic Systems
Electronic Signals
Voltage Divider
Analog to Digital Converter
PWM Pulse Width Modulation
Serial Communication
Chapter 3
:
Electronic Components
Microcontroller
Protoboard
Resistor
Thermistor
Diode
Transistor
Capacitor
LED
RGB LED
LCD
Button
Reed Switch
Potentiometer
Photocell
Piezoelectric Transducer
DC Motor
Relay
Chapter 4
:
Arduino Programming
The Arduino Project
Arduino IDE for Windows
Arduino IDE for Linux
Programming
Programming Language
Algorithm
Arduino Software
Sketches
Serial Monitor
Arduino Library
Programming Arduino
Digital Functions
Analog Functions
Chapter 5
:
Starter Kit with Arduino Uno R3
Lessons
Button
Serial Reading of a Digital Input
Serial Reading of an Analog Input
Command with Serial Communication
Fade
Loop
LDR Sensor
Thermistor
DC Motor
LCD
Typing into the LCD
Piezo as Analog Output
Scroll Bar with Processing
Arduino - Thermostat
Chapter 6
:
If Statement with Arduino, Control the Execution of your Code
If with Arduino - Necessary Material
Syntax of the if Statement with Arduino
Comparison Operators in if Statements with Arduino
Example if Statement with Arduino
Boolean Operators if with Arduino
if-else with Arduino
Example if-else statement with Arduino
else if with Arduino
Example else if statement with Arduino
Chapter 7
:
Battery and Battery Charge Meter with Arduino
The Objective of the Battery and Battery Charge Meter with the Arduino Board
Arduino Components that We Will Use
Riding the Circuit with Arduino
Programming the Battery and Battery Charge Meter with Arduino
Arduino Native Code
Chapter 8
:
ADS1115 ADC Digital-Analog Converter for Arduino and ESP8266
What is a Digital-Analog Converter?
What is an ADS1115?
Install Library for ADS1115
Single-End Mode Programming
Differential Mode
Differential Mode Programming
Comparator Mode
Chapter 9
:
Arduino Interruptions
Practical Example: Controlling the Speed of Fantastic Car Lights
Conclusion
References
ARDUINO PROGRAMMING
Tip and Tricks to Learn Arduino Programming Efficiently
Introduction
What is Arduino?
Advantages of Arduino
Arduino - Choosing a Hardware Platform
Equipment Arduino UNO R3
Clones, or Arduino (un) Original
Materials you need to program Arduino
Arduino IDE Installation
What happens when you install the wrong IDE?
If you already have Arduino
Chapter 1
:
Basic Concepts of Programming
Conversions
Decimal <-> Binary
Binary <-> Hexadecimal
Decimal <-> Hexadecimal
QUICK Method
The Software
Installation
Downloading
Windows
Mac Os
Under Linux
Software Interface Software Launch
Correspondence
Approach and Use of the Software
The File Menu
Buttons
Equipment
Presentation of the Card
Constitution of the Card
Materials
Visualization
Connectivity
Installation
Windows
Test your Equipment
The Arduino Language (1/2)
Language syntax
The Minimum Code
Function
The Instructions
The Braces
Comments
Accents
The Variables
What is a Variable?
A Variable is a Number
The Name of a Variable
Define a Variable
Code: C
The Arduino Language (2/2)
What is a Loop?
The do... while loop
Concatenation
The Functions
What is a Function?
Make a Function
But what is "Void"?
Empty Functions
The "Typed" Functions
Functions with Parameters
What is going on?
The Tables
What's the Point?
The Maximum Score
Average Calculation
Chapter 2
:
Input / Output Management
Our First Program
But how do you calculate this resistance?
Where do we start?
Create A New Project
What does "HIGH Value or LOW Value" Mean?
Use the Command
The Program
Millis () Function
Limits of the Delay () Function
Chapter 3
:
Programming With Arduino
The Basic Structure of a Sketch
1. Variables to Name
2. Setup (essential in the program)
3. Loop (essential in the program)
Instructions
A Flashing LED
Circuit
The Change Indicators
Sketch:
An LED Pulsing Leave
Sketch:
Simultaneous Lighting and Sound
Sketch:
Activate a LED Touch of a Button
Sketch:
An RGB LED Drive
Sketch 1:
Sketch 2:
The Motion
Sketch:
Read Brightness Sensor
Read Voltages
The "Serial Monitor"
Sketch:
Knobs
Sketch:
Measure Temperatures
Sketch:
Measure Distance
Code:
Enhancements: Reversing Warning
Infrared Remote Control for Controlling Arduino Microcontrollers
Code:
Servo Drive
Code:
LCD Display
Code:
Relay Card
Code:
Stepper Motor
Cabling
Code
Code:
Drop Sensor
Code:
RFID Kit
Read an RFID tag with Arduino and Process the Data
Preparation - the first sketch with the RFID READER
RFID Sketch 2
Sketch 3
Chapter 4
:
Accessories for Arduino
Keypad Shield
Code:
Instructions for LCD Display with I2C Port
Program
Sketch:
Example of use:
Two I²C Displays
Arduino RTC
Cabling:
Extension:
Keypad
The Sketch:
Keypad - Castle
Color Sensor
Cabling:
Generate Tones
Code:
Create Melodies
Arduino Tilt Sensor SW-520D
The Sketch:
Temperature Measured with the LM35
Expansion of the Program:
Code:
Measure the Voltage
Cabling:
We now come to the code:
Four-Digit 7-Segment Display
Programming
Code:
Conclusion
References
ARDUINO PROGRAMMING
Advanced Methods and Strategies
to Learn Arduino Programming
Introduction
Chapter 1
:
Setting Up the Tools
The Arduino Software
Arduino Hardware
Setting Up The Arduino IDE
Working with Arduino
Chapter 2
:
The Basics of Arduino Programming
Curly Bracket
Semicolons
Comments
Variables
Datatype
Boolean
Byte
Integer
Long
Double and Float
Character
Arrays
Character Arrays
Constants
Arithmetic Functions
Comparison Operators
Logical Operators
Casting
Decision Making
Looping
Functions
Chapter 3
:
The Advanced Concepts of Arduino Programming
Setting Digital Pin Mode
Digital Write
Digital Read
Analog Read
Structures
Unions
Adding Tabs
Working with Tabs
Object-Oriented Programming
String Library
Arduino Motion Sensor Project
Arduino LCD Display Project
Chapter 4
:
Structuring and Arduino Programming
Structuring and Arduino Program
Using Standard Variable Types
Floating- Point Numbers
Working with Groups of Values
Using Strings in Arduino
Using Strings of C Programming Language
Splitting Comma- Separated Text into Groups
Converting a Number to a String
Converting a String to a Number
Transforming the Lines of Code into Blocks
Returning More Than One Value from a Function
Chapter 5
:
Coding and Memory Handling
Using the Libraries
Installing Additional Libraries
Modifying Libraries
Creating a Library
Creating Libraries from Other Libraries
Memory Handling
Saving and Fetching Numeric Values from Program Memory
Saving and Fetching Strings Using the Program Memory
Conclusion
References