Cover coming soon

AVR Workshop

A Hands-On Introduction with Over 55 Projects
by John Boxall
November 2022, 376 pp.
ISBN-13: 
9781718502581
Use coupon code PREORDER to get 25% off!

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 over 55 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.

Author Bio 

John Boxall has been an electronics enthusiast for over 30 years, spending much of that time in the retail, wholesale, and consulting fields. He also spent several years writing Arduino tutorials, designing projects, and reviewing kits and accessories at www.tronixstuff.com. Arduino Workshop (No Starch Press) was his first book.

Table of contents 

Chapter 1: Getting Started
Chapter 2: First Steps
Chapter 3: Getting Input
Chapter 4: Communicating with the Outside World
Chapter 5: Taking Control with Hardware Interrupts

Chapter 6: Timing with Hardware Timers
Chapter 7: PWM
Chapter 8: Motors
Chapter 9: EEPROM
Chapter 10: Libraries
Chapter 11: SPI Bus
Chapter 12: I2C Bus
Chapter 13: LCD
Chapter 14: Servos

The chapters in red are included in the Early Access PDF.