Hallo Andun,
für was ich es nehme, weiß ich noch nicht. Ich wollte einfach mal sehen, ob es ohne weiteren Aufwand möglich ist, ein Servo an einen ASURO anzuschließen.
Man könnte das Servo ja auch für einen Greifer oder sonst irgendetwas verwenden.

Hier noch der Code für eine einfache ( wenn auch etwas ungenaue ) Ansteuerung:
Code:
/***************************************************************************  
*
*	SIGNAL (SIG_OUTPUT_COMPARE2)
*
*	interrupt function for counter and servo control
*	uses timer2 (36kHz for IR communication
*	counts falling and rising edge => 36kHz*2 = 72kHz
*
*	- the servo should be connected to PORT PD6 ( FrontLED off ASURO )
*	- the function is tested with a GWS IQ 100 mikroservo
*	
*	
*	hightime: servo pwm control variable, value should be 120 to 190
*
*	2.9.2005 stochri
*
****************************************************************************/
#define byte unsigned char
byte hightime=100;

SIGNAL (SIG_OUTPUT_COMPARE2)
{
	static byte flag=0,lowcount;
	
	count72kHz ++;
	
	if(flag)
	{
		lowcount++;
		if(!lowcount)
		{
			lowcount=250;
			flag=FALSE;
			PORTD = (PORTD &~(1 << PD6)); // reset Portbit
		}
	}
	else
	{
		if (!count72kHz) lowcount++;
		if (!lowcount)
		{
			lowcount=hightime;
			flag=TRUE;
			PORTD = (PORTD &~(1 << PD6)) | (1 << PD6); // set Portbit
		}
	}
}
Das Ganze muss in die asuro.c eingebaut werden.

Gruss,
stochri