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.
#include "SoR_Utils.h"int main(void) { LED_on();while(1) { servo_left(41); //modify number here until it centers delay_cycles(5000); } return 0;}
I am not sure if anyone else ran into this problem but the hex code did not center my servo motors for modification, so I have to edit the code to center them myself. If anyone else had that trouble please let me know.
#include "SoR_Utils.h"int main(void) {while(1) { LED_on(); delay_cycles(5000); LED_off(); delay_cycles(5000); } return 0;}
Also, could you please let me know the Hz function?
#include "SoR_Utils.h" //includes all the technical stuffint main(void) { LED_on();while(1) { servo_left(40);//modify number here until it centers delay_cycles(xxx); } return 0;}
void servo_left(signed long int speed) { PORT_ON(PORTD, 0); delay_cycles(speed); PORT_OFF(PORTD, 0);//keep off delay_cycles(200); }
I haven't modified the servo at all actually.I have not taken the servo apart. When I upload the hex code to the Atmega8 to modify the servo it does not center the servo,
Also, I shouldn't have to take it apart yet, if the wheel on the servo motor doesn't spin to the middle of it's full rotation, then it isn't centering, correct?