Overclock.net banner

1 - 20 of 21 Posts

·
Registered
Joined
·
2,485 Posts
Discussion Starter #1
Does anyone know which programming language is the best to learn when it comes to programming robotics and doing things with remote control cars?
 

·
Premium Member
Joined
·
11,272 Posts
None? First get a programmable robot or car or whatever, then learn whatever language it supports.
 

·
Registered
Joined
·
2,485 Posts
Discussion Starter #5
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
 

·
Registered
Joined
·
2,485 Posts
Discussion Starter #6
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.
 

·
Premium Member
Joined
·
65,162 Posts
If you plan to code the controller directly, learn assembly.
 

·
Registered
Joined
·
2,485 Posts
Discussion Starter #8
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?
 

·
Premium Member
Joined
·
14,051 Posts
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
 

·
Registered
Joined
·
2,485 Posts
Discussion Starter #11
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.
 

·
Registered
Joined
·
1,146 Posts
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.
 

·
Registered
Joined
·
2,485 Posts
Discussion Starter #13
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?
 

·
Premium Member
Joined
·
65,162 Posts
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++.
 

·
Premium Member
Joined
·
12,992 Posts
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.
 

·
Registered
Joined
·
2,485 Posts
Discussion Starter #16
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.
 

·
Premium Member
Joined
·
5,282 Posts
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
 

·
Premium Member
Joined
·
65,162 Posts
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.
 

·
Premium Member
Joined
·
11,272 Posts
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
 

·
Registered
Joined
·
2,485 Posts
Discussion Starter #20
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)
 
1 - 20 of 21 Posts
Top