Arduino and SugarCRM 7 – Do we have un-handled support tickets?

Following up on my previous post about connecting an Arduino to internet with an Ethernet module, I wanted to build a quick solution to notify the support team about un-handled customer issues on the CRM system.

Arduino Sugar7 Case counter
Arduino Sugar7 Case counter

The objective is to connect via the REST API to SugarCRM and give an immediate feedback to the team using an Arduino. The output can be anything; from an awesome smoke machine, to a rotating light, a small set of LEDs, a LCD display, an audio alarm, whatever really. In this specific case it will be a set of 5 LED’s and a buzzer.

This practical example shows how to bring together Arduino micro-controllers, basic electronic skills and software web technologies. The result creates a physical device that gives real time feedback for software users about something that needs immediate attention.

The main challenge is that Arduino does not have enough computational power and memory to connect to SSL websites, as I mentioned on my previous blog post.

The first step, is to write a small PHP “proxy” application to handle the login to a SugarCRM system in a secure way, retrieve the required data based on some specific business logic (on this example, count the “New” support Cases) and then output the result. The Arduino micro controller will then act, based on the result retrieved from the PHP page.

Prototype Video Demo

Let’s see the prototype in action on this video.

PHP “Proxy” Website

  • Make sure to have Composer installed (
  • To get up to speed in minutes with the SugarCRM v7 REST API, install Sean Pinegar‘s SugarCRM v7 API wrapper library that seems well executed! (Just follow the instructions on GitHub, but basically create the composer.json file with the right content and then run “composer install” from command line on the web server)
  • Create the index.php on the main site’s folder and then require Composer’s libraries:

    Comments are closed.