Everyone of us wants to control a bulb, a fan etc at some point in time. We will look at driving single phase AC devices with a Relay using Atmega32.

Basics

Hookup

Code

Demo

Schematic

Schematic AVR Interfacing Relay.JPG