Developing a program to control my COMP444 robotics project has snowballed past what is easily maintainable using the Arduino IDE. Having used professional IDEs for other projects, I know what a great help they can be. Despite a tight schedule and a penchant for being sidetracked by tangentially-related tasks, I decided to swap to using Eclipse (for C/C++).
Any code editor can be used to program an Arduino, even Windows TextEdit, but I was looking for the best one. Top picks according to the PYPL index include Eclipse, Microsoft Visual Studio, Vim, XCode, Sublime Text, Code::Blocks, Emacs, etc. (Tools used primarily for development other than C/C++ were excluded: Android Studio, IntelliJ, NetBeans, Komodo, Xamarin, pyCharm, etc.) Notepad++ is worth mentioning by itself as a popular and excellent option, as it's not on the PYPL index for some reason (probably too close to Microsoft Notepad for meaningful Google Analytics information). I chose Eclipse primarily because I thought I could get it working the fastest, being one of the most popular options, meaning plenty of community support, and having some experience using it in years past, while gaining all the advantages of a full IDE.
I followed Doug Schaefer's article, Program Your Arduino Like a Pro with the Eclipse C/C++ IDE. Another promising option appears to be the Sloeber plugin for Eclipse. I chose the former for no better reason than eclipse.org's (Schaefer's) article not having a reason to push one implementation over another and having better presentation. (The Sloeber page seemed sloppy, a red flag according to my prejudiced personal filter for digital content.)
Here's my steps:
Now that the basics are working, I should get back to work. I imagine I may have to get out of the setup() and loop() code structure, but I'll leave that path for whenever it comes up...
The Landing is a social site for Athabasca University staff, students and invited guests. It is a space where they can share, communicate and connect with anyone or everyone.
Unless you are logged in, you will only be able to see the fraction of posts on the site that have been made public. Right now you are not logged in.
If you have an Athabasca University login ID, use your standard username and password to access this site.
We welcome comments on public posts from members of the public. Please note, however, that all comments made on public posts must be moderated by their owners before they become visible on the site. The owner of the post (and no one else) has to do that.
If you want the full range of features and you have a login ID, log in using the links at the top of the page or at https://landing.athabascau.ca/login (logins are secure and encrypted)
Posts made here are the responsibility of their owners and may not reflect the views of Athabasca University.
Comments
This is a really good description of Eclipse setup. Thanks!
I have never used Eclipse, but i use NetBeans and having a good IDE is immensely helpful. I have not got to the point in my project where I am looking at whether the Arduino IDE is enough to do the coding, But I will definitely be looking into Eclipse if I find it is not.
I had trouble adding a library that wasn't in the Arduino Downloads Manager, so I wrote about it here: Using Private Arduino Libraries with Eclipse.
Tyler,
I was in the same boat looking for a more robust alternative to the Arduino IDE so your post Switching from the Arduino IDE to Eclipse came at the right time. Eclipse is a great IDE and I was happy to hear there was an Arduino extension. I followed your directions as well as watching Doug Schaefer’s video demonstration.
I was also frustrated by the shortcomings in the Eclipse C++ IDE for Arduino that you mention in this blog post. The steps necessary to include your own libraries makes the product feel like a not-fully-baked solution.
I just posted a summary of my IDE explorations and the solution I think I’m going to go with. I’d be interested to get your take on this.
Thanks for your helpful information…
Peter