Show Posts
Pages: [1] 2
1  Using Arduino / Microcontrollers / Re: Arduino 1.0.3 - Arduino Uno and ATTiny85 problems (video included) on: February 25, 2013, 05:03:54 pm
Check the connection while it's unpowered. I test the ohms from the pin to the end of the wire. You should get something besides zero.
Push the chip down aggressively.

which wire?
2  Using Arduino / Microcontrollers / Re: Arduino 1.0.3 - Arduino Uno and ATTiny85 problems (video included) on: February 25, 2013, 03:09:58 pm
already tried another section of the breadboard using no powerails and it's the same, can't get the signature........

i bought 2 attiny85 from ebay, already tried both of them with no success and that's what's weird..

but tomorrow i'll get another one from a local store and try them. it's very weird because the pins are getting powered, there are no connection issues that i can see, but the problem persists

edit: tried another breadboard, changed the resitor and led to a different layout, the capacitor for the reset is also on the breadboard and doesn't work........
3  Using Arduino / Microcontrollers / Re: Arduino 1.0.3 - Arduino Uno and ATTiny85 problems (video included) on: February 25, 2013, 08:23:21 am
this is was i got reading the fuses using -F

Code:
C:\Users\Andre\Desktop\arduino\hardware\tools\avr\bin>avrdude.exe -CC:\Users\Andre\Desktop\arduino\hardware/tools/avr/etc/avrdude.
conf -v -pattiny85 -cstk500v1 -P\\.\COM3 -b19200 -F

avrdude.exe: 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:\Users\Andre\Desktop\arduino\hardware/tools/avr/etc/avrdude.conf"

             Using Port                    : \\.\COM3
             Using Programmer              : stk500v1
             Overriding Baud Rate          : 19200
             AVR Part                      : ATtiny85
             Chip Erase delay              : 4500 us
             PAGEL                         : P00
             BS2                           : P00
             RESET disposition             : possible i/o
             RETRY pulse                   : SCK
             serial program mode           : yes
             parallel program mode         : yes
             Timeout                       : 200
             StabDelay                     : 100
             CmdexeDelay                   : 25
             SyncLoops                     : 32
             ByteDelay                     : 0
             PollIndex                     : 3
             PollValue                     : 0x53
             Memory Detail                 :

                                      Block Poll               Page                       Polled
               Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
               ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
               eeprom        65     6     4    0 no        512    4      0  4000  4500 0xff 0xff
               flash         65     6    32    0 yes      8192   64    128  4500  4500 0xff 0xff
               signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
               lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
               lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
               hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
               efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
               calibration    0     0     0    0 no          2    0      0     0     0 0x00 0x00

             Programmer Type : STK500
             Description     : Atmel STK500 Version 1.x firmware
             Hardware Version: 2
             Firmware Version: 1.18
             Topcard         : Unknown
             Vtarget         : 0.0 V
             Varef           : 0.0 V
             Oscillator      : Off
             SCK period      : 0.1 us

avrdude.exe: please define PAGEL and BS2 signals in the configuration file for part ATtiny85
avrdude.exe: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.05s

avrdude.exe: Device signature = 0xffffff
avrdude.exe: Yikes!  Invalid device signature.
avrdude.exe: Expected signature for ATtiny85 is 1E 93 0B
avrdude.exe: safemode: lfuse reads as 62
avrdude.exe: safemode: hfuse reads as D7
avrdude.exe: safemode: efuse reads as FF

avrdude.exe: safemode: lfuse reads as 62
avrdude.exe: safemode: hfuse reads as D7
avrdude.exe: safemode: efuse reads as FF
avrdude.exe: safemode: Fuses OK

avrdude.exe done.  Thank you.

4  Using Arduino / Microcontrollers / Re: Arduino 1.0.3 - Arduino Uno and ATTiny85 problems (video included) on: February 24, 2013, 09:52:27 am

Does it continue blinking if you remove the jumper from pin 9 / XTAL1?

if I give it the clock from pin #9 it blinks faster, if I remove it it blinks for 500ms @ 1MHz but I still cant get the device signature right. I always have to use -F to bypass it
5  Using Arduino / Microcontrollers / Re: Arduino 1.0.3 - Arduino Uno and ATTiny85 problems (video included) on: February 23, 2013, 09:42:46 pm
yep, i did that and it's working. could the problem be from the attiny chip I bought?

i got the attiny running the blink sketch @ 1MHz using the command -F to bypass the signature and it works. the small issue here is that a delay of 1000 (1 second) corresponds to 0.5ms, 2000 -> 1s. what the hell is going on?

is there any way to get the signature stuff working?
6  Using Arduino / Microcontrollers / Re: Arduino 1.0.3 - Arduino Uno and ATTiny85 problems (video included) on: February 23, 2013, 08:43:31 pm
sorry about the double post but it's relevant.

what if I told you that using the command line avrdude and the command -F to ignore the signature, it worked?

but it's too fast. the blinking is set to 1s but it's taking something like 1/4s to blink. and i still can't upload it correctly using the arduino program, it always gives me signature error

is there any way to correct the signature error? the fuses are set correctly but i still can't use the arduino software to send the sketches..

edit: and i can make it run at 1MHz but the timings are off (delay)
7  Using Arduino / Microcontrollers / Re: Arduino 1.0.3 - Arduino Uno and ATTiny85 problems (video included) on: February 23, 2013, 08:38:53 pm
So I unplugged Uno, removed the capacitor, set the board as Arduino Uno, plugged Uno, uploaded the ArduinoISP sketch you provided, everything went fine, unplugged Uno again, connected capacitor, set board as ATtiny85 @ 1MHz (internal osc), plugged Uno, sent the blink sketch and freaking error again......

output: http://pastebin.com/YK1hfZaL

what the hell is going on? so much trouble...
8  Using Arduino / Microcontrollers / Re: Arduino 1.0.3 - Arduino Uno and ATTiny85 problems (video included) on: February 23, 2013, 07:05:49 pm

There are two possibilities... 1. Wiring; 2. Clocking

If you have never successfully changed the fuses (done by "Burn Bootloader") then it cannot be #2.


i bought the attiny85 from ebay and this is the first time i'm doing something with it.

i've read some stuff about clocking but I can't figure it out. i have a spare 32KHz crystal, I tried plugin it in the attiny external crystal pins (from the datasheet) but it didn't work. I know almost nothing about attiny and external crystals and fuses etc...

So please guide me, it must be the clock. My arduino is running the ArduinoISP sketch successfully (it is heartbeating in D9), everything is connect like it should to the attiny and I have a spare 32KHz crystal I can use (no 16MHz nor 20MHz..). What steps should I take using the crystal to get my attiny to work right at 8MHz with internal clock

ps: and sorry about the other post, my mistake
9  Using Arduino / Microcontrollers / Re: Arduino 1.0.3 - Arduino Uno and ATTiny85 problems (video included) on: February 23, 2013, 04:45:22 pm
if you watch the video I have the error there.

but that error is happening with situation #1, I stopped doing the 2nd
10  Using Arduino / Microcontrollers / Re: Arduino 1.0.3 - Arduino Uno and ATTiny85 problems (video included) on: February 23, 2013, 03:58:28 pm
I had some trouble with the capacitor not connecting properly when plugged directly in the headers of the board. Moving it to the breadboard solved the problem.

yep, already did that with no success. the measurements I took in the last post were with the capacitor on the breadboard.

looking at the avrdude output, what can you say about this? (http://pastebin.com/uNbjAZDe)

11  Using Arduino / Microcontrollers / Re: Arduino 1.0.3 - Arduino Uno and ATTiny85 problems (video included) on: February 23, 2013, 02:52:23 pm

Do all the wires conduct electricity?


I'm getting these values while the arduino is connected to the usb port (so everything is standby, i'm not uploading the sketch):
  • attiny is getting 4.97V (pin 3 in attiny)
  • pin 13 is outputting 0.07V (connected to pin 2)
  • pin 12 is outputting 0.0V (connected to pin 1)
  • pin 11 is outputting 0.0V (connected to pin 0)
  • pin 10 is peaking 4.35V (reset pin)
  • the capacitor is charged

this being an attiny85v, has anything to do with it? i guess not but idk..
12  Using Arduino / Microcontrollers / Re: Arduino 1.0.3 - Arduino Uno and ATTiny85 problems (video included) on: February 23, 2013, 02:34:24 pm


I've checked the wiring a lot of times and I don't see anything wrong..

EDIT: if you look at the capacitor you can see the stripe on the left side meaning the capacitor is reversed but it's only an illusion from the light and the negative side of the capacitor is connected to the ground
13  Using Arduino / Microcontrollers / Re: Arduino 1.0.3 - Arduino Uno and ATTiny85 problems (video included) on: February 23, 2013, 12:51:21 pm
Quote
1) Just connecting arduino uno and pressing Upload sketch button

Try File->Upload using programmer

http://www.ernstc.dk/arduino/attiny85.html

same error..
14  Using Arduino / Microcontrollers / Re: Arduino 1.0.3 - Arduino Uno and ATTiny85 problems (video included) on: February 23, 2013, 11:33:18 am
As far as I could see, you miss a connection from Arduino pin 10 to Attiny reset

true. retried it right now and the error is the same:

Code:
avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check.

I've enabled verbose output, http://pastebin.com/uNbjAZDe
15  Using Arduino / Microcontrollers / Arduino 1.0.3 - Arduino Uno and ATTiny85 problems (video included) on: February 23, 2013, 10:53:46 am
Hi there! I'm having some troubles with my attiny85 and arduino uno. I'm using this for the attiny85 core http://code.google.com/p/arduino-tiny/

I've already uploaded the Arduino ISP sketch to the arduino Uno with no problems. After doing that the Board is defined as Attiny85 internal 8 MHz clock, programmer is Arduino as ISP.

The blink sketch is loaded and the led port is defined as 1. On the attiny the led is connected to port 0. (I'm doing this because the led was blinking when uploading the sketch and I needed to know if it was the sketch running or some boot stuff -> it was boot stuff).

Now I tested the sketch upload with 2 methods:
1) Just connecting arduino uno and pressing Upload sketch button
2) Connecting arduino uno, holding reset and just when "Binary sketch..." shows in the console I let the reset go.

The two methods return different errors (at least in the video but i'm trying to reproduce it right now with no success).

Code:
avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check.



I've tried a lot of things, I've read a lot of tutorials but I can't solve this problem.. Help?

EDIT: verbose output, http://pastebin.com/uNbjAZDe
Pages: [1] 2