Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arduino Development Cookbook

You're reading from  Arduino Development Cookbook

Product type Book
Published in Apr 2015
Publisher
ISBN-13 9781783982943
Pages 246 pages
Edition 1st Edition
Languages
Concepts
Author (1):
Cornel M Amariei Cornel M Amariei
Profile icon Cornel M Amariei

Table of Contents (16) Chapters

Arduino Development Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Power on – Arduino Basics 2. Blinking LEDs 3. Working with Buttons 4. Sensors 5. Motor Control 6. More Output Devices 7. Digital Communication with Arduino 8. Hacking Electronics – the Basics Index

Index

A

  • accelerometer
    • about / Accelerometer
    • using / Getting ready
    • connecting / How to do it…, Schematic, Code
    • working / How it works…
    • URL / See also
  • ADC
    • about / How it works…
  • analogReadResolution() function
    • references / See also
  • Analog reference (AREF)
    • about / Analog reference (AREF)
  • analogWrite() function / Code breakdown
  • Arduino
    • about / Introduction
    • URL / How to do it…
    • connecting / Connecting Arduino
    • connecting, to Mac OS X / Mac OS X
    • connecting, to Windows / Windows
    • code, uploading / Uploading code to Arduino, How to do it…, How it works…
    • code basics / Learning Arduino code basics
    • button / Introduction
    • speaker, connecting to / Code, How it works…, Tone with no duration, See also
    • NPN transistor, used for connecting external load / How to do it…, Schematic, How it works…, See also
    • optocouplers/optoisolators, connecting to / How to do it…, Schematic, Code
    • controlling, over serial / Controlling the Arduino over serial, How it works…
    • values, transmitting to / Transmitting values to Arduino
    • tutorial, URL / See also
  • Arduino C / Code basics – Arduino C, How it works…
  • Arduino code
    • timing / Timing Arduino code, How it works…
  • Arduino Due
    • about / Arduino Due
    • references / See also
  • Arduino Mega / Arduino Mega
  • Arduino pins / Code basics – Arduino pins, How it works…
  • Arduino software
    • downloading / Downloading the Arduino software, There's more
  • ASCII table
    • URL / See also
  • ATMega328P
    • URL / See also
  • attachInterrupt() function / Interrupts on various Arduinos

B

  • Battery Elimination Circuit (BEC) / How to do it…
  • bipolar stepper motor
    • about / Bipolar stepper motors, Getting ready
    • connecting / How to do it…, Code, How it works…
  • breadboards
    • working with / Working with breadboards
  • brushless motors
    • about / Brushless motors
    • connecting / How to do it…, Code
    • working / How it works…
    • URL / See also
  • bubble sort algorithm
    • URL / See also
  • button
    • about / Introduction
    • connecting / Connecting a button, Getting ready, Schematic, Code, How it works…
    • momentary buttons / Connecting a button
    • maintained buttons / Connecting a button
    • pull-up configuration / Pull-up configuration
    • multiple buttons / Multiple buttons
    • connecting, to serial / Button to serial, How to do it…, Code breakdown
    • debouncing / Button debouncing, How to do it…, How it works…, Code breakdown
    • multiple buttons, connecting to single pin / 1,000 buttons to 1 pin, Schematic, Code, Code breakdown, There's more…
    • value, finding / Finding each button
    • multiple buttons, pressing / Pressing multiple buttons
    • multiplexing / Button multiplexing, Schematic, How it works…, There's more…
  • button, with no resistor
    • connecting / Button with no resistor, How to do it…, Schematic, Code, How it works…, See also
    • multiple buttons / Multiple buttons

C

  • code
    • uploading, to Arduino / Uploading code to Arduino, How to do it…, How it works…
  • code basics, Arduino
    • about / Getting ready
    • Arduino C / Getting ready, How it works…
    • Arduino pins / Code basics – Arduino pins, How it works…
  • contact bouncing
    • URL / See also
  • continuous rotation servos / Continuous rotation servos

D

  • datasheet, for L293D
    • URL / See also
  • DC motor
    • URL / See also
  • delay() function / How it works…, How it works…, Interference
  • demultiplexer
    • using / Button multiplexing, Schematic, Code, How it works…, There's more…
  • digital communication
    • advantages / Introduction
  • digital pins
    • URL / See also
    • about / More digital pins
    • using / Getting ready
  • digitalWrite() function / How it works…
  • diodes
    • about / Diodes
  • distance-controlled LED
    • building / Getting ready, Schematic, Code, How it works…, There's more…
  • distance sensor
    • about / Measuring distance – infrared and ultrasonic

E

  • EEPROM
    • about / Storing data internally – EEPROM
    • using / How to do it…, How it works…, Code breakdown
  • electric current
    • working / Working of electric current
  • Electronic Speed Control (ESC) / Brushless motors
  • Ethernet shield
    • about / Ethernet
    • building / How to do it…
    • testing / How to test
    • working / How it works…, Code breakdown
    • references / See also
  • external interrupts
    • about / External interrupts
    • attaching, to digital pins / External interrupts, How to do it…, Code, How it works…, Code breakdown
    • on various Arduinos / Interrupts on various Arduinos
    • attached functions / About interrupt-attached functions
    • triggering modes / Different triggering modes
    • detaching / Detaching an interrupt
  • external LED
    • connecting, to Arduino board / Connecting an external LED, How to do it…, Schematic, Code, There's more…
    • working / How it works…, There's more…
    • LED resistor / LED resistor
    • multiple LEDs / Multiple LEDs
    • references / See also
    • fading / Fading the external LED, Schematic, Code, How it works…, There's more…

F

  • frequencies, music note
    • URL / See also

G

  • GND port / Common anode (+) and common cathode (-)
  • GPS
    • about / Localization – GPS
    • using / How to do it…, Schematic, Code
    • working / How it works…, Code breakdown
    • references / See also
  • Ground (GND) / General connection tips

I

  • I2C
    • about / I2C between Arduinos, More about I2C
    • used, for connecting two Arduino UNOs / Code, How it works…, Code breakdown
    • comparing, in different Arduino categories / Comparing different Arduino categories
    • devices, connecting / Connecting more devices
  • IDE
    • about / Downloading the Arduino software
  • Inertial Measurement Unit (IMU) / There's more…
  • input/output (I/O) pins / Code basics – Arduino pins
  • Integrated Circuit (IC) / Custom-made L293D driver, Optocouplers/Optoisolators

L

  • LCD character displays
    • about / LCD character displays, There's more…
    • using / How to do it…
    • connecting, to Arduino / How to do it…, Code
    • working / How it works…, There's more…
    • backlight / There's more…
  • LED
    • about / Introduction, LEDs
    • blinking, without delay / Blinking LED without delay(), How to do it…, How it works…, Breaking down the code
    • code, breaking down / Breaking down the code
    • URL / LEDs
  • LED bar graph
    • about / LED bar graph
    • connecting, to Arduino / How to do it…, Schematic, How it works…, Code breakdown
    • working / How it works…
    • common anode (+) / Common anode (+) and common cathode (-)
    • common cathode (-) / Common anode (+) and common cathode (-)
    • variations / Bar graph variations
  • loop() function / How it works…

M

  • Mac OS X
    • Arduino, connecting to / Mac OS X
  • maintained buttons / Connecting a button
  • millis() function / How it works…
  • momentary buttons / Connecting a button
  • MOSFETs / MOSFETs
  • motors
    • about / Introduction
    • small motors / Controlling small motors
    • controlling, with transistors / Controlling motors with transistors, Getting ready, Schematic, Code, How it works…
    • spinning, in both direction / Spinning motors both ways, How to do it…, Code, How it works…, Code breakdown
    • direction pin, using / Control using the direction pin, PWM pin, and brake pin
    • PWM pin, using / Control using the direction pin, PWM pin, and brake pin
    • brake pin, using / Control using the direction pin, PWM pin, and brake pin
    • Input A, using / Control using Input A, Input B, and PWM
    • Input B, using / Control using Input A, Input B, and PWM
    • PWM, using / Control using Input A, Input B, and PWM
    • custom-made L293D driver / Custom-made L293D driver
    • servo motors / Servo motor
    • stepper motor / Stepper motor
    • bipolar stepper motor / Bipolar stepper motors
    • brushless motors / Brushless motors
  • multiplexer
    • using / Button multiplexing, Schematic, Code, How it works…, Code breakdown
    • URL / See also

N

  • noise reduction
    • about / Noise reduction
    • requisites / Getting ready
    • steps / How to do it…, How it works…
    • filters / How it works…
  • noise reduction filters
    • mean filter / Mean filter
    • median filter / Median filter
    • Main loop() / Main loop()
  • NPN transistor
    • used, for connecting external load to Arduino / How to do it…, Code, How it works…, See also

O

  • Ohm’s law
    • about / Ohm's law
    • resistor configurations / Resistor configurations
  • Ohm’s law
    • about / Ohm's law
  • optocouplers/optoisolators
    • about / Optocouplers/Optoisolators
    • connecting, to Arduino / How to do it…, How it works…

P

  • pinMode() function / How it works…
  • PIR sensor
    • about / Detecting motion – PIR sensor
    • hooking up / How to do it…, Schematic, Code, How it works…
  • PNP transistor / PNP transistors
  • potentiometer
    • about / Simple sensor – potentiometer
    • requisites / Getting ready
    • hooking up / How to do it…, Schematic, Code, How it works…, There's more…
    • Arduino Due / Arduino Due
    • Analog reference (AREF) / Analog reference (AREF)
  • pull-down resistor / Pull-down resistor
  • PWM
    • about / Fading the external LED, Faster PWM, Getting ready
    • references / See also
    • used, for controlling speed / Controlling speed with PWM, How to do it…, Schematic, Code, How it works…, Code breakdown
    • working / How it works…, Timer 2
    • interference / Interference
  • PWM hacking
    • URL / See also
  • PWM Shield
    • URL / See also

R

  • relay driver
    • about / Relay driver, Getting ready
    • using / How to do it…, Code, How it works…
    • working / How it works…
  • Remote Control (RC) / Servo motor
  • resistance calculator
    • URL / Resistor configurations
  • RGB LED
    • about / RGB LED
    • connecting, to Arduino board / How to do it…, Schematic, Code, Code breakdown, There's more…
    • common anode (+) / Common anode (+) or common cathode (-)
    • common cathode (-) / Common anode (+) or common cathode (-)
    • PWM, avoiding / Without PWM

S

  • 7-segment display
    • about / The 7-segment display
    • connecting, to Arduino / How to do it…, Schematic, Code, How it works…, Code breakdown
    • common anode (+) / Common anode (+) and common cathode (-)
    • common cathode (-) / Common anode (+) and common cathode (-)
    • dot / The dot
    • variations / Variations
  • SD cards
    • about / SD cards, Getting ready
    • using, preparation steps / How to do it…, How it works…, Code breakdown
    • limitations / There's more…
  • sensors
    • potentiometer / Simple sensor – potentiometer
    • temperature sensors / Temperature sensor
    • PIR sensor / Detecting motion – PIR sensor
    • distance sensors / Measuring distance – infrared and ultrasonic
    • distance-controlled LED / Getting ready
    • references / See also
    • accelerometer / Accelerometer
  • Serial.peek() function / How it works…
  • Serial.print() function / There's more…
  • Serial.println() command / Code breakdown
  • Serial.read() function / Transmitting values to Arduino
  • Serial Clock Line (SCL) / How it works…
  • Serial Data line (SDA) / How it works…
  • serial output
    • obtaining / Serial output, How it works…, Code breakdown
  • Serial Protocol Interface (SPI) / How it works…
  • servo motors
    • about / Servo motor
    • connecting, to Arduino / How to do it…, Code, How it works…, Code breakdown
    • exact pulse time, controlling / Controlling the exact pulse time
    • servos / More servos
    • continuous rotation servos / Continuous rotation servos
  • setMotor() function / There's more…
  • setup() function / How it works…, Code breakdown
  • shift registers
    • about / More outputs – shift registers
    • connecting / How to do it…
    • working / How it works…, Code breakdown
  • Single Pole Double Throw (SPDT) / Connecting a button
  • Single Pole Single Throw (SPST) / Connecting a button
  • small motors
    • about / Controlling small motors
    • controlling / Getting ready, Schematic, How it works…
    • multiple motors / Multiple motors
    • electrical spikes / Electrical spikes
    • references / See also
  • software serial
    • and UART between Arduinos / Software serial and UART between Arduinos, Getting ready
    • used, for connecting Arduino UNOs / How to do it…, Schematic, Code
    • working / How it works…, Code breakdown
    • usable pins / Usable pins
    • multiple connections / More software serial connections
    • interference / Interference
    • connection tips / General connection tips
    • library, URL / See also
  • sonars / Measuring distance – infrared and ultrasonic
  • sound
    • creating / Creating sound, How to do it…, Schematic, Code, How it works…, There's more…, See also
  • speaker
    • connecting, to Arduino / How to do it…, Code, Tone with no duration, See also
  • stepper motor
    • about / Stepper motor, Getting ready
    • unipolar / Stepper motor
    • bipolar / Stepper motor
    • connecting, common integrated circuit used / Stepper motor, Getting ready, Code, How it works…, Code breakdown
    • transistor unipolar stepper driver / Transistor unipolar stepper driver
    • type, identifying / Identifying the stepper motor type
    • URLs / See also

T

  • temperature sensors
    • about / Temperature sensor, How to do it…, Code
    • working / How it works…, Code breakdown
  • Timer
    • URL / See also
  • toggle switch
    • about / The toggle switch
    • two-state toggle switch / The toggle switch
    • using / The toggle switch, Getting ready, Schematic, Code, How it works…, There's more…
    • connecting, to LEDs / How to do it…
    • references / See also
  • tone() function
    • using / How it works…
    • about / Code breakdown
    • with no duration / Tone with no duration
    • on multiple pins / Tone on multiple pins
  • Tool Bar
    • Verify button / There's more
    • Upload button / There's more
    • New button / There's more
    • Open button / There's more
    • Save button / There's more
  • transistor driver
    • about / Transistor driver
  • transistors
    • used, for controlling motors / Controlling motors with transistors, How to do it…, Schematic, Code, How it works…
    • pull-down resistor / Pull-down resistor
    • PNP transistor / PNP transistors
    • MOSFETs / MOSFETs
    • different loads / Different loads
    • references / See also

U

  • UART
    • between Arduinos, and software serial / Software serial and UART between Arduinos, Schematic, Code
  • Ubuntu Linux computer
    • URL / See also

V

  • variable resistor / Simple sensor – potentiometer
  • voltage divider
    • URL / See also

W

  • Windows
    • Arduino, connecting to / Windows
  • wireless serial
    • using / Wireless serial, How it works…

X

  • Xbe
    • URL / See also
lock icon The rest of the chapter is locked
arrow left Previous Chapter
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}