Book description
AVR Workshop is a comprehensive introduction to working with the Microchip AVR 8-bit family of microcontrollers – made famous through their use in Arduino and other compatible boards. Whether you’re an absolute beginner or longtime electronics enthusiast, this book gives you the latest coding and hardware knowledge required to build 60 projects.
Rather than relying on libraries that hide operations under the hood, AVR Workshop teaches the basic C programming skills you need to work directly with ATmega328P-PU and ATtiny85 microcontrollers. You’ll get your operation up and running, then go from blinking LEDs and handling various types of user input to creating real-time clocks and digital thermometers, and even controlling small motorized devices. Once you understand the basic properties of electricity and electronic components, you’ll learn how to:
•Detect input signals from external devices and put them to work
•Work with popular parts like LCDs, motors, servos, and interfacing chips
•Implement the SPI and I²C buses with AVR microcontrollers
•Send serial data between AVR and a computer with USART
•Use hardware interrupts, AVR timers, Pulse-Width Modulation, and EEPROM
•Write your own AVR libraries
Whether your aim is hobbyist tinkering or full product development, AVR Workshop will give you the skills to harness a wide variety of devices, sensors, motors, displays, and more with your AVR microcontroller and bring your own ideas to life.
Table of contents
- Cover
- Title Page
- Copyright Page
- Dedication
- About the Author
- Brief Contents
- Contents in Detail
- Acknowledgments
- Introduction
- 1: Getting Started
- 2: First Steps
-
3: Getting and Displaying Input
- Digital Inputs
- Making Decisions in Code
- Creating Your Own Functions
- Switch Bounce
- Protecting Your AVR from Fluctuating Voltages
- Introducing Seven-Segment LED Displays
- Analog Inputs
- Using ATtiny85 ADCs
- Using the ATmega328P-PU ADCs
- Introducing the Variable Resistor
- Doing Arithmetic with an AVR
- Using External Power
- The TMP36 Temperature Sensor
- 4: Communicating with the Outside World using the USART
- 5: Taking Control with Hardware Interrupts
- 6: Using Hardware Timers
- 7: Using Pulse-Width Modulation
- 8: Controlling Motors with Mosfets
- 9: Using the Internal EEPROM
- 10: Writing Your Own AVR Libraries
- 11: AVR and the SPI Bus
- 12: AVR and the I2C Bus
- 13: AVR and Character Liquid Crystal Displays
- 14: Controlling Servos
- Epilogue
- Index
Product information
- Title: AVR Workshop
- Author(s):
- Release date: October 2022
- Publisher(s): No Starch Press
- ISBN: 9781718502581
You might also like
book
AVR Programming
Atmel's AVR microcontrollers are the chips that power Arduino, and are the go-to chip for many …
book
Arduino Workshop, 2nd Edition
The Arduino is an affordable, flexible, open source microcontroller platform designed to make it easy for …
book
Raspberry Pi Pico DIY Workshop
Take your first steps with the Raspberry Pi Pico and take on exciting projects using CircuitPython, …
book
Experimenting with AVR Microcontrollers
AVR is the brain that runs Arduino, but you don't need the whole Arduino board to …