EEVblog Electronics Community Forum

Electronics => Beginners => Topic started by: OneAmpShort on March 27, 2018, 11:00:38 am

Title: uC ADC data to PC/Matlab help
Post by: OneAmpShort on March 27, 2018, 11:00:38 am
Hey all,

Currently at uni, and am undertaking a project to sample analogue signals and process the data obtained. I'm looking to understand how best to get this uC ADC data into a PC to use with Matlab. If data is sent to a csv file, I can import it to matlab, but what about reading live data? (I should note that I'm far from a command line savvy person)

I've been investigating both Xbee and Bluetooth as an option for PCB to PC link. Beyond getting a connection established,  I'm unsure how to translate the sampled data to Matlab for analysis.

I'm kind of limited in how i can flash the uC, as the only debugger I currently have is for atmel products. I did look at the ATMega32 chip which has enough ADC channels for my needs, so I'm leaning towards using that. {4 channels ADC only so maybe a smaller uC would be ok}

uC program is to be coded in C++.

If I understand correctly, I'd be using USART to transmit data via an Xbee (didn't check bluetooth but I imagine its the same). Is there something I'd need to do on the PC end to be able to read the live data effectively, or alternatively write to a file for later import?

For now I'm seeking any guidance for anything I need to understand better. At this point it seems doable but a little beyond my skill set.

Thanks for any input.
Title: Re: uC ADC data to PC/Matlab help
Post by: djnz on March 27, 2018, 02:36:09 pm
Does the uC to PC link have to be wireless?
Title: Re: uC ADC data to PC/Matlab help
Post by: OneAmpShort on March 28, 2018, 12:55:06 am
It's not a requirement of the project, but would be helpful in that the uC will be a wearable design. Initially the aim was to get it working and then look to transmit wirelessly later, but I thought it might just be easier to go straight down that route.