Wireless servo controller II




We described simple method, how to drive modellers servo. Today, we are going to try to drive this servo from potentiometer connected to TR module ADC. It is reaction to forum thread where is discussion about airplane model control possibility.

servo_header

We are going to use redesigned ADC usage example (sensor module source code) in this way:

 

while(1)
	{	
		//clrwdt();
		waitDelay(5);				
		ReadAnalogInput();											

		voltage = ADC_result / 4;    //10b to 8b
		voltage = voltage * 181;     // 181/256 = aprox. 0.707031
		bufferRF[0] = 'S';
		bufferRF[1] = voltage.high8 + 70;	

		PIN  = 0;
		DLEN = 2;
		RFTXpacket(); 	
	}

For more detail: Wireless servo controller II




Leave a Comment

*
= 4 + 5

Read previous post:
3D TouchPad from Microchip

Microchip Technology have announced a computer peripheral 6” touchpad which it claims is the first able to resolve 2D multi-touch...

Close
Scroll to top