Create And Link Your First Project With Qubitro — Qubitro Platform Step-By-Step Complete Guidance
Tags: iot, arduino, qubitro, python
Published: 2023-11-18 08:02:38

Hi everyone, today we are going to learn about the **Qubitro**. Whether you are a **_student, beginner, or even working professional_** this guide is for you to _**completely understand the whole working, functionalities, and methods to learn and use the Qubitro and Qubitro platform.**_

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g9fhkm3auof6iwfhm15b.jpg)

Qubitro has lots of features and tools but we will try to cover some main topics like:

- What is Qubitro? and why do we use Qubitro?
- How to access and use the Qubitro Portal?
- What are the main features and tools that Qubitro provides?
- Which reputable organizations/companies are associated or partnered with Qubitro?
- Projects Part: How can we link our Internet of Things (IoT) or other projects with the Qubitro platform?
- and much more…

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6r1yr0lvx9kfjbaua04a.jpg)

Before answering the above questions, there is one more topic that I need to cover before moving the first answer and that topic is IoT.

**What is the Internet of Things (IoT)?**
_"The Internet of Things (IoT) describes the network of physical objects that are embedded with sensors, software, and other technologies for the purpose of connecting and exchanging data with other devices over the Internet."_

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ig27thcsnfmkgwpu00dp.png)

**_1: Let’s start with our first question which is What is Qubitro? and why do we use Qubitro?_**

In simple words, **Qubitro** is a **_Device Data Platform (DDP)_**, a platform that provides us with **_real-time data_** of our _IoT devices, sensors,_ etc anytime and from anywhere around the world. Qubitro is the **fastest** way to build IoT applications with predictable pricing, developer-friendly features, and scalability. Qubitro is simplifying _device data management_ with a rich and simple useful yet powerful scalable, customizable, and _Future Ready device data platform._

Briefly, _**Qubitro**_, Inc. is a United States-based global company that “provides a platform for developers and businesses. It offers a distributed platform to enable customers to **_design and develop scalable IoT solutions_** without infrastructure setup or coding.” There is a _tagline of Qubitro_ _**“One platform. Boundless possibilities”**_, which is 100 percent correct because there are endless possibilities we can explore and work on the platform of Qubitro.

**Qubitro** provides us with many learning resources on its website like _Documentation, API Playgrounds, Tutorials, Blogs, and a Discord Channel for support and help._

_**For more info, you can visit here:**_
[Qubitro Website](https://www.qubitro.com/)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aj87yzcjpa2a19d75mv4.jpg)

**_2: Let’s move to our next question which is How to access and use the Qubitro Portal?_**

_**Qubitro**_ provides a _simple User Interface_ we can easily access and use. To access the Qubitro platform, first, we need to go to _Qubitro’s official website_, we can simply type in the search engine **_“Qubitro”_** and then go to the website or type/click on this link to directly go to the website:
[Qubitro Website](https://www.qubitro.com/)

Then the _Qubitro website’s homepage_ appears and we can then see all the _information, docs, and other features_ on that screen. I would prefer you to explore the **Qubitro website** to understand Qubitro in a much better way. There is also a **difference** between the **Qubitro website and the Qubitro Portal.** To access the _Qubitro portal_ we need to sign up and then log in to our account to access the Qubitro portal and then work on our projects or explore the Qubitro portal more in detail.

The _account creation_ process is very simple, you only need a _**Gmail account**_, click on the _Try Free button_ or _Sign in button_ on the Qubitro website, and enter details like _name, email, password, and country._ There will be a _confirmation email_ of the account received in our Gmail account and we then need to _sign in_. That’s it. Now we can access the _**Qubitro portal**_ with the same credentials in the future.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zb3qtr85qgrg4i6tr6bi.jpg)

_**3: The third question is about what are the main features and tools that Qubitro provides.**_

Generally, there are hundreds of features and tools that Qubitro provides to its users and we will look at some of them.

As we already discussed, **Qubitro is a Device Data Platform (DDP)** which means that _“it is a platform that provides us with real-time data on our IoT devices, sensors, etc.”_ Qubitro provides us with a platform with all the possible solutions that are required to have for our IoT devices, and sensors to build our _**real-world projects or applications.**_

We can _attach our physical IoT device or sensor like a temperature sensor, motion sensor, pressure sensor,_ or even others to our PC/Laptop, and then after some easy processes, we can check/view the **_device’s or sensor’s real-time data on our Qubitro platform_**. That sounds so interesting, right? Later on, we will also do it practically.

Qubitro also gives us the functionality of using languages like **_Python, Ruby,_** and others through which we can easily create a program and then link it with the Qubitro platform. For example, we can create a project like **“Environment Tracker”** through this method and then we can check the real-time data like _**temperature, humidity,**_ etc of this project on the Qubitro platform.

Still confused about it? Don’t worry we will also do it practically.

Qubitro provides a very simple and easy-to-use interface to its users that makes Qubitro easier to understand. I described only two examples of Qubitro functionalities out of 100s and you can read the official documentation from the given link: https://docs.qubitro.com/platform

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/crqe2omcihr2eol1g5os.jpg)

_**4: Which reputable companies/organizations are associated or partnered with Qubitro?**_

Well, we can see from the image below that Qubitro is partnered with reputable organizations from around the world. Qubitro also provides a Partnership program, and you can further explore it here: [Qubitro Partners Page](https://www.qubitro.com/partnership/)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/02aeqxnot8cx9tmgj9mt.jpg)

## Practical Implementation:

_**Finally moving to our last question which is the main topic of this story and what you are waiting for? How can we link our Internet of Things (IoT) or other projects with the Qubitro platform?**_

Now it’s time to _explore the Qubitro practically with real-world examples_. First, we will create a simple **_“Environment Tracker”_** project and then we will _**connect it with the Qubitro Portal to see the data**_.

Go to the official Qubitro website and click on the _login button_, add your _email and password_, and then the _Qubitro Portal_ will appear.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bcf4vjwjm96vt5spnsf5.jpg)

On the portal, we can see some options like:

- Projects: where we can add, see, or find our projects.
- Dashboard: where we can add/see the Dashboard of our project. Basically, we can create customized dashboards to see our data in these accordingly.
- Credentials: where we can find our Webhook Signing Key, API keys, and External credentials. These keys may be different for all the users accordingly.
- Settings: where we can find our unique User ID and can change our details/information like name, password, timezone, etc. Also, we can see the billing and invoices section in the settings option.

Now if we want to add/create a project, first click on the Projects Tab and then select New Project. After that write a project name and description and then click on Create. Now we will see the project in the Projects Tab.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a0g8u5vqr8q822jobihs.jpg)

After that click on the project name, which will move us to the details of this project, now **_click on New Source_**. On the next page, all Data Sources or integrations will be shown like **_MQTT, 1NCE, Loriot, HTTP,_** and many others. We can select and integrate anyone of them.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sx8uoodke92z6ejaae2e.jpg)

I am going to choose the _**MQTT protocol**_, we need to just click on it, and then the next page will appear, now type any name of the data source, and then in the Tags section type the language name in which want to create/write a project like _**Python, Ruby, Curl etc**_. In the next fields which are Brand and Model, we can simply write _“xx”_. If we want to connect some physical device or sensor then we need to write its Brand name and its Model, otherwise write “xx”. In our case, we are now only creating/establishing a project that will be written in Python and connecting it with Qubitro Portal. After that write some description and _**click on Create**_.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qhpzayzhni0svag6e9dq.jpg)

Now the MQTT data source with our project _**“env tracker”**_ has been _successfully added_ and we can see it under the **_Devices Tab._** Firstly it will show that we are “_**awaiting data”**_ because we have not provided any data yet. So, for data to be sent and shown on this platform, we need to click on its name. Now, we can see the different Tabs on Top, which are:

- Overview: showing the details of the Data Source and Project.
- Data: history of the data which have to be received.
- Functions: add functions according to the project.
- Settings: where we can see the Unique ID of our project, tags, and other details.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vz6ohd62tfpgjnnjullg.jpg)

Just click on the first tab which is _**Overview**_ and then click on the _**Code Snippet**_. Here we can see the code in a language that we selected recently which is Python. We will now copy this code and paste it into the _**VS Code IDE or any modern IDE**_ by creating a file with the _extension .py_. We also need the **_PAHO-MQTT python client library_** to be installed before executing or running this code.

**See the details / Download/Install the Paho-MQTT from here:**
[PAHO-MQTT-Installation Guide](https://pypi.org/project/paho-mqtt/
)

Great, so now we need to make some minor changes in our code. At the end of our coding file, we need to replace both the _**keys to some name like key1 to “Temp” and give it some value like 70 or something. Change the key2 to “Humi” and change its value to 30 or something, because here we need to find/see the real-time data of Temperature and Humidity in our project.**_

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ero78rehlu66r2le8lmn.jpg)

Now run this code in VS Code and open the _Qubitro Portal Projects section to see our data_. Click on the Project name and then click on the Data Tab. Here we will see all our data from time to time. There is also the option of s**_aving/downloading data in CSV or Text format_**. We can further make more changes to our project like adding _functions/rules from the Function Tab_ where we can select **Twilio, Slack, Webhooks,** and many others. We can also make some changes like after how much time data should be updated or anything we need. _**To stop this process**_ of sending data to Qubitro, just _**press Ctrl+C in the terminal of VS Code**_ to stop the program. So this was all about our first project, I hope you enjoyed learning and doing it. **Perfect.**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/83fqelo0zf8a1xq42n14.jpg)

**_Let’s move to our second project which is to see the real-time data of the physical device or sensor on our Qubitro Portal. That sounds interesting, isn’t it? Let’s do it practically.
_**

So our previous project is already created and if we want to add another project we can do it, but if we want to use the same project with different settings and different functions we can also do the same which means the project will be the same but we will connect or integrate the physical device or sensor with it.

This time again **click on the “env tracker” project **or click on New Project to create a new one. **_Click on the “New Device”_** button and select any data source, this time I am again choosing the **_MQTT_**, again give it a name like **_“ESP client”_** or something, and this time we are going to connect our physical device with it, _**so write the ESP in the tag section and write the brand name and its model number in the next two fields. The device which we are going to connect, write its details here. Let's say I’m using the device brand name “Seeed Studio” and the device model number is “XIAO ESP32 S3." Give some description in the last section and click on the Create button.**_

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/swcglq4gxvh3rkpzx6s8.jpg)

After that, _**two devices will be shown**_ in the Devices section one is Python (the previous one) and the second is the ESP client which we created just now. Now click on the ESP client and in the Connection details area we can see the_** unique Username and Password of our device**_, and this will be required for us to connect our device with Qubitro.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3zl7bcmnr17xtwgvgmud.jpg)

**Before moving to the next step, we need 2 important things that we need to integrate our project into Qubitro.
**
The first one is the _**Arduino Integrated Development Environment (IDE)**_, which we can download from here:
[Arduino Download Page](https://www.arduino.cc/en/software/)

The second thing is **_Qubitro mqtt-client-arduino_**, which we can get from the official GitHub of Qubitro:
[MQTT-Client-Arduino](https://github.com/qubitro/mqtt-client-arduino)

Just download this as a ZIP File.

Now _**install the Arduino IDE and open it**_, go to the _sketch_ option from the top left of the Arduino IDE, and then click on **include library**, and then choose the same ZIP file as we just downloaded to our PC/Laptop. After installation is complete,_** go to the file option from the top of IDE, select examples select QubitroMQTTclient. Inside it there will be a basic connection option, click on it, and our qubitro-mqtt-client will be enabled and we can now access it.**_ This sketch will work with most of the devices/sensors like _ESP32, ESP8266 arduino,_ etc.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mn2tksc5xomczsi82g10.jpg)

Alright, so after all these settings and creating a basic connection sketch, it is time to change the username and password here in the given sketch. I previously explained how we can get a username and password to establish a successful connection between the device/sensor and the Qubitro platform to see our real-time data. Just _go back to the Qubitro platform, click on the Projects, and then click on the project name and choose an ESP device from here. In the Connection details area copy the username and password and paste both of them in the sketch code below the Credentials comment next to the Device ID and Device Token in Arduino IDE._

We can also change the device/sensor values from the given sketch in Arduino IDE according to the project whatever we want to get as a** minimum or maximum value **and all other stuff we can do right here in the sketch according to our project. **_So in Qubitro, we can only send the things or data as a JSON file._** Maybe it will support other features as well in the future but for now, we can send the data in JSON format only. So, in the _sketch file_, we need to provide the payload data in JSON format only to see on the Qubitro platform. So now we are done with the Arduino settings and configurations. After that,**_ we need to connect the physical device like ESP32 to our PC/Laptop using a cable/extension_**.

The next thing is to go to the **tools tab in Arduino IDE** and find the port on which the device is connected. Select it and then click on the connect from the option on the left-right corner of the IDE. _This option will connect this sketch to our controller. Wait _for 2 to 3 minutes here until our connection is successfully uploaded.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/asecie1c3sfhoweoliiz.jpg)

After this, we need to go to our Qubitro Portal and **see in the section of Device Data,** where the real-time data according to our settings from the physical device will be showing to us. That’s what we’re waiting for, we not only see the history of data but can also do everything that we did in our first project like we can **_create functions, add features, widgets, tools, and dashboards, share your projects, and select someone as a contributor/collaborator and much more._**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wcpinjyuvq9u07x2slj1.jpg)

You can explore all these features. If you want details comment down below, I will be happy to share more details with you. That’s all from my side for our second project in which we learned how to link/connect our physical device/sensor with the Qubitro Portal to see the real-time data.

_There are also prebuilt IoT projects and files that Qubitro provides us on GitHub, that we can use and customize accordingly and use them:_ [Qubitro GitHub](https://github.com/qubitro)

Thank you so much for reading this. I hope it will be a helpful guide for you to start your first IoT project and connect or integrate it with Qubitro Portal.

**Here are some helpful links to learn more about Qubitro:**

[Qubitro Website](https://www.qubitro.com/)
[Qubitro Twitter](https://twitter.com/qubitro)
[Qubitro Medium](https://qubitro.medium.com/) 
[Qubitro LinkedIn](https://www.linkedin.com/company/qubitro/)
[Qubitro YouTube](https://www.youtube.com/channel/UCnOv7tTL0g2F5UdQl6N9gPw/featured)