Buy an Axon, Axon II, or Axon Mote and build a great robot, while helping to support SoR.
0 Members and 1 Guest are viewing this topic.
so tell me if I have this right:if I wont to pause for 1.5 ms I could use this command PAUSE 2/3
For example, if I know my microcontroller takes 1.5ms to run a while loop 300 times, then I just do a while loop 300 times for my servo
the easiest method is just to use an oscope - send out a high-low pulse from a DO after the while loop is done, and measure the time between pulses.when the time reaches about 1.5ms, your servo should be centered.i dont bother calculating or counting anything cause its too dependent on hardware (the timing crystal, voltages, etc.)