Down-to-earth Minimum number of hurdles Able to get started quickly

Preview:

Citation preview

An Introduction to Microcontroller Programming for the Hobbyist

Purpose—For the Hobbyist

Down-to-earth Minimum number of hurdles Able to get started quickly

What is a Microcontroller? Simple computer on a chip

CPU Program memory RAM I/O Variety of built-in features▪ Oscillator▪ Timer▪ UART (Serial Communication)▪ Etc.

Many Brands/Platforms

PIC TI Rabbit Zilog Parallax Atmel AVR* Arduino

What is it good for?

Controlling things in the real world Cars Home appliances Calculators And more!

Hobby Projects—Demo Time!

Robotics POV LED reader board TV-B-Gone

Getting Started

The Chip

Atmel AVR attiny2313 2K bytes flash program memory 128 Bytes RAM

Other Hardware

Breadboard* Wire* LEDs* Resistors Solder Protoboards IC Socket Switch Power supply

Tools

Wire snips Wire strippers Multimeter Soldering iron

Programmer

Parallel port programmer USB programmer USBTiny

Software

Editor Compiler Programmer WinAVR

AVR-gcc AVRDude Makefile configuration

Programming!