tutorial 2, it works but...

Hello,

I just wired up the second tutorial and got it to work (accidently) by removing the reset switch and then it works when I short pin 1 to 5V!

The schematic clearly shows that the reset should short to ground, so the unexpected result is confusing to me! Does anyone have any idea why my circuit could behave like this?

Any help would be appreciated.

Thanks!

############### background info ########

I have a basic understanding of analog circuit theory (a degree in mechanical engineering). Have no background in digital circuits, just an interest…

I use linux (Ubuntu) and had no problems with avr-gcc or avddude. Here is my terminal output (when loading the code onto the chip):

root@cicada:/home/jesse/electronics# make program

avrdude -p atmega168 -P /dev/parport0 -c stk200 -U flash:w:blink_1MHz.hex

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9406

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 (262 bytes):

Writing | ################################################## | 100% 0.09s

avrdude: 262 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 262 bytes

avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.07s

avrdude: verifying …

avrdude: 262 bytes of flash verified

avrdude: safemode: Fuses OK

avrdude done. Thank you.

nevermind, I have it working.

Started by reading the tutorial again. So, of course the circuit will operate when the reset is connected to 5V.

I think I had the circuit wired correctly orginally. I think my resistor was flaky as it did not give consistent reading on my multimeter and replacing it made the light blink except when the momentary switch was depressed.