Don't ad-block us - support your favorite websites. We have safe, unobstrusive, robotics related ads that you actually want to see - see here for more.
0 Members and 1 Guest are viewing this topic.
My English is not good, please forgive me.I have a servo (servo motor Futaba S3003) with a sharp IR.I am a novice to write code, I have a irobot create (atmega168) and some programs.I am using this web method, http://www.societyofrobots.com/robot_iRobot_Create_mod.shtml.I saw this video (http://www.youtube.com/watchv=f_VOQNXpt3g&feature=player_embedded) with this code (iRobot Create WaveFront Source Code) found on the page.If you just simply turn to Futaba S3003 servo motor if you want to use the pwm and a2d it?I want to have that film's four steps of the code, let me reference and learning.
Does your code where you can control the motor rotating it?
Can you write the first step program to me for reference and study?
//scan servo left and right//each servo is different, so try different numbers until it workswhile(1){for(uint16_t i=200;i<2000;i++) { servo_scan(i); delay_ms(10); }for(uint16_t i=2000;i>200;i--) { servo_scan(i); delay_ms(10); }}
////////////////////Enter your code below this line////////////////////