Home > News & Updates > Electronics News Updates > Enginursday: Visually Programming Arduino

Enginursday: Visually Programming Arduino

Summary of Enginursday: Visually Programming Arduino


This article introduces ArduBlock, a visual drag-and-drop programming tool for Arduino that translates block diagrams into C++ code. It highlights the educational benefits of removing syntax errors, allowing students to focus on problem-solving. The author shares a successful workshop at 'Iolani School where students created projects like metronomes and sensors using LilyPad ProtoSnap boards with zero compilation errors.

Parts used in the ArduBlock Project:

  • ArduBlock software
  • Arduino IDE
  • LilyPad ProtoSnap Dev Board

I got my first taste of programming with RCX Code and an old Mindstorms RCX 1.0, so maybe it’s nostalgia speaking, but I really admire visual programming languages for their ability to introduce younger folks to programming. With color coded operators, geometrically shaped data types, and no semicolons (!), visual languages have a unique ability to make programming a more intuitive experience. And with the (admittedly necessary) annoyances of syntax removed, more of your programming focus can be directed towards solving the actual problem.

On the National Tour, and just browsing the Internet, this is a form of programming I’ve been encountering a lot lately. So, in this week’s Enginursday post, I wanted to introduce a couple of exciting visual programming tools that are specifically geared toward the physical computing we love.

ArduBlock

A month or so ago, a coworker of mine (hi Brian!) showed me a beta release of ArduBlock. ArduBlock is a programming environment designed to make “physical computing with Arduino as easy as drag-and-drop.”

ArduBlock

It’s really neat how ArduBlock ties the visual, drag-and-drop programming into actual Arduino programming. The software acts as a “tool” for the Arduino IDE. After drawing up your sketch and hitting upload, the software simply parses your block diagrams and turns it into real Arduino code. Then it compiles and uploads to your board normally. You can scroll through the generated code, compare it to your visual code, and even make your changes there. It has a lot of potential to be an amazing educational tool.

ArduBlock gets bonus points because it’s an open-source project, with development ongoing (last commit days ago!). In less than a month, the software has grown by leaps and bounds. It’s a project that’s continually improving. If you’re looking for a nifty, graphical alternative to Arduino programming, I’d encourage you to check ArduBlock out!

On the National Tour, I’ve had a few chances to see ArduBlock in action. In a workshop last weekend at the (seriously amazing) ‘Iolani School, we had the opportunity to lead both teachers and students in programming the LilyPad ProtoSnap Dev Board using ArduBlock. The workshop was a great success – seven hours of programming, zero compiling errors. It didn’t take much instruction before the students quickly took off on their own, creating cool projects like a tap-input metronome, “monster detector,” or a miniature police siren. ArduBlock allowed the kids to focus everything they had into creating rather than debugging, and that’s what makes visual languages so special.

 

For more detail: Enginursday: Visually Programming Arduino

 

Quick Solutions to Questions related to ArduBlock:

  • How does ArduBlock work?
    It parses block diagrams and turns them into real Arduino code which is then compiled and uploaded.
  • Can I edit the generated code?
    Yes, you can scroll through the generated code, compare it to your visual code, and make changes there.
  • Is ArduBlock an open-source project?
    Yes, it is an open-source project with ongoing development.
  • What board was used in the workshop?
    The LilyPad ProtoSnap Dev Board was used in the workshop at 'Iolani School.
  • Did the students encounter compiling errors?
    No, the workshop resulted in seven hours of programming with zero compiling errors.
  • What type of projects did the students create?
    Students created projects like a tap-input metronome, a monster detector, and a miniature police siren.
  • Why are visual languages beneficial for education?
    They remove syntax annoyances so more focus can be directed towards solving the actual problem.
  • Does ArduBlock act as a standalone application?
    No, it acts as a tool for the Arduino IDE.

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter
Scroll to Top