Society of Robots - Robot Forum
Software => Software => Topic started by: monsieurpo on May 22, 2010, 09:51:19 AM
-
hi everybody i want to start programing my own robot but i want to learn the picbasic (for starting) i have some questions.
1.can i control a servo with bluetooth with picbasic?
2.can i build a walker with picbasic?
3.what is the difference between picbasic and C ?
4. does C have more features?
5.is picbasic a good language to start?? (i found c difficult... :-\)
thank you (sorry for my bad english im a french canadian)
-
First of all, what kind of microcontroller your robot have? Because only some languages work with a certain microcontroller. Picbasic is for PIC microcontrollers. If you have AVR microcontroller, then look at Bascom, that is the AVR's basic compiler. But I would recommend to start with Arduino, because it uses C language, that is more powerfull than Basic language, and it is a lot easier to learn than AVR GCC. Arduino has the simplicity of Basic and the power of C. You can find lots of examples of Arduino code on the net. And they have a French section on their forum.
-
1. yes
2. yes
3. uhhh...they're different languages with different syntax
4. no
5. as good as any other
-
Thank you very much i forgot a last question wath is the most easyer language?
-
Basic is the easiest (it's in the name :D )
-
well i dont know if i should use arduino language or pic basic...(robot-x sent me some arduino tutorial thx :) but where can i find picbasic tutorial i found nothing interesting on google....
-
This page (http://www.picbasic.co.uk/forum/showthread.php?t=1240) referrs to the book PIC BASIC An Introduction.
If you really want to use BASIC to program PIC microcontrollers, I suggest MikroBASIC. It's what I used before I got an arduino, and its pretty easy to learn. The only drawback is the free version has a limit of 2000 lines (I think)
There are loads of tutorials for MikroBASIC on google, like:
http://www.mikroe.com/pdf/mikrobasic/1st_project_pic_basic.pdf (http://www.mikroe.com/pdf/mikrobasic/1st_project_pic_basic.pdf),
http://www.mikroe.com/old/books/picbasicbook/01.htm (http://www.mikroe.com/old/books/picbasicbook/01.htm),
and http://www.robodyssey.com/resources/PICProject/index.htm (http://www.robodyssey.com/resources/PICProject/index.htm)
-HyperNerd
-
Other Microcontrollers to use basic on include the BasicStamp: http://www.parallax.com/tabid/295/Default.aspx (http://www.parallax.com/tabid/295/Default.aspx)
Or ones by BasicMicro: http://www.basicmicro.com/ (http://www.basicmicro.com/) They have two lines that are pic based microcontrollers (BasicAtom and Nano). Of there stuff I prefer the Atom Pros, which are renesas H8 based systems.
As for what is the easiest to learn, that is difficult to say. There are tons of examples and tutorials that are based on the Basic Stamp. But I personally prefer the Basic Micro stuff as it allows me to get to the underlying power of the microprocessors.
I also personally prefer C but that does have a bigger learning curve.
Good Luck
Kurt