Society of Robots - Robot Forum

Software => Software => Topic started by: hassanjaved on May 04, 2007, 10:12:41 AM

Title: Programming problem!
Post by: hassanjaved on May 04, 2007, 10:12:41 AM
Hi! I am a beginner in robotics and I came to know that one should be able to programme in .C. for success in robotics.

I want to know which part of C deals with programming microcontrollers and what should I tell my instructor to teach me if I want to access hardware through
C?  Also what basics should I know to programme microcontrollers?
Title: Re: Programming problem!
Post by: hazzer123 on May 04, 2007, 10:45:17 AM
Code for microcontrollers is all written in some sort of low level language e.g. for PICs it is Assembly code.

There are, however, compilers which basically translate a higher level language e.g. c or c++, to a lower level language.
The PIC micro controllers have a range of these translators for use with visual basic, C and others.

To start creating robots with microcontrollers, you will need to understand the basic loops e.g. if, while, for. Also the different types of variables e.g. char, float, int.
With that, you could probably do simple blinking LED programs, the "Hello World" of microcontrollers, and from that bigger and better projects.