Welcome, Guest

Author Topic: ATTiny Circuit only works when connected to AVR ISP  (Read 1387 times)

kynix

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
ATTiny Circuit only works when connected to AVR ISP
« 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 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?
« Last Edit: February 17, 2017, 11:58:22 AM by kynix »

Gerrit

  • Full Member
  • ***
  • Posts: 242
  • Karma: +7/-0
Re: ATTiny Circuit only works when connected to AVR ISP
« Reply #1 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