Build a Digital Signal Generator with an AVR Microcontroller

https://hackster.imgix.net/uploads/attachments/1996169/_Hyu3hbpQGR.blob?auto=compress%2Cformat&w=600&h=450&fit=min

Signal generators are one of those pieces of test equipment that can be useful for all sorts of electronics projects. But if you only need a basic square-wave output, buying a full-featured bench signal generator may be overkill. Fortunately for your pocketbook, there are other options. David Johnson-Davies, for instance, recently built a crystal-accurate square-wave signal generator using little more than an AVR microcontroller.

This is an updated version of a project Johnson-Davies previously built on a breadboard around an AVR32EB28 microcontroller. The new version uses an AVR16EB28 in a surface-mount SSOP package and generates square waves from 2 Hz all the way up to 33,554,430 Hz. It can select frequencies across that entire range in precise 2 Hz steps.

The circuit diagram (📷: David Johnson-Davies)

An OLED display and keypad make it possible to enter the desired frequency directly. Up to eight digits can be entered in hertz, after...

Copyright of this story solely belongs to www.hackster.io. To see the full text click HERE

Read more