Pages: [1]   Go Down
Author Topic: AT Tiny85 Fuse Bit issues  (Read 1095 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 1
Posts: 209
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


Is it normal to get so many error when setting the fuse Bit 8Mhz on a Tiny85 using an Arduino Uno.

I don’t  think it’s actually setting it from 1Mhz to 8Mhz.  Is there anything I can do to test the fuse bit setting.


I am trying to use the servo8Bit.h, but the servo just jerks real fast. I read that the issue is most likely the fuse Bit.

Thanks


Code:
avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny85
avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny85
avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny85
avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny85
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 207
Posts: 12904
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Is it normal to get so many error when setting the fuse Bit 8Mhz on a Tiny85 using an Arduino Uno.

Those are warnings not errors.  Ignore them.  It is not worth the effort to make them disappear.

Quote
I don’t  think it’s actually setting it from 1Mhz to 8Mhz.  Is there anything I can do to test the fuse bit setting.

Run this sketch...
http://arduino.cc/en/Tutorial/blink

If the blink is about once per second the fuses are correct.
Logged

United Kingdom
Offline Offline
Tesla Member
***
Karma: 224
Posts: 6614
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Run this sketch...
http://arduino.cc/en/Tutorial/blink

If the blink is about once per second the fuses are correct.

...assuming you had F_CPU set to 1000000 in the board config file that was used when you compiled the sketch.
Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Offline Offline
Full Member
***
Karma: 1
Posts: 209
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


Those are warnings not errors.  Ignore them.  It is not worth the effort to make them disappear.

bit setting.

Run this sketch...
http://arduino.cc/en/Tutorial/blink

If the blink is about once per second the fuses are correct.


Ran the Blink Test. First w/o  changing the Fuse Bit  LED blinked Fast. Then setting it to 8Mhz . Blink once per Sec.

So I guess its working.

Know I could just get the code to work with it.
Code:
#include <Servo8Bit.h>



Servo8Bit servoMain; // Define our Servo

void setup()
{
  servoMain.attach(1); // servo on digital pin 10
}

void loop()
{
  servoMain.write(90);  // Face Forward
  delay(3000);
  servoMain.write(0);   // Face Right
  delay(1000);          // Wait 3 second
  servoMain.write(90);  // Face Forward
  delay(2000);          // Wait 1 second
  servoMain.write(180); // Turn Servo Right to 180 degrees
  delay(1000);          // Wait 1 second
  servoMain.write(90);  // Turn Servo back to center position (90 degrees)
  delay(2000);          // Wait 1 second  

}


Logged

Offline Offline
Full Member
***
Karma: 1
Posts: 209
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Run this sketch...
http://arduino.cc/en/Tutorial/blink

If the blink is about once per second the fuses are correct.

...assuming you had F_CPU set to 1000000 in the board config file that was used when you compiled the sketch.

Code:
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
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 207
Posts: 12904
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


 servoMain.attach( 1 ); // servo on digital pin 10

Is the servo signal connected to pin 1?

Are you certain Servo8Bit numbers the pins the way you are expecting?

How is the servo powered?
Logged

Offline Offline
Full Member
***
Karma: 1
Posts: 209
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is the servo signal connected to pin 1?  (Yes)

Are you certain Servo8Bit numbers the pins the way you are expecting? (No)

How is the servo powered?  Arduino 5v and Gnd.


It works fine when I use the standard servo include and the Arduino.
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 207
Posts: 12904
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


Which core are you using?
Logged

Offline Offline
Full Member
***
Karma: 1
Posts: 209
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


Which core are you using?

http://code.google.com/p/arduino-tiny/
Logged

Offline Offline
Full Member
***
Karma: 1
Posts: 209
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So I just did a little testing.

I added and LED to the code and low and behold it was blinking like a bat out of h$%^.

I commented out the servo8bit.h and any reference to it the servo and the LED blinks once per sec.

Now I am lost.
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 207
Posts: 12904
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


With the Tiny Core, by default, timer 1 is used for millis which conflicts with the library you are trying to use.  There's a compile-time switch that moves millis to timer 0.  I'll be back in a bit with details...
Logged

Offline Offline
Full Member
***
Karma: 1
Posts: 209
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


With the Tiny Core, by default, timer 1 is used for millis which conflicts with the library you are trying to use.  There's a compile-time switch that moves millis to timer 0.  I'll be back in a bit with details...


Standing By.. 
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 207
Posts: 12904
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


• Locate core_build_options.h in the Tiny Core directory

• Open it in your favourite text editor (I like Visual Studio)

• Navigate to line 107...
http://code.google.com/p/arduino-tiny/source/browse/trunk/hardware/tiny/cores/tiny/core_build_options.h#107

• Change TIMER_TO_USE_FOR_MILLIS to zero...

#define TIMER_TO_USE_FOR_MILLIS                   0

• Save and close the file

• Re-upload your program (generally it is not necessary to restart the Arduino IDE after this kind of change)
Logged

Offline Offline
Full Member
***
Karma: 1
Posts: 209
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


• Locate core_build_options.h in the Tiny Core directory

• Open it in your favourite text editor (I like Visual Studio)

• Navigate to line 107...
http://code.google.com/p/arduino-tiny/source/browse/trunk/hardware/tiny/cores/tiny/core_build_options.h#107

• Change TIMER_TO_USE_FOR_MILLIS to zero...

#define TIMER_TO_USE_FOR_MILLIS                   0

• Save and close the file

• Re-upload your program (generally it is not necessary to restart the Arduino IDE after this kind of change)


You are the Man. That was it.  I cant wait until I have the vast knowledge you possess. lol.
Logged

Pages: [1]   Go Up
Jump to: