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

About The Author

Ibrar Ayyub

I am an experienced technical writer with a Master's degree in computer science from BZU Multan University. I have written for various industries, mainly home automation, and engineering. I have a clear and simple writing style and am skilled in using infographics and diagrams. I am a great researcher and is able to present information in a well-organized and logical manner.

Follow Us:
LinkedinTwitter