# Help with LED blinking (beginner's tutorial)

**URL:** <https://community.sparkfun.com/t/help-with-led-blinking-beginners-tutorial/8585>\
**Category:** MicroMod\
**Tags:** avr-atmel\
**Created:** [September 27, 2008, 12:05am UTC](https://community.sparkfun.com/t/help-with-led-blinking-beginners-tutorial/8585 "2008-09-27T00:05:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cahofmeyr3](https://avatars.discourse-cdn.com/v4/letter/c/48db29/32.png) [@cahofmeyr3](https://community.sparkfun.com/u/cahofmeyr3)\
**Post date:** [September 27, 2008, 12:05am UTC](https://community.sparkfun.com/t/help-with-led-blinking-beginners-tutorial/8585/1 "2008-09-27T00:05:35Z")

</div>

I followed the Beginning Embedded Electronics tutorial and it seems like my hex file was successfully transferred to my ATMEGA8:

> conrad@conrad-laptop:~/Desktop/AVR/blink\_1MHz.zip\_FILES$ avrdude -p m8 -c avrispmkII -P usb -Uflash:w:blink\_1MHz.hex -B 10
> 
> avrdude: AVR device initialized and ready to accept instructions
> 
> Reading | ################################################## | 100% 0.01s
> 
> avrdude: Device signature = 0x1e9307
> 
> avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
> 
> To disable this feature, specify the -D option.
> 
> avrdude: erasing chip
> 
> avrdude: reading input file “blink\_1MHz.hex”
> 
> avrdude: input file blink\_1MHz.hex auto detected as Intel Hex
> 
> avrdude: writing flash (248 bytes):
> 
> Writing | ################################################## | 100% 0.15s
> 
> avrdude: 248 bytes of flash written
> 
> avrdude: verifying flash memory against blink\_1MHz.hex:
> 
> avrdude: load data flash data from input file blink\_1MHz.hex:
> 
> avrdude: input file blink\_1MHz.hex auto detected as Intel Hex
> 
> avrdude: input file blink\_1MHz.hex contains 248 bytes
> 
> avrdude: reading on-chip flash data:
> 
> Reading | ################################################## | 100% 0.12s
> 
> avrdude: verifying …
> 
> avrdude: 248 bytes of flash verified
> 
> avrdude: safemode: Fuses OK
> 
> avrdude done. Thank you.

I have an LED connected to pin 28 as shown in the tutorial, together with a 330 ohm resistor towards ground. The problem is that the LED is not blinking. I have tried to change the polarity.

---

<div class="post-metadata">

**Author:** ![cahofmeyr3](https://avatars.discourse-cdn.com/v4/letter/c/48db29/32.png) [@cahofmeyr3](https://community.sparkfun.com/u/cahofmeyr3)\
**Post date:** [September 27, 2008, 12:10pm UTC](https://community.sparkfun.com/t/help-with-led-blinking-beginners-tutorial/8585/2 "2008-09-27T12:10:57Z")

</div>

I tried a different makefile and code and now it’s working 😑
