- Hardware Essentials
- Digital Inputs
- PWM Outputs
- Serial Communication
- Analog Inputs
- Serial Peripheral Interface (SPI)
- Digital I/O Control SignalsAnalog Outputs and Stepper Motors
- Arduino Applications Overview and Project Selection Guide
Arduino Cookbook by Michael Margolis
Arduino Cookbook: Recipes to Begin, Expand, and Enhance Your Projects by Michael Margolis, Brian Jepson, Nicholas Robert Weldin
Learn to create, expand, and enhance your Arduino projects with ease using the recipes in this book by Michael Margolis, Brian Jepson, and Nicholas Robert Weldin. This book provides all the information you need to create your own recipes and write them out in code.
With plenty of pictures showing how to assemble circuits, this Arduino Cookbook will help you harness the power of these amazing microcontrollers with simplicity and ease. Start today and begin creating exciting projects!
Developed by Arduino LLC in Italy, the Arduino platform was designed to make it easy for hobbyists and professionals alike to create interactive physical environments.
Since its introduction in 2005, Arduino has become one of the world’s most popular microcontroller boards and software development platforms. The open-source nature of the project has led to a wide range of support accessories that enable its users to accomplish complex tasks with ease while maintaining their creative freedom.
The Arduino Cookbook presents more than 30 recipes to get you started with Arduino, from basic projects like controlling LEDs and responding to buttons, through to more advanced projects like using hardware serial ports and LCD screens.
The book also includes many recipes for using Arduino with the popular Processing programming language, so you can quickly move on to creating your own graphical user interfaces and even 3D animations!
Arduinos are a great platform for beginning embedded systems engineers because of their low cost and flexibility. They’re also extremely easy to program. While there are many excellent books on how to program Arduinos (including my own book Make an Arduino), none cover what should be done after you’ve built your first project.
This book is designed to teach intermediate Arduino programmers how to expand their projects into something more useful or creative using examples from Arduino-powered devices made by artists, designers, hobbyists, students, makers and inventors in order that they might learn some techniques that could be used in their own projects.
Sensors – We use many kinds of sensors in Arduino projects. This chapter looks at some of them, how they work, and how we can connect them to our Arduino boards.
Sensors are an important part of any project because they enable us to gather information about things around us (like temperature, light levels) that are not always visible. They help us do things like monitor an environment or detect motion or open a door when someone walks up to it.
Switches, Buttons, and Pins – Learn how switches can be used as a digital input in any project with an Arduino board. Also read about buttons that can be pushed to activate various events within your designs. This chapter will also cover how you can use various different pins on an Arduino board to provide digital input signals.
The author offers several recipes for utilizing switches with other components as well as offering suggestions for building your own switch circuits based on design ideas provided in this chapter of his Arduino Cookbook.
This chapter will show you how to use Serial communication in Arduino. It will cover some of Arduino’s serial commands like Serial.begin(), Serial.print(), and Serial.println(). Then it will introduce you to two built-in libraries for serial communications – SoftwareSerial and NewSoftSerial – which are much more flexible than using Serial directly.
Finally, it’ll give a brief introduction to RS232 serial protocol, as well as physical communication considerations such as proper grounding and current limiting on your power supply lines.
Reading Analog Values with an Arduino – Analog inputs allow you to measure voltage values in your projects.
If you want your project to measure anything that contains a voltage—water level in a tank, current flowing through a wire (or something like human heart rate), etc.—you need analog inputs. This chapter shows you how to read these analog values using Arduino’s built-in ADC.
Serial Peripheral Interface (SPI)
A multipurpose protocol used between a microcontroller and peripheral devices that requires very little overhead in terms of speed.
It can operate at speeds as high as 20 MHz, but most systems run between 0.1 MHz and 5 MHz. SPI is commonly used to communicate with ADCs or DACs.
Digital I/O Control Signals
A Recipe for a Three-Speed Motorized Fan Controller Using an Arduino Uno. Want to program your own user interface? Add advanced capabilities and new features to your projects? Control lights, motors, servos, or any other electrically operated device with ease?
As you’ll learn in Chapter 8 of Arduino Cookbook , you can do all of these things and more with Arduino digital I/O control signals.
Analog Outputs and Stepper Motors
This chapter shows you how to configure a single-axis analog output on an Arduino Uno (no shields are needed). You’ll use it to control a stepper motor attached to a servo.
While your project will only be able to turn left or right rather than adjust continuously like an analog dial, you’ll gain insight into all of these concepts.
Arduino Applications Overview and Project Selection Guide
In order to make an informed decision about what type of project you want to work on next with your Arduino Uno or Arduino Leonardo board, it is important for you as a novice developer to have an understanding of what projects exist.
In addition, there are important characteristics that you need to be aware of when considering your next project. This chapter will take a quick tour through some of these unique attributes.
You can visit Arudino website to check different Arduino products.
You can check some interesting books on Arduino here.
Related Product: Check