cancel
Showing results for 
Search instead for 
Did you mean: 

Read sensor value from stm32f4 with Matlab

roberto2399
Associate
Posted on December 09, 2015 at 13:26

Hello,

my name is Roberto, i'm working on a single pixel camera. i have no much experice about stm32. I would use stm32f4's adc to read the value mesured by a photodiode (because it is 12 bit adc).

I'm writing a program in which i would read the measured photodiode voltage avery time i want in matlab. I would ask if some one have an idea how to make it!

thanks for your attention

Roberto
2 REPLIES 2
Posted on December 10, 2015 at 18:01

Hello Roberto,

I'm not sure to understand want you want to do.

Do you want to use STM32 to get ADC value that you post process with MATLAB  (you need a link to get STM32 value from PC) 

or you want to build STM32 application to process ADC value?

Regards

Pascal
roberto2399
Associate
Posted on December 11, 2015 at 11:14

Hello Pascal,

Thank you for the answer. I want to use STM32 to get ADC value that you post process with MATLAB. I would perform this program:

1 matlab elaborates one pattern that will send to display

2 matlab ask stm32 to read ADC value from sensor and store it in a vector

3 go to 1

It will be a loop in wich for every pattern i will acquire a measure, than i'll perform other calculation. The only function of stm32 is to read the Analogue signal. I can't use Arduino because of is 10 bit ADC. Could you have some idea? (in arduino seems to be very simple: load firmata host on arduino and than ask from matlab program to read value)