Author Topic: Programming problem!  (Read 3380 times)

0 Members and 1 Guest are viewing this topic.

Offline hassanjavedTopic starter

  • Beginner
  • *
  • Posts: 6
  • Helpful? 0
Programming problem!
« 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?

Offline hazzer123

  • Supreme Robot
  • *****
  • Posts: 460
  • Helpful? 3
Re: Programming problem!
« Reply #1 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.
Imperial College Robotics Society


Get Your Ad Here