Blog

My AVR Development Board

My AVR Development Board

I build a new dev board for my AVR and Arduino development. My old one really was too small... Since I am daily are working on the evaluation of all the nice and tiny IC's in my electronics box I needed this. Maybe it will become too small in some time but currently it helps me a lot.

It consists of two large breadboards and a wooden panel underneath with four rubber foots. I will work on optimizing this in the future and maybe I will write a document, describing how to build it like mine... ;)

Permalink: https://hanez.org/2011/12/09/my-avr-development-board/

Attiny13 Blink example

Image of Attiny13 MCUJust to keep and share the code... Here is the code for making a LED blink using an Attiny13 MCU from Atmel.

I got a package with about 30 AVR MCU's from different kind yesterday and now I will give them all a try. The next step with the Attiny13 is to build a thermometer with a RGB LED as indicator of the temperature. As temperature sensor I will use the LT1025 chip which I tried some days ago. I got many logic IC's too so it will be a hackish time this december. I will post the code and circuit here in some days when everything is working properly... ;)

#include <avr/io.h>
#include <util/delay.h>

#define LED_PIN PB4

int main(void) {

  // Configure LED_PIN (PB4) as output
  DDRB |= (1 << LED_PIN);

  while (1) {
    PORTB |= (1 << LED_PIN);
    _delay_ms(500);
    PORTB &= ~(1 << LED_PIN);
    _delay_ms(500);
  }

  return 0;
}

Have fun... ;)

Permalink: https://hanez.org/2011/12/04/attiny13-blink-example/

Pages

Page generated at: Oct 22, 2024 (CEST) using Jekyll & xw3 on GNU/Linux
NULL
Powered by: NULL