Arduino essentials enter the world of Arduino and its peripherals and start creating interesting projects
If you are a hobbyist who wants to develop projects based on Arduino as the main microcontroller platform or an engineer interested in finding out what the Arduino platform offers, then this book is ideal for you. Some prior knowledge of the C programming language is required.
Otros Autores: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Birmingham, England :
Packt Publishing Ltd
2015.
|
Edición: | 1st edition |
Colección: | Community experience distilled.
|
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009628924806719 |
Tabla de Contenidos:
- Cover; Copyright; Credits; About the Author; About the Reviewer; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Meeting the Arduino Family; A game changer; Common features; Arduino Uno; Arduino Mega 2560; Arduino Ethernet; LilyPad Arduino; Arduino Yún; Arduino Mini, Micro, and Nano; Other Arduino family members; Esplora; Arduino Robot; Arduino Due; Unofficial boards; Shields; Just one to rule them all; Users teaching users; Summary; Chapter 2: The Arduino Development Environment; A multiplatform tool; Downloading the package; Windows; Mac OS X; Linux; Source code
- Installing the softwareWindows; Mac OS X; Linux; In case of trouble; Installing the drivers; Windows; Mac OS X; Linux; Running the Arduino development environment for the first time; The toolbar; The code editor; The message area; Preflight checks; Uploading our first sketch; Main menus and commands; The Arduino language; Summary; Chapter 3: Interacting with the Environment the Digital Way; Digital versus analog signals; Our first circuit; Using a breadboard; The LED circuit; Circuit schematic; Breadboard connections diagram; Asymmetric blinking code; C language syntax considerations
- Troubleshooting faults in the circuitDealing with multiple outputs; Current limit per pin; Summary; Chapter 4: Controlling Outputs Softly with Analog Outputs; Dealing with analog signals; The analog output circuit; Connections diagram; Analog control through code; The analogWrite() function; The for loop; Complete the fading LED code; Motor control with a transistor; Motor driver; Power source considerations; The complete circuit; Connections diagram; Motor varying speed code; The assembled circuit; Bigger power motors; Summary; Chapter 5: Sensing the Real World through Digital Inputs
- Sensing by using inputsConnecting a button as a digital input; The momentary push button; Complete circuit schematic; Breadboard connections diagram; Writing code to react to a press; Configuring and reading a digital input; Taking decisions with conditional bifurcations; Timing and debouncing; Other types of digital sensors; Using an optocoupler as a coin detector; The schematic of the coin detector; The breadboard connections diagram; The complete example code; A real working project ; Summary; Chapter 6: Analog Inputs to Feel Between All and Nothing; Sensing analog values
- The Arduino map functionAn ambient light meter; Connecting a variable resistor to Arduino; Voltage divider; An ambient light meter circuit; Breadboard connections; Programming to sense the light; An ambient light meter code; The switch / case control structure; Calibrating the sensor; DC motor speed control revisited; The potentiometer; The motor speed control schematic; The breadboard connections diagram; A simple code to control the motor speed; Summary; Chapter 7: Managing the Time Domain; Time control functions; Stopping versus accounting; Making some noise
- Arduino library sound functions