How to build a hardware to display signal of Flow sensor by microcontroller in PC?
Is the best interface method serial or parallel or USB?
How can we make an XLS file of sampled signal values to be displayed by matlab ?
You must create a MCU system which converts Flow sensor signal to serial port byte stream.
For example, **broken link removed** can digitize six analog inputs and transmit data to computer over RS-232 serial protocol.
ok that is very good.
i am using PIC with its internal ADC, but what is the function of these components ADM232AARM and RS232 and ISP ??
and thank you so much
thanks a lot it is very good details
do u think that i can use serial-USB converter to connect to computers which hav't serial port?
Is this suitable configuration?
finally ,which is responsible for sampling Matlab or Mikroc
Why write it to a file, unless you want to log the data for later use. You first have to retrieve the data from the serial port using Matlab's fscanf (serial) command. You can load the data in to an array, process, and finally log it into a file using Matlab's **broken link removed** commands. There are plenty of examples and syntax guides on the site provided.
Either way. But at 20 samples a second, in one minute you'll have plenty of data to graph! I always try and automate things as much as possible. However, like you mentioned, you can write the data to a file when you collect enough data points to satisfy your requirements you have your Matlab program plot the data. It's have a dozen, one or the other.