Hello all, I am new to Arduinos and already I have many small items to play with. one item I'm playing with at the moment is Attiny's, The trouble I'm having is inputting outputs, i have 2 variable resistors and 2 servos and on my Arduino i have a code to make them both move so i decided to try throwing the code on a Attiny84 20mhz, i changed the pin entries i used the PWM pins for my outputs but I'm guessing i am doing it all wrong... if someone could help me i would be very grateful.
const byte PIN_ANALOG_X = 1;
const byte PIN_ANALOG_Y = 2;
Servo pan;
Servo tilt;
long currentX=0;
long currentY=0;
avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny84
avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny84
but the trouble im having is that when i connect my variable resistors there is nothing... even when i put my servo pins in the servos make no judders.
When i connect the project together on a uno or a nano 328 it works perfect and even the servos judder until i add the variable resistors.
So you believe I'm just using the wrong pins? if i was to put the pins of the servos into 4 & 5 it still does not work... I'm guessing its something to do with my code not the pins in placing in my code
I didnt realise at the time of the different sizes.... i still am not fully schooled on them in general, so when i bought a couple i only bought them and an attiny84.... i also have some 85's again at 20mhz but they are too small anyway.
My point is are you actually running the '84 at 20MHz with an external crystal? Arduinos normally run at up to 16MHz, so could that extra 4MHz be the problem?
You can run the '84 at 1MHz, 8MHz or 16MHz (I think) without a crystal.
Sorry as i say i am very new to this so I'm still not educated enough yet.. what is the 1/8/16/20mhz about and even for? I'm not sure but if that was to help by changing the clock then whats the procedure?
So what your basically saying is you believe theirs a chance the code is actually good enough to control variable resistors with the pins i have stated? but that the 84 is just not capable as of yet?
also you mention about a Crystal..... I don't follow? sorry for the noob questions...