This article discuss how to control I/O ports of an AVR microcontroller using AVR-GCC. It goes through how the ports are organized and how to program AVR ports with AVR – GCC.
Controlling pins is one of the first things to learn when learning microcontrollers. It seems that each microcontroller type has its own port logic’s. So before using them it is important to understand every detail of it so you could efficiently use in projects. Let’s see how ports are organized in AVR and how successfully control them.
Controlling AVR I/O ports with AVR-GCC – [Link]
This is the part 2 (for part 1 refer here) of a series of articles (hosted @ hackaday.com) about programming AVR microcontrollers. This article discuss the hardware needed to transfer the firmware to the chip and make it run. It talks about simple to build parallel programmer and about professional made programmers. It also introduces a simple test circuit and documents the way to make a led blink.
AVR Programming 02: The Hardware – [Link]
This article is the first one in a series of articles (hosted @ hackaday.com) that aims to make you comfortable programming the Atmel AVR microcontrollers. It is a tutorial written for people that has never touched a microcontroller before. This first article discuss what a microcontroller is, how it works and shows the pinout of an example mcu (ATmega168). It also discuss about the tools needed, like the compiler and the programming software AVRdude etc. On the next article they will discuss about the hardware needed to programm a AVR microcontroller.
AVR Programming 01: Introduction - [Link]
This article shows some resources that will help you getting started with Atmel AVRs. It includes some sets of instructions and reference guides, some notes on hardware used, a few interesting examples of AVR source code and articles about using AVR microcontrollers. Check the list of resources on the link below.
Resources for getting started with AVRs - [Link]
Mike wanted to uniquely identify plants growing in the rows of a field and looked for ways to do that. One way is to measure electrical resistance between stalk base and leaf and thereby uniquely identifying the samples. This proven not to work as there was no way to distinguish measurements taken on the same plant from measurements taken between plants. So he think another way, to measure AC impedance. This technique has actually proven much more interesting. Doing some experiments he found that plants can act as decent antennae. To find out, he decided to build a simple AM radio transmitter. The AM transmitter is build around a ATMega324 8-bit AVR microcontroller and uses embedded timer/counter modules to produce the carrier wave. Check details of this interesting experiment on the link below.
Simple AVR AM Radio Transmitter - [Link]
This article discuss how to setup an AVR development platform based on free available software and tools like WinAVR or AVR-GCC. WinAVR is a toolset for C programming the AVR microcontrollers including avr-gcc compiler, avrdude programmer, avr-gdb debugger and more. The article also discuss how to use an integrated development environment (IDE) like AVRStudio to complete a simple project. Check this article on the link below.
Setting up AVR development platform – [Link]
In this article Mike makes a comparison between the value-line of MSP430 chips and the low-cost AVRs. LaunchPad is a USB powered development board that contains all the necessary hardware to program and debug MSP430 microcontrollers (MCUs) in up to 20-pin DIP packages. The kit includes two MCUs, the MSP430G2211 and the MSP430G2231. Both chips have 2kB of flash memory, 128B of RAM, and 10 GPIO pins, but the 2231 also provides a universal serial interface (I²C and SPI only), an 8-channel 10-bit ADC, as well as an internal temperature sensor. The board ships with the 2231 in place and programmed with a nifty temperature sensor program that’s ready to run. Check the article on the link below.
Testing TI’s MSP430 LaunchPad – [Link]
This instructable shows how to build your own multi function wireless camera controller. It’s based around an AVR and is able to control your DSLR or point and shoot camera using IR signal. Features are:
- Single shot mode
- Interval (time lapse) mode
- Triggered shot (trigger from external sensor) mode with variable conditions
- Included sensor designs – light, sound (many more possible!)
- Total cost – under £25 (excluding tools)
- LCD Display for easy change of settings
- Compatible with Nikon/Canon (coded), potential support (untested) for Olympus/Pentax
- No firmware modification needed
- Uses IR so is both wireless and doesn’t damage your camera
DIY multi-function wireless camera controller – [Link]
This project shows how to build a STK500 AVR ISP programmer with USB support. It uses FT232BL chip to implement USB to serial converter and ATmega8 in DIP package. This programmer is a clone of original AVR STK500 programmer, it works with AVRStudio and AVRDude and all main platforms including Windows, Linux, BSD and MacOS X. Check schematics and PCB on the link below.
STK500 compatible AVRUSB programmer - [Link]
This project shows how to build a 3D Led Globe. It uses a pair of homemade coils to transmit AC power to the device that is rotating. It is also uses an AVR processor and shift registers to power the LEDs. Source and schematic are available on the link below.
3D LED Globe – [Link]