13
An Introduction to Microcontroller Programming for the Hobbyist

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

Embed Size (px)

Citation preview

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

An Introduction to Microcontroller Programming for the Hobbyist

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

Purpose—For the Hobbyist

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

Page 3: 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.

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

Many Brands/Platforms

PIC TI Rabbit Zilog Parallax Atmel AVR* Arduino

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

What is it good for?

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

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

Hobby Projects—Demo Time!

Robotics POV LED reader board TV-B-Gone

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

Getting Started

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

The Chip

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

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

Other Hardware

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

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

Tools

Wire snips Wire strippers Multimeter Soldering iron

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

Programmer

Parallel port programmer USB programmer USBTiny

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

Software

Editor Compiler Programmer WinAVR

AVR-gcc AVRDude Makefile configuration

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

Programming!