| | Re: servo program
|
|
Here's a simple program that will make a servo move as the knob on the Handyboard is turned: int i; void main() { init_expbd_servos(1); while(1) { i= knob(); i = (i*10)+1000; printf("val %d\n",i); msleep(20L); servo0 = i; } } (...) (25 years ago, 29-Nov-99, to lugnet.robotics.handyboard)
|
|
| | Re: servo program
|
|
Dear ?: First off, your program contains an infinite loop; statement return(0); will never be reached. Also you told it that main does not return a value, yet you used e return in the end. This will generate a compiler error for sure. I belief the (...) (25 years ago, 29-Nov-99, to lugnet.robotics.handyboard)
|
|
| | Re: evaluate inverse cosine, sine in IC
|
|
I've been trying to do this as well. The problem I have found is that the Taylor series expansion needs to be developed near the solution to get accurate results. Some may wonder why finding the arcsine of a number might be of interest. If one has a (...) (25 years ago, 29-Nov-99, to lugnet.robotics.handyboard)
|
|
| | servo program
|
|
Can anyone please write me a brief servo motor program that will control two servos from the expansion board? This the one I had to control one, but did not work: void main(void) { while(1) { init_expbd_servos(1) servo0 = 1000 } return(0); } (...) (25 years ago, 29-Nov-99, to lugnet.robotics.handyboard)
|
|
| | Re: Opto isolator
|
|
Hi Tim, Try (URL) and (URL) seems to be a huge variety of MOC3x series optoisolators to choose from. You might be able to find a substitute for the MOC5003 or 4 that you're looking for. Good luck, (...) Great minds discuss ideas; Average minds (...) (25 years ago, 28-Nov-99, to lugnet.robotics.handyboard)
|