The Ultimate IoT Mashup!

Beginner’s guide to the Raspberry Pi, GrovePi, and Java with Maven, Payara, and NetBeans IDE

Ken Fogel

I spent part of this summer writing a series of articles that should inspire anyone interested in working with Java and IoT. The series describes a mashup between a Payara Micro demo for the Raspberry Pi modified to present output from a Grove temperature sensor. Pretty basic stuff and I probably only added or modified 25 lines of code plus redid some POM.xml files.

It started when, for Xmas, I put on my wish list a specific set of components that could allow me to interact with devices:


The project that results from the parts below can be found here:

The parts are as follows:

  1. How to Run Maven Based Projects on a Remote Raspberry Pi Using NetBeans (Part 1/2)
    I came across an issue that I felt could be fun to resolve. The issue is how to copy to and execute on a Raspberry Pi a compiled Java application. As a NetBeans Dream team member, my IDE of choice is NetBeans. If you are already a NetBeans user playing with Pi systems, you already know it can be done if you create a native NetBeans project. My issue derives from the fact that I use Maven rather than NetBeans or any other IDE’s internal build system. Read more here…
  2. How to Run Maven Based Projects on a Remote Raspberry Pi Using NetBeans (Part 2/2)
    In the first part of this series, I presented a solution for developing on a Windows PC a Maven managed Java applications with NetBeans and then deploying it to a Raspberry Pi. In this part I will look at at a solution that allows you to accomplish these tasks from within NetBeans. It will work with any version of Windows and Linux. Read more here…
  3. IoT without the Breadboard (Part 1/3)
    For Xmas, I put on my wish list a specific set of components that could allow me to interact with devices. What I received for Xmas was a big bag of parts, some components such as LEDs, temperature sensor and a small LCD display. I set as my first goal to turn on and off an LED. Read more here…
  4. IoT without the Breadboard (Part 2/3)
    In 2012 Seeed Studios of China introduced the Grove System of modules for the burgeoning IoT sector. Seeed used the classic model of simplification, Lego. In the world of Lego you just push bricks together. Seed developed the Grove System to be that easy to use. Of course nothing is quite that simple, not even Lego. None the less, the Grove system was made for breadboard impaired developers like me. Read more here… and the next article will look at a mashup between Payara Micro and the GrovePi+ in Java.
  5. IoT without the Breadboard (Part 3/3)
    In my Payara Micro and GrovePi+ Mashup project, I have combined two other projects. These are Steve Millidge’s, of Payara, proof of concept Java EE application that highlights the use of the Payara Micro server on the Raspberry Pi. The other project is Eduardo Moranchel’s IoTDevices project that presents how to work with the GrovePi with Java. Read more here…

In conclusion, the above is a beginner’s guide to the Raspberry Pi, GrovePi, and Java. My intention, in outlining the above, is to inspire programmers who have not yet dipped into the world of IoT. Feedback is welcome!


Ken Fogel

Ken Fogel is the Chairperson and Program Coordinator for the Computer Science Technology Program at Dawson College, Montreal. Instructor at the Continuing Education Computer Institute of Concordia University, Montreal. Passionate about teaching and inspiring students to be better programmers. Member of the NetBeans Dream Team.

comments powered by Disqus