I am an experienced web-developer, but my C++ skills are very basic. I struggle with the concepts because it is so different from something like Javascript (which I already know). I do not have a lot of time to learn C++, and I only need to know enough to play with Arduinos. Are there any good resources out there for learning C++ that is specifically geared towards Arduino programming, and is there anything interactive like Codecademy?
|
since you have programing experience and you say you only want to learn enough to play with arduinos, I think a resource worth mentioning is the built in example progams. I've seen Arduino itself used as a learning tool for C/C++; their examples are very basic and intended for complete novices. If you keep hacking on progressivly more complicated examples and googling specific things you don't understand you will probably be able to get a good handle on things IMHO. That isn't to say its necessarily a good tool for learning C++ in general, since the limited memory resources and 8-bit CPU make some capabilities of the language commonly used on desktops (and the whole standard library) rarely used or unavailable on Arduino. |
|||||||||
|
If I were you I'd take the high road. I was in your shoes a while ago and I didn't know how to approach Arduino. I was very lucky that I came across a book written by the famous Jack Purdum, "Learn C programming for the Arduino". It is written by a retired Purdue University professor who is well known for his extremely easy to learn teaching method. He has another I only knew MATLAB and Simulink before starting this book. This book is amazing. It was extremely easy to follow. I now have no difficulty programming Arduino in the correct way. This book trains you to optimize everything which is very crucial with the limited resources on Arduino boards. I suggest C instead of C++. It is the language of choice for programming embedded system. It is said to be low level, but as a MATLAB user I should tell you that syntaxes are extremely easy and intuitive. I didn't find anything hard about them. Remember:
Good Luck |
|||||||||||||||||
|
Another way to approach the problem is to come up with a project that you want to do with an Arduino and look for code samples. Since you already have some programming experience you should be able to pick up what's going on pretty quickly and you will have a vested interest in what the code is doing. For Example: Read temperature from a sensor and display to an LCD. Arduinos are really good for reading from a sensor and there's a huge arduino community. So, if you start with just reading from different types of sensors you'll find a lot of examples and learn a lot about Arduinos at the same time. |
|||
|
A very good book: Beginning C for Arduino:Learn C Programming for the Arduino, by Ph.D. , Jack Purdum |
|||
|