Close
0%
0%

Connect your RevPi Core + RevPi DIO to Ubidots

Integrate Industrial grade controls (I/O) and monitoring with the RevPi DIO module and Ubidots; including setup for a Unit Counting App.

Similar projects worth following
In this tutorial we detail the integration of a the RevPI DIO to visualize and control output signals to your machines or applications with Ubidots.
  • Connect your RevPi Core + RevPi DIO to Ubidots

    Maria Carlina Hernandez01/10/2018 at 17:01 0 comments

    Revolution Pi is an open, modular, and durable industrial PC based on the established Raspberry Pi while meeting the EN61131-2 standard. Equipped with the Raspberry Pi Compute Module, the RevPi Core base can be expanded seamlessly using appropriate I/O modules and fieldbus gateways for energy management, process monitoring, machine health and more. The Rev Pi Core is the foundation to any application and depending on your I/O requirements expansion modules such as RevPi DIO, RevPi AIO, RevPi Gates can be attached as digital, analog, or gateway modules. 

    In this tutorial we detail the integration of a the RevPI DIO to visualize and control output signals to your machines or applications with Ubidots. The RevPi DIO digital I/O module comes with 14 digital inputs and 14 outputs, PWM (puls width modulation), and counter inputs. For a detailed list of functionalities for the RevPI DIO, check out the Revolution Pi product brochure.

View project log

  • 1
    Requirements
    • Ethernet Cable
    • 24 V Power Supply
  • 2
    Hardware Setup

    As per any new device setup, we recommend becoming familiar with the RevPi Core + RevPi DIO official quick start guide by Revolution Pi. Then be sure your to assemble the RevPi Core + DIO correctly referencing the below articles for additional details, as needed.

    Once your RevPi Core + RevPi DIO are configured, powered correctly, and connected to the Internet, we can continue with Firmware uploads.

  • 3
    Firmware setup

    1. First we must have access to the inputs and outputs of the Revolution Pi. The "python3-revpimodio” module provides all access to the IOs of the Revolution Pis, and can be programmed very easy with Python3.

    Based on the image installed in your RevPi Core reference this guide to make the installation properly. If you have the Jessie Image on your core, simply install the module from the Kunbus repository running the commands below in the RevPi Terminal:

    • Update system packages: 
    sudo apt-get update
    
    • Install:
    sudo apt-get install python3-revpimodio2
    
    • Update Distribution (all):
    sudo apt-get dist-upgrade
    

    2. Next, install the requests module for python3 by running the command below in the RevPi Core terminal:

    sudo apt-get install python3-requests 
    

    3. Once each of the commands above have finished, verify everything as accurate by opening Python3 into your RevPi Core terminal and importing the module previously installed.

    Open the Python3 by running the command below into the RevPi Core terminal:

    python3
    

    Once you have access to Python3, import the modules ''revpimodio2" and "requests" as is shown below:

    import revpimodio2 import requests
    

    If receive and error messages after importing the module, verify the issue shown and try again.

View all 8 instructions

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates