Well I am brand new to this world so forgive me if I am not asking the right question. I am trying to program an ATtiny861a and i am not able to find that chip in any library or updated library. I am hoping someone out there can help me with this and hopefully I didn't choose the 1 chip that couldn't be programmed with Arduino!
Thanks so much ( @Erni ) I got the Attiny861 board now showing in my arduino IDE along with my USBtiny ISP!
Now if I could only know how to actually transfer my code to the chip.
Sorry I am a baby in this world! I have never seen this stuff before and I have the completed code, however I have know Idea how to get it on the chip!!
The first step is to connect your programmer to the attiny
Load the sketch you want to compile and upload to the tiny
Select tools->board->Attiny 861 @ 1 MHz
Select tools->Programmer-USBtinyISP
Select File->upload using programmer
Just tried it ant I am getting the following error.
Alex_Motor_Limit_Switch_Code_v2.ino: In function 'void loop()':
Alex_Motor_Limit_Switch_Code_v2:29: error: 'analogWrite' was not declared in this scope
Alex_Motor_Limit_Switch_Code_v2:30: error: 'delay' was not declared in this scope
Alex_Motor_Limit_Switch_Code_v2:35: error: 'analogWrite' was not declared in this scope
Alex_Motor_Limit_Switch_Code_v2:36: error: 'delay' was not declared in this scope
Alex_Motor_Limit_Switch_Code_v2:45: error: 'analogWrite' was not declared in this scope
Alex_Motor_Limit_Switch_Code_v2:46: error: 'delay' was not declared in this scope
Alex_Motor_Limit_Switch_Code_v2:52: error: 'analogWrite' was not declared in this scope
Alex_Motor_Limit_Switch_Code_v2:53: error: 'delay' was not declared in this scope
digitalWrite(Motor_Direction, DIR_CLOCKWISE); // set motor A to Clockwise rotation
// start motor at zero speed and ramp up to maximum speed
for(incrementCounter = 0; incrementCounter<256; incrementCounter++)
{
analogWrite(Motor_Speed, incrementCounter);
delay(DELAY_TIME);
}
// start motor at maximum and ramp down to zero speed
for(incrementCounter = 255; incrementCounter>-1; incrementCounter--)
{
analogWrite(Motor_Speed, incrementCounter);
delay(DELAY_TIME);
}
// start again with motor turning the opposite way
digitalWrite(Motor_Direction, DIR_COUNTERCW); //
// start motor at zero speed and ramp up to maximum speed
for(incrementCounter = 0; incrementCounter<256; incrementCounter++)
{
analogWrite(Motor_Speed, incrementCounter);
delay(DELAY_TIME);
}
// start motor at maximum and ramp down to zero speed
for(incrementCounter = 255; incrementCounter>-1; incrementCounter--)
{
analogWrite(Motor_Speed, incrementCounter);
delay(DELAY_TIME);
}
if ( TogglePin != NO_PIN)
{
digitalWrite( TogglePin, HIGH );
pinMode( TogglePin, OUTPUT );
}
Debug.print( F( "\r\n\r\n // Initial value of OSCCAL is 0x" ) );
Debug.print( OSCCAL, HEX );
Debug.println( F( ";" ) );
_delay_ms( 1000 );
OutputOSCCALAssignment();
}
void loop( void )
{
OutputOSCCALAssignment();
}
After that I tried entering the code I was given and gave it the same libraries and still got the error. Not sure why its not recognizing the basic functions. I have been trying to make sense of the forum post that you gave me and I thought I did everything that I needed to.
Now I am getting this error when I am trying to upload!
I am using the USBtiny ISP and then from there to a Custom PCB that is attached to a wire harness.
Binary sketch size: 1,120 bytes (of a 8,192 byte maximum)
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.