Show Posts
Pages: 1 ... 42 43 [44] 45 46 ... 70
646  Using Arduino / Microcontrollers / Re: SoftwareSerial with ATTiny84 using ATtiny library on: December 13, 2012, 04:05:31 pm
Quote
Bear in mind what I wrote earlier about the RESET pulse time

Oh yes, sorry I got a little overexcited because it worked (to a certain point) !
So now I use your changed TinyISP, and now I can change fuses without problems. No need for HV programmer as I thought.

Thank you Coding Badly for this update

The funny thing is that Knockbang only works at some clock frequences

0x69 0xFF  4,8mhz /div8   ok
0x79 0xff  4,8mHz  Knockbbang error 15
0x7A 0xFF  9,6mHz ok
0x6A 0xFF  9,6mHz /div8  Knockbang error 11  
0x6A 0xFF  9,6mHz /div8  Knockbang error 11  
0x62 0xFF  9,6mHz /div8  Knockbang error 11  
0x66 0xFF  9,6mHz /div8  Knockbang error 11  

647  Using Arduino / Microcontrollers / Re: SoftwareSerial with ATTiny84 using ATtiny library on: December 12, 2012, 04:15:08 pm
Now I am confused. According to the datasheet (if i read it correct) , the only options are 128kHz, 4,8 mHz and 9,6 mHz. I can see that the factory default is 9,6 mHz (I thought it was 128 kHz)
Another thing that is confusing is the fuse settings I am using. They are mainly copied from the thread about core 13, and I think they maybe are wrong, because I am know in the same situation as yesterday with an unresponding attiny, after I tried to "burn bootloader" 128 kHz.

This is my boards.txt

Code:
###########################################################################

attiny13int.name=Attiny13 @ 128 KHz (internal watchdog oscillator)
attiny13int.upload.using=arduino:arduinoisp
attiny13int.bootloader.low_fuses=0x7B
attiny13int.bootloader.high_fuses=0xFF
attiny13int.upload.maximum_size=1024
attiny13int.build.mcu=attiny13
attiny13int.build.f_cpu=128000
attiny13int.build.core=core13

###########################################################################

attiny13at4.name=ATtiny13 @ 4.8MHz (internal 4.8 MHz clock)
attiny13at4.upload.using=arduino:arduinoisp
attiny13at4.bootloader.low_fuses=0x69
attiny13at4.bootloader.high_fuses=0xff
attiny13at4.upload.maximum_size=1024
attiny13at4.build.mcu=attiny13
attiny13at4.build.f_cpu=600000
attiny13at4.build.core=core13
###########################################################################

attiny13at9m.name=ATtiny13 @ 9.6 Mhz
attiny13at9m.bootloader.low_fuses=0x7A
attiny13at9m.bootloader.high_fuses=0xff
attiny13at9m.upload.maximum_size=1024
attiny13at9m.build.mcu=attiny13
attiny13at9m.build.f_cpu=9600000
attiny13at9m.build.core=core13

###########################################################################




648  Using Arduino / Microcontrollers / Re: SoftwareSerial with ATTiny84 using ATtiny library on: December 12, 2012, 01:23:39 pm
It also works without errors at 9,6 mHz
649  Using Arduino / Microcontrollers / Re: SoftwareSerial with ATTiny84 using ATtiny library on: December 12, 2012, 10:25:33 am
Success... ! (almost)

I got a new attiny13 today and tried it with the factory settings, and a very short connection to MISO, and here is the result:

Code:
t13 test..
t13 test..
t13 test..
t13 test..
--- Knock-Bang fault: 4 ---
t13 test..
t13 test..
t13 test..
t13 test..
--- Knock-Bang fault: 13 ---
t13 test..
t13 test..

I will try with another cpu-speed setting to see if I can reduce the errors.
Also I will try your updated TinyISP

Quote
--- Knock-Bang fault: 11 ---



You are running TinyISP on what board?

I am using Arduino Uno (I think it is R2)

And another success, I was able to get my dead tiny back to live by using this HV-programmer

http://www.rickety.us/2010/03/arduino-avr-high-voltage-serial-programmer/

It seems OK now, atleast it passed the blink test

Update:

At 4,8 mHz it is a total succes, no errors at all.

650  Using Arduino / Programming Questions / Re: help with BitRead() on: December 11, 2012, 05:29:41 pm

http://arduino.cc/en/Reference/BitRead
651  Using Arduino / Microcontrollers / Re: SoftwareSerial with ATTiny84 using ATtiny library on: December 11, 2012, 04:20:28 pm
Bad news:

I have killed my poor little Attiny13, I think it was during fiddling with the fuses. It is totally unresponsive, I tried my USBasp and Pololu programmer but no luck.
I will report back as soon as my new chips arrive, oh so close ...

There has not been anything connected to MISO during this testing. I will try your tip with pullups.

Thank you for your help so far
652  Community / Website and Forum / Re: Guru Meditation? on: December 11, 2012, 01:49:09 pm
There is still a problem with links to the old forum.
Try this for example

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1285218245/15
653  Using Arduino / LEDs and Multiplexing / Re: Controlling a stand alone LED remotely on: December 11, 2012, 11:05:40 am
A tilt switch + resistor+LED+coincell(s)
654  Using Arduino / Microcontrollers / Re: what chips dont need a bootloader? on: December 11, 2012, 10:04:28 am
Quote
could i just load the blink sketch on its own on say a uno or mega ?

Yes, no problem, but you will overwrite the bootloader.
The advantage of the bootloader is that you don't need a programmer, instead you can upload sketches through a serial connection
655  Using Arduino / Microcontrollers / Re: SoftwareSerial with ATTiny84 using ATtiny library on: December 11, 2012, 06:04:39 am
Thanks,

I added these to the WProgram.h, which gave another error:

Code:
D:\arduino-1.01\arduino-1.0.1-windows (1)\arduino-1.0.1\libraries\TinyDebugKnockBang/TinyDebugKnockBang.h:156: error: 'DEC' was not declared in this scope

So I added #include "print.h" in the WProgram.h , and now it compiles and uploads.

When I open the serial monitor (19200 baud) and type a ! I get this error:

--- Knock-Bang fault: 15 ---

I was thinking it maybe had something to do with the clock speed which was 128kHz, so I tried at 9,6 mHz and got this error:

--- Knock-Bang fault: 11 ---
i get the correct respons from the serial monitor, when I use  @,# and !

656  Using Arduino / Microcontrollers / Re: SoftwareSerial with ATTiny84 using ATtiny library on: December 10, 2012, 06:21:35 pm
I am using smeezekitty's core:

http://arduino.cc/forum/index.php/topic,89781.0.html

http://sourceforge.net/projects/ard-core13/
657  International / Scandinavia / Re: ATtiny85 @ 16MHz med eksternt crystal on: December 10, 2012, 05:31:35 pm
Hvis du bruger denne core, får du muligheden for 16Mhz både med og uden krystal:

http://code.google.com/p/arduino-tiny/downloads/detail?name=arduino-tiny-0100-0015.zip

Det har også den fordel at den er udviklet af Coding Badly her på forum, og han er meget hjælpsom hvis der er problemer.

Iøvrigt er de forskellige indstillinger et spørgsmål om at bruge de rette "fuses". De bliver automatisk sat når du bruger funktionen "Burn Bootloader"

Oplysningerne ligger i filen boards.txt

Hvis HLT coren ellers virker på samme måde kan du jo prøver at kopiere dette fra min boards.txt:

Code:
###########################################################################

attiny85at16e.name=ATtiny85 @ 16 MHz  (external crystal; 4.3 V BOD)

# The following do NOT work...
# attiny85at16e.upload.using=avrispv2
# attiny85at16e.upload.using=Pololu USB AVR Programmer

# The following DO work (pick one)...
attiny85at16e.upload.using=arduino:arduinoisp
# attiny85at16e.upload.protocol=avrispv2
# attiny85at16e.upload.using=pololu

attiny85at16e.upload.maximum_size=8192

# Ext. Crystal Osc.; Frequency 8.0- MHz; Start-up time PWRDWN/RESET: 16K CK/14 CK + 65 ms; [CKSEL=1111 SUT=11]
# Brown-out detection level at VCC=4.3 V; [BODLEVEL=100]
# Preserve EEPROM memory through the Chip Erase cycle; [EESAVE=0]
# Serial program downloading (SPI) enabled; [SPIEN=0]

attiny85at16e.bootloader.low_fuses=0xFF
attiny85at16e.bootloader.high_fuses=0xD4
attiny85at16e.bootloader.extended_fuses=0xFF
attiny85at16e.bootloader.path=empty
attiny85at16e.bootloader.file=empty85at16.hex

attiny85at16e.build.mcu=attiny85
attiny85at16e.build.f_cpu=16000000L
attiny85at16e.build.core=tiny
 
###########################################################################

attiny85at16p.name=ATtiny85 @ 16 MHz  (internal PLL; 4.3 V BOD)

# The following do NOT work...
# attiny85at16p.upload.using=avrispv2
# attiny85at16p.upload.using=Pololu USB AVR Programmer

# The following DO work (pick one)...
attiny85at16p.upload.using=arduino:arduinoisp
# attiny85at16p.upload.protocol=avrispv2
# attiny85at16p.upload.using=pololu

attiny85at16p.upload.maximum_size=8192

# PLL Clock; Start-up time PWRDWN/RESET: 1K CK/14 CK + 4 ms; [CKSEL=0001 SUT=00]
# Brown-out detection level at VCC=4.3 V; [BODLEVEL=100]
# Preserve EEPROM memory through the Chip Erase cycle; [EESAVE=0]
# Serial program downloading (SPI) enabled; [SPIEN=0]

attiny85at16p.bootloader.low_fuses=0xC1
attiny85at16p.bootloader.high_fuses=0xD4
attiny85at16p.bootloader.extended_fuses=0xFF
attiny85at16p.bootloader.path=empty
attiny85at16p.bootloader.file=empty85at16.hex

attiny85at16p.build.mcu=attiny85
attiny85at16p.build.f_cpu=16000000L
attiny85at16p.build.core=tiny
 
###########################################################################

attiny85at8.name=ATtiny85 @ 8 MHz  (internal oscillator; BOD disabled)

# The following do NOT work...
# attiny85at8.upload.using=avrispv2
# attiny85at8.upload.using=Pololu USB AVR Programmer

# The following DO work (pick one)...
attiny85at8.upload.using=arduino:arduinoisp
# attiny85at8.upload.protocol=avrispv2
# attiny85at8.upload.using=pololu

attiny85at8.upload.maximum_size=8192

# Default clock (slowly rising power; long delay to clock; 8 MHz internal)
# Int. RC Osc. 8 MHz; Start-up time PWRDWN/RESET: 6 CK/14 CK + 64 ms; [CKSEL=0010 SUT=10]; default value
# Brown-out detection disabled; [BODLEVEL=111]
# Preserve EEPROM memory through the Chip Erase cycle; [EESAVE=0]

attiny85at8.bootloader.low_fuses=0xE2
attiny85at8.bootloader.high_fuses=0xD7
attiny85at8.bootloader.extended_fuses=0xFF
attiny85at8.bootloader.path=empty
attiny85at8.bootloader.file=empty85at8.hex

attiny85at8.build.mcu=attiny85
attiny85at8.build.f_cpu=8000000L
attiny85at8.build.core=tiny
 
###########################################################################

attiny85at1.name=ATtiny85 @ 1 MHz  (internal oscillator; BOD disabled)

# The following do NOT work...
# attiny85at1.upload.using=avrispv2
# attiny85at1.upload.using=Pololu USB AVR Programmer

# The following DO work (pick one)...
attiny85at1.upload.using=arduino:arduinoisp
# attiny85at1.upload.protocol=avrispv2
# attiny85at1.upload.using=pololu

attiny85at1.upload.maximum_size=8192

# Default clock (slowly rising power; long delay to clock; 8 MHz internal; divide clock by 8)
# Int. RC Osc. 8 MHz; Start-up time PWRDWN/RESET: 6 CK/14 CK + 64 ms; [CKSEL=0010 SUT=10]; default value
# Divide clock by 8 internally; [CKDIV8=0]
# Brown-out detection disabled; [BODLEVEL=111]
# Preserve EEPROM memory through the Chip Erase cycle; [EESAVE=0]

attiny85at1.bootloader.low_fuses=0x62
attiny85at1.bootloader.high_fuses=0xD7
attiny85at1.bootloader.extended_fuses=0xFF
attiny85at1.bootloader.path=empty
attiny85at1.bootloader.file=empty85at1.hex

attiny85at1.build.mcu=attiny85
attiny85at1.build.f_cpu=1000000L
attiny85at1.build.core=tiny
658  Using Arduino / Microcontrollers / Re: SoftwareSerial with ATTiny84 using ATtiny library on: December 10, 2012, 05:25:50 pm
After deleting line 55, I get this error:

Code:
D:\arduino-1.01\arduino-1.0.1-windows (1)\arduino-1.0.1\libraries\TinyDebugKnockBang/TinyDebugKnockBang.h:152: error: expected ',' or '...' before '*' token
659  Using Arduino / LEDs and Multiplexing / Re: high power led driver on: December 10, 2012, 10:35:49 am
Take a look at these

BillO

http://arduino.cc/forum/index.php/topic,102101.0.html

reply #7


Boffin1

http://arduino.cc/forum/index.php/topic,132397.0.html
660  International / Scandinavia / Re: Måling af tid mellem tilstande on: December 10, 2012, 08:37:39 am
Hej,
Du kan erstatte pulseIN(), med en ikke blocking metode. DuanB her på forum har skrevet en del artikler om det:

http://rcarduino.blogspot.dk/2012/01/how-to-read-rc-receiver-with.html
Pages: 1 ... 42 43 [44] 45 46 ... 70