Hello!
I've recently tried to control a servo using Great Cow Basic and a PIC16F628A. Since at that time I just needed left and right movement, I used pulse values of 1 ms - 2 ms. However, now that I would like to have more specific movement, I was trying to use wait values of 1.2 ms, and 1.5 ms (to create pulse), however Great Cow Basic does not like these values. I remember being told that Great Cow Basic didn't like decimal-place values.
I was wondering, is there any way to get around it?
Thank you!
-Omar
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello!
I've recently tried to control a servo using Great Cow Basic and a PIC16F628A. Since at that time I just needed left and right movement, I used pulse values of 1 ms - 2 ms. However, now that I would like to have more specific movement, I was trying to use wait values of 1.2 ms, and 1.5 ms (to create pulse), however Great Cow Basic does not like these values. I remember being told that Great Cow Basic didn't like decimal-place values.
I was wondering, is there any way to get around it?
Thank you!
-Omar
Haha, whoops. Just figured it out! Sorry about that.
Seems I've gotten rather dull over the summer break.
-Omar
Actually, it seems I was wrong. Please help!
-Omar
Use something like, ...PulseOut Rservo,150 10us.
Gotcha, thanks.
I've got the servo already working, but just didn't know how to use 1.5 ms or such accurate values in GCB. That helps-- thanks!