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 holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter