Making a real-time plotter with several signals of sensors connected to Arduino

61 views
Skip to first unread message

Alexander Menethil

unread,
Nov 14, 2017, 9:14:08 AM11/14/17
to MIT App Inventor Forum

Hello!
I am a newbie into Android development :) Have made a lot of Arduino projects, though. Now, within my university research group, we are developing smart textile clothing, which, now needs some wearable system to take readings to.

My thoughts are as follows: I have several sensors (that are pressure sensors in fact) connected to arduino and it is set up for a bluetooth connection with the phone. I have learned how to establish a connection and send data from arduino to my phone.

I have 2 questions, is it possible to make a real-time graph (plot) of the signal, that is generated, where the X axis would be time and Y axis would be either 0-5 or 0-1 and is it possible to simultaneously save this data to a .txt file in order to analyze the readings later in Excel, MatLab and so on.

I've been searching forums for similar programs and found only https://groups.google.com/forum/#!msg/mitappinventortest/xNulYntNqRA/HF2uTZVSAwAJ;context-place=msg/mitappinventortest/p0HZMdOQT4c/IJzvOGF8BAAJ
Though I don't really understand how to work with canvas. Maybe someone can point me out on that.

Thank you very much in advance :)

Message has been deleted

SteveJG

unread,
Nov 14, 2017, 9:47:20 AM11/14/17
to MIT App Inventor Forum
Here is multiple plots on a single real time graph using the accelerometer  . try   https://groups.google.com/forum/#!searchin/mitappinventortest/seismic%7Csort:relevance/mitappinventortest/8wIybt1SALE/JIfEcgMaAQAJ        You can adapt it.

Regarding the Canvas coordinates etc.; try 
Regarding saving the data ... instead of plotting, save the x and y coordinates to a Label or a List as they arrive, the do something with them later.  What you do depends on your existing code that sends the x,y to your Android.

Regards,
Steve

Alexander Menethil

unread,
Nov 14, 2017, 9:54:37 AM11/14/17
to MIT App Inventor Forum
Thank you for answering so quickly!

You most likely meant https://groups.google.com/forum/#!searchin/mitappinventortest/seismic%7Csort:relevance/mitappinventortest/xXOUXOxPLZQ/9U4RWID_VX8J and the file Accelerometer_copy_copy.aia?

I'll look into it, thanks :))
Reply all
Reply to author
Forward
0 new messages