Today we discuss about national instruments and I Mario over here.
As you see, this is my Mario Kart and it is namely Mario 1900.
Okay.
It has the capabilities like accelerometer.
Already installed in these boat over here, you got four LEDs.
It will show you the status.
It will show you the power over here.
This is the power cord.
You just need to connect your power supply over here.
This is for connection.
And over here we have the reset button.
And on this side we have two button.
One is for Wi-Fi connection, another one is for button on and off.
And over here, as you see, there are two ports, Port A and Port B, And on this side, we have Port
C On these ports, we have five volt power supply, analog input, analog output, digital input, digital
output pins, as well as and counter pins available on this D1 card.
Okay.
So on this side, as you see over here, we have plus 15 -15 voltage available analog output, analog
input, digital inputs are available.
So right now for this board to program, we need an mireo toolkit, as you see in the.
Desktop LabVIEW 2021 version is available.
Earlier it is available in 2019.
Right now it is upgraded to 2021in the 2023.
It is not available till now.
Okay.
So for that purpose, if you want to program this, Mario, you just need to power.
It requires external power as I just connect it.
Or here you just check power button on and it will show the status.
Now I just connect.
The connector.
It is connected using USB to my.
Device if you want to check the device when you just first time if the older drivers are properly installed.
In that case, you just need to.
Go over here and micro USB monitor.
It automatically opens if it is not open.
In that case, you just go to Macs and Macs.
Over here you can find out the device.
I just first minimize this.
And Mario.
Monitor.
It is basically the part of an AI launcher.
So animax.
It will take some time.
Till now I just show you.
Right now, it is open in the device in the Max Measurement and Automation Explorer.
We just find out complete detail of your system and your hardware.
Okay.
As you see over here, I.
This is my.
System Details.
Physical memory 7.94.
And over here, this is the disk capacity.
Okay, so in the device over here, you can find out the device.
And here you it is present.
Okay, So you just check over here.
This is the serial number for right now.
Just minimize this and go to the over here, launch the getting started.
If you just click over here, let's check what happened.
Getting started with Mario in this case.
You need to.
Program your miryo using project.
In this case, you need to create project as you see over here.
This is my miryo.
Over here.
The same serial number is available over here.
Now checking the software on the Mario, It is updated or not.
I already update this.
Let's check.
Is there any update available on.
Right now, as you see.
From here.
In the first case, you can control using like over here.
I'm just.
Turn off all the four LEDs that are my on board right now.
Zero Led one, two, three.
Right now, just I want to turn on only LEDs.
Zero.
As you see.
Okay.
And over here it is showing me the x axis, y axis and Z axis.
And over here, this is the button position.
Let's say I'm just pushing the button.
It is green.
Off.
On, off on.
I'm just controlling this button from here only.
And if you want to just check the x axis y axis Z axis, I just move it as you see.
All the X's are changing right now.
And when I just make it steady right now it is constant.
X and y axis are constant and Z axis are at one place.
As you see over here.
So you just go next.
Start your first project.
Just click over here.
You just go through this pdf.
It is already available on my website also.
In this case, I'm just.
Creating a project.
Create a project right now.
I just discuss some basic component.
Like.
Accelerometer, inbuilt accelerometer, another one to turn on the LEDs and to turn on the.
To acquire the button.
Input.
So over here, as you see right now, when you just click on Create Project, in that case, you just
select the My Rio.
It will take some time.
Select the Mario over here.
Mario Project.
If you are not selecting Mario Project, in that case, the Express or Mario Toolbox is not available
with you.
So right now I just click on the button next over here.
You can name it.
Name your project like.
I just put over here.
YouTube projects.
YouTube.
Over here.
You can check all the functionalities related to the given Mario.
It is having 12 analog inputs.
Eight analog outputs.
Faulty digital input outputs one button onboard.
Four LEDs.
Accelerometer.
Four.
Three axis.
P pin eight pins we have and.
Over here, different communication protocols like serial peripheral interface spi I to see over here
inter-integrated circuit Uart.
You just find out universal asynchronous receiver and transmitter.
And for the interrupts we have.
ECR eight interrupts in this case and this encoder for encoders we have.
Okay, so now I just finish it.
Just go to the blank project.
And just finish it.
It will.
Open a new window for me.
It will take some time according to your system performance.
Maybe some issue is there.
This time is hanging right now.
Just close this.
I just want to refresh the system.
I think the name Project Name is wrong in my case right now.
Just make it untitled.
Project 14.
Right now it is working.
Maybe the project name is wrong.
As you see right now, it is connecting or creating the project for me.
In the case of my view, every time you just need to deploy your project inside the My Rio.
When the program is properly deployed in the Rio, in that case you can you just remove this USB and
it will work for you.
Okay.
So over here, as you see in the projects and Rio, and this is the particular serial number for my
my Rio and over here, this is the main the automated VI that is created.
It is for the accelerometer that is created by an AI.
So right now, I just run it and you just check the waveform when I just move the.
Mario, there are three waveforms, one for x axis, one for Y axis, one for Z axis.
Right now it is deploying.
As you see right now, three X is zero zero.
And when I just move it, it is changing.
All the X's are right now changing.
Okay, so let's check the code for it right now.
I just stop it.
Go to the control and the block diagram window over here.
You just check over here.
I have the.
First.
Initially, I just use the case.
Let's sequence over here.
Initially, there is the error.
Then in the main loop we have accelerometer.
X axis y axis Z axis.
Then we have the build array function.
Over here we have the accelerometer output, and if some error is there, it will automatically off
the.
Loop and there is a ten second millisecond delay there.
And over here, this is to reset the mirror.
And if you want to check what happens inside this accelerometer express, this is the.
Accelerometer Express I just showed you where you can find out this particular express VI.
From here you can configure your accelerometer also and which waveform you want.
Like if I just unclick this, it will give me only x axis.
And over here, this is the code.
Via code inside the smart open.
Over here.
You just need to select the channel.
Read my.
And over here.
These are my three axes.
Okay, so let's say I want only x axis over here in that case.
Or you can say I just need only X and y axis over here.
I just remove it.
Control B over here.
In this case, I just minimize this.
Control.
You control B.
I just minimize this.
Connect it again.
And right now only two waveforms are there.
Z axis is not present.
So run it again.
You need to deploy it.
Before deploying.
You just need to save it also.
As you see, there are only two waveforms for x axis and y axis.
And right now I'm just changing the Y.
Let's now just show you where is.
This particular express.
Exist.
Control T in the functional palette.
You just move over here in the menu, you just find out different express.
Related to Mario.
Okay.
Over here.
This is the accelerometer.
XVI.
So this is how you can generate right now.
Just close this.
Create a new VI for me.
It should be inside the program only.
I just delete this particular main.
Okay, now I just open this particular untitled one control T over here.
I just show you different express programs right now in this particular video lecture.
So over here I just go to this x raw meter.
And over here I just got the same x, y, z axis.
That's okay.
Right now I have three Xs over here.
I need to build these three X's right now.
Or here, X axis y axis and Z axis and.
I need a one waveform graph over here.
It is for the zero meter output.
I just connect this one for the continuous readings.
I just put a while loop over here.
Create control over here if you want to stop manually.
Using the mirror only.
So let's go with another button that is on board.
Button.
I want to stop using that button only.
So in that case, you just need to select this button.
I just place over here.
This button will generate true and false conditions for me.
As you see over here, this is the configuration.
This is the button over here.
I just press.
Okay.
Right now it is configuring configuring for me.
Now you need to just connect this button over here and just put small delay inside this of, let's say,
ten milliseconds.
Let's run it.
So right now, the save all, it is deploying the code inside the my Rio save the code.
Right now it is deploying the code.
So over here I got the waveform.
And if you want to stop this, I just press a button over here and it will stop my code.
Okay.
If you want all the waveforms right now.
As you see, single value is there.
So in this case, you need to use chart in place of graph.
Let's check what happened.
If I just put one chart over here?
Just connect this again.
Run it.
Save it.
Deploy it.
As you see over here, I got the different values.
If you want to stop it, I'm just manually stop it using the button.
Okay, so this is how you can generate.
Waveform using and Mario and to control the Mario.
So this is all about today's lecture.
Thank you.