Hate to tell you, but you've got the wrong forum. Pic Basic Pro has no Servo command
Proton Basic perhaps? (They're not the same)
Hate to tell you, but you've got the wrong forum. Pic Basic Pro has no Servo command
Proton Basic perhaps? (They're not the same)
So proton uses pic basic then and not pic basic pro? I just got it today so am a little confused, thanks.
Hi,
No need to be a Proton expert to see the example is ... not so good !
a closer look to your "Help file" example will show you there's some inconsistance ...
1) Buttons are connected between inputs and ground, good ... BUT you must add 10k resistors between V+ and inputs to give some "pullup" ...
2)
Replace
IF PORTA.0 = 0 Then IF Pos < 3000 Then Pos = Pos + 1 ' Move servo left
IF PORTA.1 = 0 Then Pos = 1500 ' Centre servo
IF PORTA.2 = 0 Then IF Pos > 0 Then Pos = Pos - 1 ' Move servo right
by
IF PORTA.0 = 0 Then IF Pos < 2200 Then Pos = Pos + 1 ' Move servo right
IF PORTA.1 = 0 Then Pos = 1500 ' Centre servo
IF PORTA.2 = 0 Then IF Pos > 800 Then Pos = Pos - 1 ' Move servo left
This will prevent damaging your servo or having strange behaviour ... by overtravel !!!
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Thanks for all the help! even though i'm in the wrong forum :0. So any thoughts on which is better? Is proton a good software package. I got it without really knowing what else is out there? Thanks!
Asking that in a Picbasic pro forum... you're probably going to get a slightly bias answer
There are several languages that allow you to program PIC's, and then several variants with in those. Most will allow you to get started, some will allow you to progress better than others, most have excellent support, either direct or via forums like this one.
Some, like MicroBASIC are free up to a limit of 2K of code, others can cost upwards of £200 (like PicBasic Pro) but then you are using a "professional" application which is very strong.
I'm sure if you lurk over on the correct forum and post your questions there you will get as much support as you need.
Bookmarks