Code Monkey home page Code Monkey logo

fiware-arduino's Introduction

Arduino 2 FIWARE IoT Stack

## Introduction This repository holds examples about how to persist your Arduino data into FIWARE IoT Stack cloud service.

Then, it will show you how to access these data using FIWARE NGSI standard APIs and its multiple connectors with external tools as Freeboard or CartoDB.

First steps on your Arduino

If you are new with Arduino, we recommend you going first to Arduino website.

What is FIWARE IoT Stack?

FIWARE is an open initiative aiming to create a sustainable ecosystem to grasp the opportunities that will emerge with the new wave of digitalization caused by the integration of recent Internet technologies. Based on this FIWARE technologies, and focused on IoT area, Telefonica created and IoT Platform to help Industrial Partners and Smart Cities building its IoT services.

This FIWARE IoT Stack is also available for independent developers and startups, and will be used in this tutorial to persist your Arduino data in the cloud. You can go to its ReadTheDocs to get familiar with it.

Using FIWARE IoT Stack

You have your Arduino collecting data from sensors. So what?

Next step is connecting your applications with FIWARE IoT Stack to access your data and show your magic to the rest of the world.

Step #1: Sign up to get your credentials

You can get your FIWARE IoT Stack credentials at http://signup.ttcloud.net/.

You will receive an email with your API and portal credentials to send data from your Arduino and use FIWARE IoT Stack APIs on your App.

Please, in case you have any trouble signing up let us know at [email protected]

Step #2: Upload .ino sketch to Arduino

Once you have your FIWARE IoT Stack API credentials, select one of these .ino sample sketch depending on the connectivity used (WiFi or GSM) and set up your API key.

Upload the selected sketch to your Arduino and it will send A0 and A1 PIN values to FIWARE IoT Stack.

Ideally, connect there some sensors (temperature, luminosity) to have real data there.

Step #3: FIWARE IoT Stack Management Portal

To check your data is correctly sent and stored, first thing is accessing the FIWARE IoT Stack Management Portal. You can log-in using your given FIWARE IoT Stack user/password. In the "Entities" section (An Entity is a data object representation in FIWARE, so your Arduino is represented as an Entity) you will find an Entity called "thing:myArduino" with a list of attributes:

  • "S0": Your A0 pin value
  • "S1": Your A1 pin value

If you have connected more sensors to your Arduino, they will appear here with the given alias you selected in the arduino code.

Step #4 : Drag&Drop visualizations with Freeboard

If you just need a dashboard to show your sensors data in real time, you can create it using Freeboard without writing a line of code.

Please, read our FIWARE Orion Datasource Freedboard Tutorial if you have any trouble.

Step #5 : Use FIWARE NGSI APIs

If you want to build your own app, with your own code and UX, you are looking for an API, right?.

Integrating external apps is done via NGSI APIs, you have a getting started tutorial to start working with these APIs.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.