Go Down

Topic: Display multiple analog inputs over USB (Read 1 time) previous topic - next topic


one method is to prefix your data with something that identifies the analog input. You could for instance send soemthing like:

AN1 Analog 1 data here , AN2 analog 2 data here etc. etc.

Then on the recieving side you could look for the prefix or header and you would now which analog data you are recieving.

Another method is to put all your analog readings in one commaseparated string like this

value1,value2,value3,....last value then send the string followed by a linefeed. (use serial.println to do that)

on the recieving end you would read an entire line from the serial input and split it up in individual values using the commas as ddelimiters.

It all depends on what programming language / environment you decide to use to recieve / display the data on the PC side.


Ohh I see.  I might have to try a combination of these.

Thanks for the help :)  It should help me get started.

Go Up