But I promise all I changed was attaching the three LEDs.
During the process the error led lights up shortly.
The power led stays on and the working led blinks.
The pullup resistor is not necesary.
Thanks for your help guys!
I tried it with another (small) ATtiny85 on a PCB with components attached and got this problem:
avrdude: stk500_program_enable(): protocol error, expect=0x14, resp=0x50
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
and after some tries its always this one
avrdude: stk500_getsync(): not in sync: resp=0x00
During the upload only the power led is on.
This ATtiny already has a sketch on it.
Two LEDs, a light sensor, a piezo buzzer and a button. It also has a battery slot and some resistors.
I dont have the schematics but I think the components are simply wired up to the five pins.
I downloaded this from your thread.
It worked with my single attiny (the core from MIT media lab worked with this one as well) but not with my onboard attiny.
Only the power led of the programmer lights up.
This is the error:
avrdude: Version 5.11, compiled on Sep 2 2011 at 19:38:36
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "C:\Program Files\Arduino\arduino-1.0.1\hardware/tools/avr/etc/avrdude.conf"
Using Port : \\.\COM3
Using Programmer : stk500v1
Overriding Baud Rate : 19200
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Recv:
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude done. Thank you.
Im sorry I didnt find the attachment in the first place.
I tried the ArduinoISP sketch from the attachment.
However, I got the same results.
The two ArduinoISP sketches are identical, exept in line 126 heartbeat(); is commented off.
marian42:
I watched the board being programmed with the ATtiny soldered on it so Im quite sure its possible. It has eight holes for programming.
What device was being used to program the ATtiny? Maybe someone with greater knowledge of Atmel chips can say if you can still program these chips using ArduinoISP if the reset disable and/or the SPI program fuse is set, or do you have to use high voltage programming?
I assembled the board on an exhibition myself and it was programmed by a self-made piece of hardware that was connected to a laptop.
I asked whether it is possible to program it my self with an arduino and I was told to use the tutorial from MIT Media Lab.
if the reset pin is disabled and/or spi programming is disabled then you have to either use a hv programmer to program, or a hv programmer to set the fuse byte to enable both the reset pin and spi programming bits and then you can use isp to program again.
Riva:
Maybe someone with greater knowledge of Atmel chips can say if you can still program these chips using ArduinoISP if the reset disable and/or the SPI program fuse is set, or do you have to use high voltage programming?
You need HVP if the reset pin has been configured as an I/O pin.
marian42:
Im not sure about the reset pin but they told me that it is possible to lock ATtinies and that this one is not locked.
You can "lock" it against SPI programming is by configuring the reset pin as a general I/O pin. I don't think there's any way to lock them against special programmers (HVP).
There is something else you can do if you want an extra IO pin, but still want to be able to program without a HVP, and that is to use a bootloader - the one I made for tiny85s and 84s is designed to allow serial programming (software uart) without the need for a reset pin.