Good morning friends.
Today I just show you how to use analog input pin of this new USB DAC card to acquire signals from different
sensors.
So first of all, I just use this one.
I stands for analog input.
So in this case I'm using differential pins.
So as you see first I'm using this potentiometer in using this potentiometer because this potentiometer
will generate zero volt signal one volt signal two volt signal in between like 1.5 1.7V.
Also I'm using this five volt to power up this potentiometer.
Okay, so first of all I just connect five volt.
So this is yellow.
One is my five volt.
Over here I just use this potentiometer.
So one end is connected to the five volt and the middle one that is your wiper.
This is connected to this red one is my signal.
This is connected to pin number zero.
As you see of analog input port.
And now I just connect ground to the another pin of potentiometer because potentiometer have total three
pins, one is positive, one is signal and one is ground.
Now the trick over here is you just need to in the case of differential E, because pin zero and pin
four these are used as a differential mode.
You just need to ground this pin number four also okay Okay so these are the hardware connection.
Now I just go to the software part.
In the software part you just need to drag analog input sample.
And this input sample you just need to set the pin.
Because over here I am just using analog input pin I zero because signal is available over here, as
you see over here, you can set it mode.
It is in differential mode.
Measurement type is voltage range is minus five to plus ten.
You can change it also and it is DC coupling over here okay.
So just put apply over here.
Now you just need again a scope and a display.
So I just click over here display to know the exact value of the output voltage.
Just connect this and one scope I need to display.
The value in the form of graph.
So you just need to connect this one.
Because in the case of this case the maximum value is five volt.
So I just set the scope over here you can set the value.
Why?
Maximum value and minimum value.
So maximum value is five and the minimum value is zero.
You just need to apply.
Okay.
As you see scale changed.
Just minimize the scope.
I just put.
This one over here.
Now I need the scope.
And over here, this is the scope.
I just run it.
Let's check what happened to it.
So as you see, the value is 2.266.
As you see over here.
Also 2.266.
Now I just changed the value.
As you see right now it is maximum 5.018.
Again, in the real time I'm just changing the value of potentiometer.
Right now.
It is ground.
I am changing very fast as you see.
How you can.
How the value changes using the potentiometer.
Okay, so this is the single case.
If you want to apply multiple sensors in that case.
Also, it will generate some values according to the sensor value.
You can use potentiometer.
You can use air sensor.
You can use the air sensor.
You can use fire detection sensor.
You can use LDR sensor.
It is up to you.
Okay so this is how you can acquire analog signal using any USB 6001 or 6000 8 or 6009 device with the
help of Matlab.
And we just also visualize this data in Matlab.
So this is all about today's lecture.
Thank you.