Overclock.net banner

best programming language to learn for robotics/electronics?

5309 Views 20 Replies 11 Participants Last post by  serge2k
Does anyone know which programming language is the best to learn when it comes to programming robotics and doing things with remote control cars?
1 - 20 of 21 Posts
C or C++
^ this
None? First get a programmable robot or car or whatever, then learn whatever language it supports.
Quote:

Originally Posted by Coma View Post
None? First get a programmable robot or car or whatever, then learn whatever language it supports.
Is this true? I meant in general...like if I were to make my own robot or like a remote control car and try to program it to do things
See less See more
Alright from a quick google search I see that it basically depends on the person. People suggest using C#, C++, C, and there are a bunch more minor ones.
If you plan to code the controller directly, learn assembly.
Quote:

Originally Posted by DuckieHo View Post
If you plan to code the controller directly, learn assembly.
Should I learn assembly or C? From what I've read is you can use both to program microcontrollers...I'm pretty inexperienced in this field so which one is easier or better to learn as a first programming language?
See less See more
In all honesty once you learn the first programming language and concepts, 90% of everything else is learning the syntax of different languages.

If you want to start off with microcontrollers, I'd probably recommend an Arduino.
http://www.arduino.cc
Quote:

Originally Posted by beers View Post
In all honesty once you learn the first programming language and concepts, 90% of everything else is learning the syntax of different languages.

If you want to start off with microcontrollers, I'd probably recommend an Arduino.
http://www.arduino.cc
I've heard of that as well. I'm confused though on which to start with or would be more beneficial...I don't want to start learning something and not understand it. So between assembly, C, or arduino which would be the easiest to learn for someone that is learning his first programming language. And I agree with you. I've heard many people say that once you learn your first language it only takes little time to learn another. I think C would be better because I can use it for more things, not sure though.
See less See more
Quote:

Originally Posted by ninjaburrito View Post
I've heard of that as well. I'm confused though on which to start with or would be more beneficial...I don't want to start learning something and not understand it. So between assembly, C, or arduino which would be the easiest to learn for someone that is learning his first programming language. And I agree with you. I've heard many people say that once you learn your first language it only takes little time to learn another. I think C would be better because I can use it for more things, not sure though.
C is pretty easy and a lot of controllers support it.

Really depends how you learn.... I would go through some tutorials get down the basics the arrays the functions the loops ect.... then just try some of the more hands on stuff in electronics, start small try to control a motor, Then add other things and go from there see how they work in code ect ect ect.
See less See more
Quote:

Originally Posted by luvsan View Post
C is pretty easy and a lot of controllers support it.

Really depends how you learn.... I would go through some tutorials get down the basics the arrays the functions the loops ect.... then just try some of the more hands on stuff in electronics, start small try to control a motor, Then add other things and go from there see how they work in code ect ect ect.
Alright I'm going to try this basically. Any idea how long it takes for someone to learn the basics of C if one was dedicated?
See less See more
Quote:

Originally Posted by ninjaburrito View Post
Should I learn assembly or C? From what I've read is you can use both to program microcontrollers...I'm pretty inexperienced in this field so which one is easier or better to learn as a first programming language?

Yeah... forget about learning to programming for robotics/electronics. First, learn the concepts of programming. I would begin with C++.
See less See more
C, don't bother with C++.

Then learn ARM assembly, or any other RISC assembly language like MIPS. This might be harder since you can't run it on your PC, but if the controller doesn't support C then it will likely use a RISC architecture assembler.
Quote:


Originally Posted by DuckieHo
View Post

Yeah... forget about learning to programming for robotics/electronics. First, learn the concepts of programming. I would begin with C++.

basics are always first. How different is C++ from C. I can't find any decent book for C that was made in this decade.
See less See more
Why would you need a more recent one? The most used C standard is C99, and while learning you probably won't run into any parts of that standard that differ from ansi C (which was written in 1990). The C bible (


K&R 2nd edition K&R 2nd edition
) was written in 1988 and is probably the most used C book
See less See more
Quote:


Originally Posted by nathris
View Post

C, don't bother with C++.

Then learn ARM assembly, or any other RISC assembly language like MIPS. This might be harder since you can't run it on your PC, but if the controller doesn't support C then it will likely use a RISC architecture assembler.

I would still learn C++ for the more advanced concepts.... unless he never plans to do OOP.
See less See more
You need to first learn how to build a robot. It seems you know little to nothing about it, so you can't possibly start learning how to program them right now. Ideally, you should learn about building a robot and programming the robot at the same time.

And if you're already fantasizing about programming a robot at this stage, you probably won't get to the practical stage anyway
See less See more
2
Quote:

Originally Posted by Coma View Post
You need to first learn how to build a robot. It seems you know little to nothing about it, so you can't possibly start learning how to program them right now. Ideally, you should learn about building a robot and programming the robot at the same time.

And if you're already fantasizing about programming a robot at this stage, you probably won't get to the practical stage anyway

Yes I am learning how to build a robot at the same time.
About the decade thing I assumed there are different versions ( I guess its not that important)
See less See more
1 - 20 of 21 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top