Olimex Support Forum

Microcontrollers => AVR => Topic started by: kynix on February 17, 2017, 11:42:26 AM

Title: ATTiny Circuit only works when connected to AVR ISP
Post by: kynix on February 17, 2017, 11:42:26 AM
I've got a very simple circuit (as you can see from the diagram below) with an ATTINY45 http://www.kynix.com/Parts/160190/ATTINY45-15MT.html (http://www.kynix.com/Parts/160190/ATTINY45-15MT.html) and a piezo buzzer. Everything worked great as I was testing it out and had the ISP (an AVR ISP MkII) attached. The piezo played the little tune it was supposed to, every thing was fine. But when I disconnected the ISP from the ICSP header everything goes haywire. The speaker just kind of constantly stutters. It almost seems like make it's constantly resetting but I'm not sure why. I tried placing a resistor between VCC and RESET to make sure it's pulled high, but that has no effect. I've also checked everywhere and there's no shorts that shouldn't be there.

Any thoughts of what the AVR ISP has that my circuit doesn't and obviously needs?
(https://i.stack.imgur.com/PDLE2.png)
Title: Re: ATTiny Circuit only works when connected to AVR ISP
Post by: Gerrit on February 18, 2017, 12:04:09 AM
most likely not enough voltage with the batteries, you need at least 2.7Volt for an attiny45, so you need full batteries, or use 3 batteries to be sure