element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Arduino Development Environment Alternatives . . .
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 7 replies
  • Answers 1 answer
  • Subscribers 394 subscribers
  • Views 2065 views
  • Users 0 members are here
  • sudo sergeant
  • Arduino Development Environment
  • sudo feedback
  • sudo feedback arduino
  • arduino ide
  • arduino
  • sudosergeant
Related

Arduino Development Environment Alternatives . . .

technicus
technicus over 7 years ago

We just released a sudo sergeant segment in which I presented an alternative to the Arduino IDE.  This is a configuration I have implemented at my workstation.  In these segments we have noticed that there have been quite a few comments and questions.  I thought it would be helpful for me to provide a little more context beyond the video.

In my opinion, Arduino is a great platform for quick testing and proof of concept examples.  I feel it does a lot to help people overcome the learning curve of wanting to know how to program a microcontroller.  The development environment is basic and provides everything necessary to start programming right away.

 

The focus of the segment was on setting up an alternative to the Arduino Development Environment.  It is a cross platform application based on Java.  There are a few features of the software which I really like:

  • cross platform
  • built in serial terminal
  • library manager
  • example manager
  • board manager
  • compile and upload utility
  • ability to use external editor

 

Those are all great features, in my opinion, the actual editor - although it does everything necessary - is not as efficient when it comes to editing.  I'm not a Vi or Emacs expert, although I am quick with KDevelop.  KDevelop is an Qt based IDE.  It has a feature for the execution of external scripts which I leveraged to compile Arduino code while within the KDevelop IDE by pressing 'shift-F9', just like 'ctl-u' in the Ardino IDE.

 

I wrote a script that takes an argument which is the name of the .ino file.  The script will navigate to where the source file(s) are, within relation to where it is in my system.  It will then compile the code and upload it using the Arduino software, by sending it a set of arguments that include the target board for compilation, the name of the source file, and the port of the device.  The scrip will also find preserve and list the temp files.  I did this for my own curiosity because I wanted to see what Arduino actually creates and what it is really doing.

 

I found out what arguments to send Arduino by checking compilation and upload options of "Show verbose output during:" in the preferences menu of the Arduino IDE.  Then I read through the Arduino compile and upload output.  I also read through the Arduino manpage for additional information.

 

Here is the script, I name it "Programmer.sh":

 

clear;
programTitle="${1}";
programFind="`find ../Development -name ${programTitle}`";
programPath="${programFind%/*}";
programName="${programFind##*/}";
cd "${programPath}/${programName}";
currentPath="`pwd`";
echo;
echo "Program Info";
echo;
echo "Program Title = ${programTitle}";
echo "Program Find  = ${programFind}";
echo "Program Path  = ${programPath}";
echo "Program Name  = ${programName}";
echo "Current Path  = ${currentPath}";
echo;
# this is where arduino does all the work
arduino --board adafruit:avr:feather32u4 --verbose-build --verbose-upload --preserve-temp-files --upload --port /dev/ttyACM0 ${programName}.ino
programBuildTmpPath="`find /tmp -name ${programTitle}.ino.elf 2>/dev/null | sed 's|^/tmp/||' `" # | sed 's|^/tmp/||'"; #find /tmp \( -not -readable -o -not -executable \) -prune -name 'adruino_build*'
programBuild="`dirname ${programBuildTmpPath}`";
programBuildPath="/tmp/${programBuild}";
programParentPath="`dirname ${currentPath}`";
programBuildPathNew="${programParentPath}/${programTitle}_Build";
echo "Program Info";
echo;
echo "Program Title = ${programTitle}";
echo "Program Find  = ${programFind}";
echo "Program Path  = ${programPath}";
echo "Program Name  = ${programName}";
echo "Current Path  = ${currentPath}";
echo;
echo "Program Build Info";
echo;
echo "Program Build Path Tmp  = ${programBuildPath}";

 

What experiences do you have with alternatives to the Arduino development environment?

  • Sign in to reply
  • Cancel

Top Replies

  • technicus
    technicus over 7 years ago in reply to jakeydoodle123 +2
    That's awesome!!!!
  • ryanthornburg
    0 ryanthornburg over 7 years ago

    would it be possible to run the programming without the gui, using the command line?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • cstanton
    0 cstanton over 7 years ago in reply to ryanthornburg

    Yes, you can use a make file (https://hackaday.com/2015/10/01/arduino-development-theres-a-makefile-for-that/ ) or Arduino from the command line (https://playground.arduino.cc/Learning/CommandLine)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • jakeydoodle123
    0 jakeydoodle123 over 7 years ago in reply to ryanthornburg

    Hello, Ive actually been working a little tool to do this for me as well  (I've been working on it for a few weeks), its still pretty young but it can get the job done.

    it's written in c++ and uses vim as its default editor.

    Here is the GitHub link: https://github.com/jakeydoodle123/cliArduino

    Hope this helps you.

    Also the code is relatively easy to read and I'm very knew to C++ so feel free to make comments on it! image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • ryanthornburg
    0 ryanthornburg over 7 years ago in reply to jakeydoodle123

    I haven't been working on my C++ as much as I should be. Nevertheless this looks to be a good choice for me, so I'll take a look over it when I can. Thank You!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • ryanthornburg
    0 ryanthornburg over 7 years ago in reply to cstanton

    Cool, thank you for the links, I'll check them out when I get the chance.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • technicus
    0 technicus over 7 years ago in reply to jakeydoodle123

    That's awesome!!!!

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • fariez97
    0 fariez97 over 7 years ago in reply to technicus

    can you help me to do a project and find some coding for control switch wireless remote to control lamp and fan????

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube