Raspberry Pi Click Board Sensor Kit - Review

Table of contents

RoadTest: Raspberry Pi Click Board Sensor Kit

Author: dimiterk

Creation date:

Evaluation Type: Development Boards & Tools

Did you receive all parts the manufacturer stated would be included in the package?: True

What other parts do you consider comparable to this product?: There are a number of Raspberry Pi sensor boards that offers similar functionality. From the Seed studio RPI ecosystem to custom boards.

What were the biggest problems encountered?: 1. No code examples at all. 2. Closed source libraries for 3'rd party compilers. No Python code. 3. Breakout boards are quite clunky/big for the tiny sensors they host. 4. Temperature sensor gets hot due to close proximity to RPI PCB. 5. Click sensors are not price competitive.

Detailed Review:

We are going to review the Raspberry Pi Click Board Sensor Kit. The set is comprised of an RPI, a Mikroelektronika Click board and two clicks boards.

The first click board is an LSM2D IMU (Inertial Measurement Unit) which is configured to use the SPI bus for communication. This is a 9DOF sensor.

The second click board uses the BME680 humidity/temp/pressure and gas sensor which makes use of the I2C bus.

Part of the review is centered on using the BME 680 to build a dashboard app. More on this later.


The roadtest hardware is shown below.  The RPI used is version 3. No SD card came with it so I had to customize an OS for this application/review.














Once I installed the parts, I tested the sensors by probing the I2C bus.

Then I went looking around for a BME680 library. This is the point where the adventures started.  Let's just say that Mikroelektronika code libraries are either hard to find or unusable.

The enviroclick board uses a BME680. This IC is manufactured by Bosch which also offers a closed source library that allows sensor fusion.





The schematic of the click board are shown below. Nothing fancy. Two click holders, 1 ADC and a switch that routes the pins to the ADC or to be used as GPIO.

The issue is that to use it for an analog signal for which there is no click board you have to design your own signal conditioning board.





For this review , the idea was to build a real time dashboard for the sensors. I used the BM680 sensors which allows one to measure : temperature, humidity, pressure, and gas level.

The I2C sensor shows up on address 0x77.


We need a Python library for the BME680 sensor so we will use the Pimoroni BLE library.

install this by issuing :


sudo pip install bme680


To test the sensor simply run the BME680 example app.



We will build a website with Python , Flask framework, Javascript and the HTML5 Bootstrap framework.  The webserver is set up to react to real time changes from the sensor data through the use of AJAX calls.

This turns the website into a dynamic app that can be used as a dashboard for monitoring environmental variables such as :


a) temperature

b) humidity

c) pressure

d) volatile gas


First we create a folder:

mkdir E14dashboard
cd E14dashboard


Next inside this folder two other folders are created for the HTML and javascript files.

The Flask Framework searches for HTML files in a folder called templates. So we need to create a templates folder and put all the HTML files in there.


mkdir static
mkdir templates


A Python Flask webserver was then setup.


The HTML web page will be created from a template that holds the static content of the page. The dynamic version of the page is created by leveraging the javascript AJAX calls.

The HTML dashboard is coded using the Bootstrap framework. JQuery Javascript library was used for AJAX calls while the FLOT library was used for plotting the data. The javascript files are located under the /static folder.


<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
        <title>{{ Title }}</title>
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css">
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> 
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/jquery.flot.resize.js"></script>
        <script language="javascript" type="text/javascript" src="../static/jquery.js"></script>
        <!--[if lte IE 8]><script language="javascript" type="text/javascript" src="/js/flot/excanvas.min.js"></script><![endif]-->
        <script type="text/javascript" src="../static/jquery.flot.js"></script>
        <script type="text/javascript" src="../static/jquery.flot.time.js"></script>    
        <script type="text/javascript" src="../static/jquery.flot.axislabels.js"></script>
        <style type="text/css">
                padding-top: 70px;
                <!-- <h1>Gas sensor Live data stream</h1> -->
                <!-- <div id="flot-placeholder1" style="width:550px;height:300px; margin:10 auto"> </div> -->
            <!-- interactive chart -->
                  <h3>Gas sensor data</h3>
                    Real time
                    <div id="realtime" data-toggle="btn-toggle">
                      <button type="button" data-toggle="on">On</button>
                      <button type="button" data-toggle="off">Off</button>
                  <div id="flot-placeholder1" style="height: 300px;"></div>
                </div><!-- /.box-body-->
              </div><!-- /.box -->
                    <p> {{ temperature|safe }} degrees Celcius.</p>
                    <p> {{humidity|safe}} %RH.</p>
                    <h2>Barometric Pressure</h2>
                    <p> {{pressure|safe }} Pa.</p>
                        <p>© Copyright 2020 DHQ</p>
    <script type="text/javascript" src="../static/sensors.js"></script>

The update interval of the dashboard was set to 1second.


function GetGasLevel()
    $.getJSON( '/getGas', function( json ) 
      console.log( "JSON Data: " + json.Gaslevel );  
         var y ;
         var temp;
         if(data.length >= totalPoints)
            y = json.Gaslevel;
            y = json.Gaslevel;
         temp = [now += updateInterval, y];


The Python Flask is a microwebeserver framework. It makes use of the Jinja2 templating system. In effect this allows building websites where anything in double curly braces within the HTML template is interpreted as a variable that connects with Python script via the render_template function.   To share data between the HTML and the Python script a dictionary of variables is created and passed into the template. On “return”, this will return the index.html template to the web browser using the variables in the template Data dictionary.

To augment this with real time capabilities one has to use a library that supports AJAX (javascript asynchronous calls) like JQuery.


The result is shown below:




import time 
import math
import datetime
from flask import jsonify
from flask import Flask, render_template
import RPi.GPIO as GPIO
import bme680
from ctypes import *

app = Flask(__name__)

    sensor = bme680.BME680(bme680.I2C_ADDR_PRIMARY)
except IOError:
    sensor = bme680.BME680(bme680.I2C_ADDR_SECONDARY)

print('Calibration data:')
for name in dir(sensor.calibration_data):

    if not name.startswith('_'):
        value = getattr(sensor.calibration_data, name)

        if isinstance(value, int):
            print('{}: {}'.format(name, value))

# These oversampling settings can be tweaked to
# change the balance between accuracy and noise in
# the data.


print('\n\nInitial reading:')
for name in dir(sensor.data):
    value = getattr(sensor.data, name)

    if not name.startswith('_'):
        print('{}: {}'.format(name, value))


def readAmbientLight():

    templateData = {
        'title' : 'Gas Level ',
        'Luxlevel' : sensor.data.gas_resistance  
    return render_template('light.html', **templateData)
def readMPL():
    temperature = sensor.data.temperature
    baroPressure =  sensor.data.pressure        #Take a pressure reading
    templateData = {
        'Title' : 'Environmental Dashboard ',
        'temperature' : temperature,
        'humidity' : sensor.data.humidity,
        'pressure' : baroPressure 
    return render_template('Dashboard.html', **templateData)
def ReadSensor():
    gasdata = sensor.data.gas_resistance
    return jsonify(LuxVAL = gasdata/10000)

def ReadTemperature():
    sensor = bme680.BME680(bme680.I2C_ADDR_PRIMARY)

    temperature = sensor.data.temperature
    print "temp %f" % temperature
    return jsonify(Temp = temperature)

def ReadAltimeter():
    altitude =  sensor.data.humidity         
    return jsonify(humidity = altitude)
def ReadBarometer():
    baroPressure =  sensor.data.pressure        #Take a pressure reading
    return jsonify(Barometer = baroPressure)

if __name__ == "__main__":
   app.run(host='', port=5050, debug=True)

This concludes the project for the RPI Click Board Sensor Kit .





The Good!

  • The shield has an ADC which allows the RPI3 to sample analog signals.
  • Plug and play (or pray) in mos/certain cases.


The Bad

  • a) daughter card does not conform to HAT standard, There is no PCB cutout for the camera. Why follow standards?
  • b) Analog conditioning circuit is needed for any ADC signal for use with this shield.
  • c) Code for device drivers is available in closed source binaries for a custom compiler or simply links you to non-existent addresses.
  • d) Microbus is not that micro. Modules are fairly large given the small IC's in them.
  • e) Liberal use of 0805 parts in a world of 0402 and 0603 components. Now we know where all those 0805 resistors get used.
  • f) LED on each board does not help for low power designs.


The Ugly


  • Device driver support is practically absent from Mikroelektronika.
  • No open schematics for what amounts to copy pasting from manufacturer datasheet. This makes it difficult to configure sensor for I2C or SPI configuration unless you are willing to trace the connections.
  • No support whatsoever.