Hey, welcome, everyone.Here is the short tutorial on LINX MakerHub. In this quick Tutorial, we will see how to control a Robot using LabView. How to navigate a Robot using LabView MakerHub Library. The purpose of this project is to make the controls of Robot visible and easy to control.We can easily identify that is everything working fine in the Robot and with that we can achieve more accuracy. Well, this was my Lab project and I made for my Robot Navigation.
The GUI has three main functions.First one is to control the speed of motors separately and also the speed results are shown on the watch dial. The second function is about the IR Sensors that displays the results whenever a Robot comes over the black line .we can also use these indicators as an obstacle detector. The Robot was a combination of Line follower and Obstacle detector. The third function is to show the distance of three obstacle avoiding ultrasonic sensors.
The main purpose of this tutorial is based upon how to use Labview MakerHub LINX library so we will consider this in the context of LabView not by making the functions of Robot. Whatever will be the functions of Robot we just have to know how to control it by using LabView.
This tutorial is from the series of How to make RC Robot/Car.we will see some of the other great ways to control Robot wirelessly. The upcoming tutorial is about making GUI in Visual Studio using C# to control Robot wirelessly. But this time we are using LabView.
One of the issues that I have faced during this project is that the Robot listens to the command sometimes very late. The main Delay issue.well, this was because of the slower version of the system. The LabView is quite heavy Software so sometimes it takes the time to perform any function.
Well, move towards the contents for this tutorial.
- Introduction to LabView MakerHub LINX library
- Functionality of Robot Control GUI
- How to add Motor controls and Speed display in LINX
- Obstacle Sensor blocks in LINX MakerHub
- Main Block Diagram
1-Introduction to LabView MakerHub Library
LabView is an advanced tool for Engineers and industrial applications. There are lots of features in the LabView for advance Engineering applications.The great interface system of block language is the most creative and useful way for designing and controlling complex Engineering systems.The Labview interface is similar to the MATLAB Simulink library but the LabView has more and lots more great and easy features to design a system.
The MakerHub library for LabView is used for Arduino hardware applications.We can easily interface any hardware application using LINX library.The amazing part is that in LINX library we don’t need to program Arduino. There is simple block language interface for any hardware requirement.We just have to place some blocks and connect with each other.There is a great display in Labview for any kind of system performance.
Before moving towards the next part we must have the basic knowledge of how to install and use the LINX library in LabView.
2-Functionality of Robot Control GUI
The GUI has three main Functions:
- Motors Speed Control and Display
- 5/IR Sensor Indicator
- Distance Sensor display and control
It detects if one motor is running fast and other is slow. it’s a quite easy interface to look upon when we need more speed and then according to that, we can design our algorithm.
3-How to add Motor Controls and Speed Display in LINX
First of all, connect open and close connection to the LINX device.The best way to do this is to open an example and edit that one then you don’t need to add a blocking loop and open close.
Go to Help > find Examples > search
Enter in the Top right corner Search bar >
Enter PWM duty cycle or set duty cycle
Then Drop that block into the panel.
For an array instead of one input type array in the search bar to place array as shown in the PW channel 1 and 2.
4-Obstacle sensor Blocks in LINX MakerHub
For obstacle sensor or ultrasonic sensor, blocks search in the find examples or in the search bar
Search > Ultrasonic
Then the ultrasonic block will appear place into the panel and make a copy for 2 more sensors. The outputs of every block will be placed on the front panel, not in the Block panel.
For outputs Right click on the front panel window then go to LINX MakerHub and place your desired indication or display block.
For IR I have placed Indicators array.For IR sensor search Digital Read N channel and place into the panel and make connections as in the figure.
Finalizing all the steps:
- Help > Find Examples > Ultrasonic then edit the program according to the design.
- Search bar > Digital read N Channel for IR indicators.
- Search bar > Set Duty cycle or PWM Duty cycle insert and edit according to the design.
5-Main Block Diagram
Design everything according to the block diagram.As I have skipped so many steps in this tutorial because it’s quite difficult to explain each and everything. Soon I will upload a video demonstration on the YouTube Channel then I will explain each and everything in detail.And one more and most important part is that how to make it wireless.How to connect Bluetooth with the serial monitor to control the Robot using LabView Wirelessly. So stay connected for more Tutorials.If you need the LabView files then comment your E-mail or Reach contact page.
Stay Happy and Stay Motivated.