Getting Started

In this project, we drag and drop the sensors with your Raspberry Pi and show how to use the custom lab with your Raspberry Pi.

Signup with iotify.io if you haven’t yet. The free account will have sufficient credits to run this project. Once you are logged into the IoTIFY main application, go to the Virtual lab Top menu and click on the Custom Lab project.

Provide a unique name for your project and drag and drop sensors you will need into the workspace as follows:

The top row in the workspace indicates various General Purpose Input/Outputs (GPIOs) available in the system. Each GPIO has an associated icon that indicates if the GPIO is being configured as input or output: in the first case, the icon depicts the symbol of a switch, otherwise, it depicts an LED. Clicking on an icon will change the Input to Output and vice versa.

A GPIO pin will automatically gray out in case we use a sensor that uses that GPIO pin e.g. in case of an HCSR04 sensor, the GPIO pins 5 and 6 will be grayed out, as they will be used by the sensor.

Once we have all the sensors, we simply click the launch project button. The project takes 3-5 minutes to launch. The project state will automatically change to running once it is ready. We can simply click the Open button and it will launch a new window with the Workspace of Custom Lab project.

Once the project is up and running, the default sample code will be automatically cloned for you in the custom-lab directory of your Raspberry Pi.

In case you would like to look at the source code, click on the link given below