Cloud9 IDE on the BeagleBone Black

This entry is part 2 of 4 in the series Getting Started with BeagleBone Black. This post was written by Rui Santos and Luís Perestrelo authors of BeagleBone For Dummies *

 

The Cloud9 IDE is an open-source web based programming platform that supports several programming languages.

This great piece of software comes installed on your BeagleBone Black * by default. And in our opinion this is one of the key features that makes the BBB a great programming board (the Raspberry Pi lacks a good IDE).

The code you write on your computer web browser is immediately passed to your BeagleBone Black through SSH.

Cloud9 also comes with other features such as: code completion, powerful search functions, drag-and-drop functionality, programming in multiple languages, SSH, FTP and a lot more.

Launching Cloud9 IDE

Grab your BeagleBone Black and connect it to your computer through a Mini USB cable. If you want more details, first read our Getting Started with BeagleBone Black.

After the board boots up, open your web browser, and type http://192.168.7.2:3000 in the address bar. You see something similar to the following figure.

cloud9_blinked

Cloud9 IDE overview

The following sections give you a closer look at the six main areas of the Cloud9 IDE.

cloud9_callouts_added

Menus tab: Like any computer application the menus in the Cloud9 IDE are organized in a very familiar way: File, Edit, Find, View, Goto, Run, Tools and Window.

Workspace: You can access all your folders and files with the workspace window. Everything is organized in a hierarchy.

Editor: When you open one of your scripts, the editor window looks like the one shown above. The editor highlights the functions according to the syntax of the programming of the file you have open.

Console: When you run a script, the console prints the output of your application. Those messages are commonly used to debug your code.

Debugger: The debugger is the perfect way to see exactly what is happening when you run your scripts. You can create a breakpoint so that your code runs only to a certain line that you define. You can also see which functions your code is calling and which values are stored in your variables.

Terminal: You can control your BeagleBone Black directly from the web browser, meaning that you can update or install new software, move files, and perform other commands.

Tip: Using Keyboard Shortcuts with Cloud9 IDE can save you a ton of time! Read this article we wrote at dummies.com where you can see all  keyboard shortcuts.

Testing a BoneScript example

In your workspace area open your “demo” folder and double-click the file “blinked.js”. This basic script blinks all four USR LEDs and also pin P9_14 in your BeagleBone Black.

To run you script simply press the Run green button on the top center.

cloud9_running_callouts

Your BeagleBone Black should start blinking your USR LEDs immediately!

Note: If nothing happens after you click Run, you’re probably running the script in debugger mode. To turn off debugger mode, click the little bug icon as shown in the Figure above.

beaglebone_black_solid_leds

Conclusion

That’s all for now! In the next part will create a web server with BoneScript that can be accessed with any device in your network to control outputs. If you enjoy this series make sure you subscribe here so you don’t miss our next blogs posts using this board.

Special thanks to LuĂ­s Perestrelo for helping Rui Santos putting this series together!

This is part 2, read part 3 now! ->

* We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites.



Learn how to build a home automation system and we’ll cover the following main subjects: Node-RED, Node-RED Dashboard, Raspberry Pi, ESP32, ESP8266, MQTT, and InfluxDB database DOWNLOAD »
Learn how to build a home automation system and we’ll cover the following main subjects: Node-RED, Node-RED Dashboard, Raspberry Pi, ESP32, ESP8266, MQTT, and InfluxDB database DOWNLOAD »

Enjoyed this project? Stay updated by subscribing our newsletter!

9 thoughts on “Cloud9 IDE on the BeagleBone Black”

  1. hello, rui thanks for great tutorial, i’ve got some request for projects. can you make tutorial for beaglebone and arduino projects. so that we can control something connected to arduino through web browser..

    thanks

    Reply
  2. Rui,
    I have been programming my BBB successfully via a FTDI connection using nano. I want to try to a more advanced IDE. I switched to a mini USB port connection but I can’t seem to connect with the ” http://192.168.7.2:3000 ” method. Any ideas?

    Reply
      • Rui,
        Thanks for your time. Sorry, I’m not sure if this answers your question or not. I tried this command and got this out put:
        root@beaglebone:~# cat /etc/dogtag
        BeagleBoard.org BeagleBone Debian Image 2014-04-23
        Is this the OS?

        Reply
  3. Can we compile C++ programs under Cloud9 on BBB? If so, how can we install the C++ template on C9 to start C++ coding?

    Reply

Leave a Comment

Download Our Free eBooks and Resources

Get instant access to our FREE eBooks, Resources, and Exclusive Electronics Projects by entering your email address below.