![]() Simple guide to using processing software to log data from your Arduino through the Serial port. The data will be log and save as a csv table for easy of use with other software. Processing is used for a variety of projects, from visual arts to research. Here is the website for Processing: They have simple tutorials to get you started and a reference page to help with understanding the code. Items you will need: Arduino Software(including attached sensor of your choice) - We will be using the button project from my previous instructable to aid in this project, but a simple button input, like the StateChange example Arduino provides, will also work. Processing Software ~We will skip over the Arduino hook-up part, and go straight to the the code and output. Step 1: Setup the Arduino With Code. This is a simple code that output the number one to the serial port as a string. The output will be what we collect with processing. Ideally you want to have it output as a string otherwise Processing will not record the number or letter that is output, but the DEC number of the value. You can find out more about DEC number at: ~You can program either Arduino to output string values or program Processing to convert values to string. For this example we will have Arduino output as a string. Step 2: Processing Code for Data Collection. Serial Port Data Logger TimestampScreen-shot of the Termite utility Termite is an easy to use and easy to configure RS232 terminal. It uses an interface similar to that of 'messenger' or 'chat' programs, with a large window that contains all received data and an edit line for typing in strings to transmit. Highlights of the utility are the ease of installation (possibly with pre-configured settings) using a heuristic search for the appropriate COM port and, as was mentioned, its user-friendliness. Wx500 fs9 download. Other features are: • for pre-processing or alternative views of the data, logging received data to a file, adding a toolbar to Termite, keyboard macros, and other functionality that you may think of. • A that you typed, with auto-completion. • Resizeable main window, with a 'keep window on top' option, multilingual user interface.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |