Hello, friends.
Today I will tell you about national instruments.
USB 6009.
It is a DAC card, as you see over here on this side, we have different pins like ground plus five
plus 2.5 and some other digital ports.
As you see over here, we have pin zero port zero, then pin zero port zero pin number one.
After that, up to seven we have port one pin zero, port, one pin, one port, one pin two, and then
we have port one pin three.
And after that we have paf I zero.
All these are my digital pins.
On the other side we have analog pins.
As you see, I stands for analog input zero in USB 6009.
We have four differential analog inputs and eight single ended inputs, analog inputs.
And other than this, we have, as you see over here, analog output, port zero, analog output, port
one and ground analog output A0 stands for analog output.
So this is some basic introduction as you see over here.
Eight inputs 14 bit function input output DAC card it is.
Hello, friends.
Today I will tell you how to connect or how to use any USB 6009 DAC card for generating digital signal.
For that purpose, first of all, you have to connect your USB 6009 DAC card to your PC.
When you connect this through the USB, it will blink.
As you see in the video.
So for here I have a breadboard as you see I just some jumping wire or you can say jumper wires.
These are my male to male jumper wires and I have one led.
I just use it for generating a signal.
Right now I just generate a signal digital signal using this and I 6009 card to glow the Led.
So just go to the software part.
So just create a new as you see over here this is my UI.
Now I just go to any DMX toolbox.
So in this box I just use different nodes.
So right click measurement, input output and I let Max just lock it.
As you see over here, this is my block diagram window and this is my front panel window.
So first I just create channel.
I want to work with third signals.
So just select this output because I want to just generate a signal.
Now just drag and drop, start the task, connect it to error out.
Now I just want to right, so just put over here.
Next, I want to stop the task.
Connect it and I want to do it many times.
So that's why I just put a while loop over the writing task.
And the writing task is my digital writing.
So select single channel, single sample pooling line.
Okay, So over here on the line is just create a constant so that as you see over here, the name of
the device is Dev one port 090.
If you want to check out what device is connected, you just go to an Imax.
You can check your hardware device using this and Imax if it is some creating some problem.
So I just go to Imax.
So over here in the device and interface, just click over here.
Here.
You get all the information regarding your system right now.
My system is Intel core i3 1.7GHz speed.
It is the information of my system.
Okay.
And over here, this is the device which is connected to my system.
So over here, this is the serial number and it is present.
If I disconnect it, you see it is not present, so I just connect it again.
So now it is present.
Okay, so I just close it.
So right now I just use old 090 or device one, select it and I just use a simple error handler from
the dialog box.
If some error is there,
now you have to select or create signal.
So I just use a push button.
It will generate signal.
True or false?
Connect it.
So over here, this is the signal from the LCD.
And over here, this is my control button to stop the loop.
So
this is my stopping button.
I just use one led.
Virtual led to indicate the status inside the software.
So over here, this is my lead.
So connected.
So when it is high, high signal goes to the outer world.
When it is low, low signal goes to the outer world.
Now go to the hardware part.
As you see over here in this case, p 0.0.
This is my port 090, so I just connect it.
With jumper wire.
Okay.
So over here.
This is my line zero.
Now I just need a ground signal also.
So this is my ground signal.
As you see over here, this is my led.
This is my positive leg.
This is my negative leg.
Just.
What?
Over here.
So this is my posting.
And this is my negative.
Okay.
So when you hit on run button.
And signal is high right now.
4090.
So as you see, when it is high, signal goes high.
When it is low, signal goes low.
Okay, So this is how you can generate a digital signal using
any USB 6009 deck card.
Thank you.
In today's lecture.
Today's lecture we just discussed how to acquire digital signal.
As you see over here in my USB 6009 DAC card, we have ground signal.
This is my ground signal and it is present at 32 number pin and we have plus five volt signal also.
So I just use it as a digital hi signal.
I just use it as a digital low signal.
So 31 pin will give me high signal, 32 pin will give me low signal and I am just using port 090.
So now I just go to the software part over here.
Just go to measurement input output and I take Max, lock it.
So over here, first, create channel digital input, select digital input.
Right now I just want to read the signal.
And the signal is my digital single channel.
Single sample line one.
Okay, Start the task, connect task into task out.
Of every block.
Or you can say every node.
Stop the task.
No, over here.
I just use.
Simple error handler if some error is there.
Use while loop for continuous reading.
Create control over here.
Close it over here.
Create constant to select the pin over here.
Device 04090 is selected.
Now you have to just create an indicator in this case because output signal is available outside the
world.
You just read it.
The signal is high or low.
This is my line zero.
Okay.
And this is my stop button.
So now this is my line zero.
I just connect high signal to it.
So when I hit on run button, as you see, Led goes on in the software.
When I remove it and just connect ground pin to it, led goes low again.
When I connect to pin two, it goes high.
Basically, if you are not connecting your port with your or you can say if you open your port after
initializing it, it is in pull up condition.
As you see when I am not connecting any led, it is high when I connect ground pin to it, it goes low.
So it is in pull up condition.
Okay.
So basically for the pull up and pull down conditions, you can check out my other videos or you can
search over Internet also.
Basically, every hardware, like any USB 6009 DAC Card, Arduino, Raspberry Pi, all are initialized
with two conditions.
Pull up condition, pull down condition.
If pull up condition is there.
If you initialized your port and just open it.
No signal is connected with this.
In this case they are in case of pull up.
They are at initially high condition.
If it is pull down condition, in that case it is in low condition.
So or you can say if the port is open, always high signal is there in case of pull up condition and
pull down condition, low signal is there.
Okay so when I connect ground signal goes, signal goes low and when I connect high signal high is there.
So this is how you can read digital signal using any USB 6009 DAC card.
Thank you.
Hello, friends.
In today's lecture, I will show you how to read.
Pistol Non-taster.
How to read Analog signal using any USB 6009 DAC card.
For that purpose, I just create a new video over here.
As you see, this is my V, This is my front panel window.
This is my block diagram window.
I just move it over here.
Because the front block diagram is large.
So for that purpose, just go to measurement input output and Max, lock it over here.
So first create channel.
I want to just read analog input voltage.
Create task over here.
PIN number I Analog input zero is selected on my hardware.
I just select this one.
Start the task.
So connect task into task out error into error out other end.
Stop the task and in between just read analog signal.
So connect it.
Like this.
Go to dialog box.
Simple error handler.
I just make visible labels control you.
No, I want to just read it continuously.
Create control.
Control you.
So now over here.
This is my data available.
So I just use a gauge.
So as you see, the range is five volt because on board I have five volt signal.
So this is my signal over here.
This is my port potentiometer.
I just use.
Connect this.
It increased the size of this connect this control you.
So now the code is ready.
So goes to the hardware part.
As you see over here, this is my potentiometer.
It has three pins.
As you see, these are three pins.
One end is connected to the high voltage.
One is connected to the ground, and the middle one is my wiper.
And it is controlled according to this Rotary Park.
Or you can say Shaft.
So I just connect it to my breadboard over here.
Blue one is my plus five volt.
This is connected to the one end.
And in this side I have analog input signals.
So first one is my ground pin.
Second one is my I zero.
I just connect I zero to my middle one of the potentiometer and I just connect ground to the other end
of the potentiometer.
That is third one left pin.
And I also connect I four because I'm using differential mode.
Okay, so right now over here, these is my ground and orange one is I four and yellow one is my I zero.
So when I hit on run button, as you see over here, there is some voltage.
If you want to check how much is this?
So just visible.
It's digital display.
So I don't run button as you see, when I move it, value goes high.
Right now it is extremely high.
Now it is five volt.
And this is zero.
So this is how you can interface a potentiometer to create analog signals.
Right now, analog signals are read by my DAC card.
In this case, I'm using a single analog signal.
Okay, so this is how you can read an analog signal or how you can interface a potentiometer to your
tech card.
Okay.
In place of that card, if I just remove the DAC card right now, random signal is there.
If you want to check what is goes.
So as you see right now, I just connect positive signal.
So now it is high.
I I'm just connecting A02 plus five volt.
Right now it goes high.
If I just connect because on board I have 2.5 signal also there, as you see over here, this is my
plus 2.5 signal.
It is next to my five volts.
So I just connect it.
And check what goes on.
So I just make it tight.
So now I just remove five.
I just connect plus 2.5 to the I zero.
As you see, plus 2.5V signal is there.
So this is how you can acquire analog signal using an I USB 6009 DAC card.
Thank you.
In this video, you will work out with multiple digital signals.
Right now I just read multiple digital signals.
So over here I have my previous code.
So over here you just select browse multiple lines.
Right now I'm selecting line zero, line one, line two, line three.
Just select it.
As you see it goes from zero colon three.
Now in this case, you just delete this one because right now we have multiple signals.
So over here you just go to digital single channel, single sample, one dimensional lines.
Okay?
So right now just go to index array.
You have to select multiple signals.
So just drag over here is my data.
Or you can say one dimensional data of four signals zero, one, two, three.
And over here you have to select different pins.
So create constant pin zero, create constant pin one.
Create constant pin two.
Create constant pin three.
Okay.
So control you to minimize the space.
So now I just use four Led buttons.
So in the classics I'm just using more attractive Led over here.
This is my Led.
You can also change the color of this one.
So this is my, let's say 0.90.
Then I just check multiple LEDs over here.
So these are my over here.
This is my Led one line, one not led.
This is my line two and this is my line three.
Okay, So if you want to change the color, you just select it.
Go to the properties.
You can change the glowing color of it also.
So right now, the glowing color of this is red.
And press.
Okay.
And again, if you want to change the glowing color of this and also, let's say it will glow with this
color.
Okay.
So now I just put this LEDs inside the loop and I want to connect these LEDs with it's number.
So over here, this is my 010.
So this is my one.
This is my space is very less over here.
So this is my line three and this is my line to control you.
So this is my code for multiple signals.
Now go to the hardware part.
So over here, Port zero is connected.
Port three is connected, not port.
Line three is connected.
So I just connect line two.
So now line two is also connected.
I just go with line one.
So now line one is also connected.
So over here, these are my different signals.
So this is my line.
Zero line one, line two, line three.
And this is my high signal.
This is my low signal.
So let's say initially I just make all the LEDs low.
Or you can say, I want to just read Low Signal initially.
So I just connect low with all the LEDs.
So when I hit on run button, all the LEDs are initially in low state if you want to make it high.
So right now I just remove port zero and connect it to my high signal.
As you see, line zero goes high.
Now line one, it is high, line two, it is high.
And now line four again.
It is also high.
If you change again now connect to ground if you want to change this one also.
So this is how you can generate different signals over your
USB 6009 because now all the LEDs are in low.
This indicates that the signal at the output port is low when it is high or when signal is high at the
output port, it will read the signal and LEDs goes high.
So this is how you can read multiple digital signals using any USB 6009 DAC card.
Thank you.
Today.
I will tell you how to read multiple analog signals using an USB DAC card for that purpose.
I just use multiple signals, as you see over here.
White one is my 2.5V and blue one is my five volt over here on this part, as you see, I have analog
eight analog pins from I zero to I seven.
I stands for analog input.
I, I am just using a zero.
I am using differential mode over here.
So I just this one ground.
So I just make it ground connect to the breadboard orange one is my I four.
So in the case of differential mode, you have to just ground it and yellow one is my I signal I zero
signal and red one is my I one signal.
Okay.
And this is my I5I just ground it and this is my ground.
So it will read different signals.
So right now I just connect Blue one to my eye zero.
It will show five volt and red one is my air one.
It will show 2.5V.
So now go to the software part.
So over here in this case, I just use previous code.
So over here, just go to the browse.
Select multiple signal.
Right now I zero and I one is selected because on the hardware part, I did that configuration.
So over here, analog single channel in place of single channel, I just use multiple channel single
sample.
So over here I just use to post these reports just visible.
It's digital display again, visible.
It's this digital display.
So over here I have one dimensional array data, so I just use index array.
Connect it over here.
Just put.
You have to separate these two signals.
So just connect it.
Control you will minimize.
So as you see, this is my index array.
Here is my port.
Here is my port two.
So when I hit on run button, I got two values.
One is five volt.
Another one is 2.5.
If I just replace it.
So I just connect five volt to the another one.
So now you just check different voltage over here.
So in one potentiometer or you can say one port will show five volt if you connect both with the five
volt or 2.5.
Right now it is connected 2.5.
And if you connect both these with five volt, it will show five volt.
So this is how you can read multiple analog signals using any USB DAC card.
Thank you.
In this lecture, I will tell you how to generate multiple digital signals using an I USB 6009 DAC card.
For that purpose, I just use already built code that I use in previous video.
So over here you just drag it and browse it.
You just select the PIN numbers.
Right now I just use PIN number zero.
PIN number two and pin number
1409040914092.
Just okay, as you see, it is right now, zero Colon two.
The operation is for digital output.
Over here you have to just single channel, single sample, one dimensional lines.
Okay, so just delete this switch.
Delete this one.
Also control V.
Now I just place three push buttons over here, so it is line zero.
This is my line one and this is my line two.
Okay, so now these are my three inputs.
Now I just want to.
Use these inside my while loop.
So I just increase the size of my while loop.
So I just use build array function to add these three signals.
This is my line to control.
Line two is connected over here.
And this line.
Okay, Now you have to just connect it.
So the program is ready.
This function is built.
So I also make it label enabled.
So that's why.
So that you can check out every component control you.
I just minimize the space of this part
so that it is clearly visible to you.
So now, as you see, this is my simple error handler.
Def max, stop task.
This is my three inputs.
Now go to the hardware.
As you see over here.
This is my USB DAC card.
This is my PIN number.
Port 090 port 140, line 140.
Line two.
These three, my signals.
And this is my ground signal.
So over here, I just connected three LEDs.
You can use resistor in between the between the signal and the positive pin of a Led so that it will
not burn out.
Right now I'm not connecting any resistance, so just hit on run button.
As you see all the LEDs goes low.
So right now I'm clicking on line zero.
Led goes high.
Line one Led goes high.
Line two leading goes high.
So all the LEDs are high in this case.
If you want to close the line one, just click on it.
Right now, only two LEDs goes high.
If you want to turn on only led connected with the line two.
So click over here right now.
Only led connected to the line two is high.
So this is how you can generate multiple digital signals using any USB 6009 DAC.
Thank you.
Hello, friends.
In today's video I will tell you how to interface IR sensor.
IR stands for infrared sensor for creating signal or for acquiring signal.
So we will use IR sensor in different applications like object detection.
As you see here, this is my infrared sensor.
It is a module.
So over here, this is my transmitter and the black one is my receiver.
So in this module we have three pins.
First one is VCC, second one is ground, and third one is output.
You can acquire signal using this IR sensor in two modes analog mode or digital mode.
So right now I'm just using digital mode.
So for that purpose I just use digital pin of port 090.
I just connect it now I just connect the ground.
That is my middle one now I just connect the.
So as you see over here.
So this is my air sensor, so I have to adjust its setting.
When object is there in front of this, it will detect it.
And it shows why this.
As you see right now, my hand is there and it goes high.
Right now I remove my hand when it goes low.
So it will generate signal.
So now go to the software part.
Over here I just use single signal read code.
As you see over here, I just select line zero.
This is my create virtual channel.
And over here I just select digital input, start the task, read the task because this sensor will
generate a signal.
And right now I'm just assuming that it is a digital signal.
So I just use single channel, single sample, one line and one Led is connected to it that is known
as sensor.
This is my stop the task and it is my error handler.
So when I hit on run button.
So now LEDs on the IR sensor is also low condition and in my software it is also in low condition.
When I put my hand, it goes red and in my software also it goes high.
So this is how you can acquire signal using IR sensor.
Right now object is detected.
You can use this IR sensor in different applications.
Object detection or door locking, unlocking, checking you can use person's existence.
Okay, so as you see over here, it will acquire signal.
You can adjust its range from this potentiometer over here.
This is rotating potentiometer.
So I just using this, you can increase or decrease this.
The you can increase or decrease the range.
The range of this sensor is low, as you see right now.
If you want to go for higher range, you can just use ultrasonic sensor or laser sensor.
So this is how you can interface IR sensor using an USB 6009.
So this is all for today.
Thank you.
Hello friends.
Today I will tell you how to interface a sound sensor using an a USB DAC card.
So for that purpose it will detect just some sound is available or not.
So as you see over here, this is my sound sensor and this is a module over here.
This is my right one is my pin, middle one is my ground and left one is my VCC.
So I just connect.
So left one is my VCC.
I'll just connect it to VCC then.
Ground pin.
And now over here.
This is my signal.
So right now it is placed over here.
So right now it will detect sound.
You can adjust the sound level if you Now just go to the software part.
Over here, I just create a single channel read signal.
As you see, device 14090 is selected.
Create task digital input.
It will detect the signal based on signal.
Start the task.
This will read sound sensor is connected.
Sound is present or not.
As you see, it is high in this case because it is detecting the sound.
So now over here, please stop the task.
Just.
I'm just checking the signals.
This is my out signal.
So I just adjust.
It's.
Range.
Using this potentiometer.
Hello?
Hello.
Now it is generating signal.
Hello?
Hello.
As you see, it goes high in this case.
So right now just run the code.
Hello.
Hello?
So signal is generated.
I just change.
So right now.
Hello.
Hello?
Hello.
It is changing.
Hello.
Hello?
Hello.
So you have to just adjust the settings.
In this case, as you see.
So I just change it.
Hello?
So it is in all condition.
Now, as you see, when I goes, my voice goes high.
It will detect the signal.
So this is how you can use sound sensor.
So if you want to check out more in this case, I just make some delay inside this because it is detecting
in milliseconds.
So I just put some 300 milliseconds delay inside this.
So when I hit on run button, as you see now, it is detecting my sound, as you see over here.
So you can put some pressure over here because using pressure, it is detecting the sound and it is
detecting after 300 milliseconds.
Okay.
So this is how you can interface sound sensor using any USB 6009.
As you see, there is a delay of 300 milliseconds in this case.
So this is all about today's lecture.
Thank you.
Hello, friends.
Today I will tell you how to interface a capacitive touch sensor to generate digital signal using an
I USB 6009 DAC card.
So over here, this is my sensor in this this pin left side.
On the right side it is ground.
Middle one is VCC and the right left side it is signal.
So I just connect.
This is my port zero pin.
I just connect it to the signal.
This is black one is my ground, so I just connect it to the ground pin.
So now I just connect.
VCC So this is my middle one is my VCC.
So now it power up the sensor.
So over here, this is my code that is used for single signal read.
So now I am just using port zero.
This is my channel.
Digital input is selected to digital input.
Start the task, read the task as you see over here.
This is my Led for line zero.
This is my stop the task simple error handler.
So when I hit on run button it is in off condition.
So when you touch the sensor, as you see line goes high, line zero goes high.
When I remove my finger, it goes low.
So this is how you can read digital signal from capacitive touch sensor.
So as you see.
So this is how we can acquire digital signal using touch sensor or how you can interface touch sensor
using any USB 6009 card.
So this is all for today.
Thank you.
In the previous video, we just generate three multiple digital signals using USB three 6009 card.
In this video I just make a modification and through this we just create a running light.
So for that purpose, I just use a delay.
This is my time delay.
I just make it visible.
Label.
Wait 100 milliseconds.
Okay.
Over here.
This is my index array.
So I just make it visible label and this is my build array function.
So control u to minimize the space.
So over here, this is my.
Input.
Right now, three inputs are selected line 012.
As you see, zero two, colon two.
Okay, now you have this output.
So the task then over here, I just use an array.
So how you create an array.
So just go over here.
This is my array.
And inside this, you just put push button.
So this is my one dimensional array.
You just make it constant.
And right now, I just use three inputs.
So that's why I select three input over here.
So I just delete this over here.
You just add shift registers.
So just click over here, add shift registers as you see, shift registers are initialized.
Now to initialized created, you have to just initialize it.
So I just remove it.
I just connect this array to my simulator.
Right now, this wire will contain three signals.
Okay.
So I have to split it.
So this is my index array line 012.
Or you can say indexing zero, indexing one, indexing two over here.
These are my three signals.
I just build array for this and connect to my right task.
Okay.
And over here I just use a negate function.
So if the previous value is true, false.
True.
Now, after one loop, the value over here is false.
True.
So right like this way it goes on and on.
So when you hit on run button.
So as you see in the hardware part, hardware is same because line zero is connected to this pin line
one is connected to this pin or this, and line two is connected to this.
So it will go high, low, high, low and you can check it.
So if you want to control the speed, so I'll just stop the task and make it control, create control
and just connect it.
Wait three seconds.
I want to control the speed.
So then I hit on run, as you see.
So if I put 200 over here, so the running speed is slow.
If I put 300 over here now you can check speed and if I put 50 over here, you can check the running
speed of these LEDs.
So this way, in this way you can generate running Led light using any USB 6009 DAC card, or you can
create multiple digital signals using any USB 6009 DAC card.
So this is all for today's lecture.
Thank you.