If you are on Mac or Windows you and have trouble copying the data from the serial output. There is a very short video here that shows how you can do it!
Alternatively, you can use the terminal and pbcopy
the ouput. ENSURE SERIAL MONITOR IS CLOSED BEFORE DOING THIS. The actual port name will likely be different on your computer. If necessary, get the name of the port from the Arduino IDE. We're using /dev/cu.usbmodem214101
as an example.
pbcopy /dev/cu.usbmodem214101
This will save the output to your clipboard, and you can paste it into your desired file from there! Unfortunately, you won't see the output from the serial monitor using this method.
Alternatively, you can use cat
to view the output and copy + paste it as you please:
cat /dev/cu.usbmodem214101
Otherwise, you can follow along with the instructions as normal:
- Press the reset button on the board
- Open the Serial Monitor:
Tools -> Serial Monitor
- Make a punch gesture with the board in your hand - you should see the sensor data log in the Serial Monitor
- Repeat the gesture 10 (or more) times to gather addition data
- Copy and paste the data from the serial output to new text file named
punch.csv
- Close the Serial Monitor
- Press the reset button on the board
- Open the Serial Monitor:
Tools -> Serial Monitor
- Make a flex gesture with the board in your hand
- Repeat the flex gesture at least 10 times
- Copy and paste the serial output to new text file named
flex.csv
Visual Studio Code, Sublime Text, or Atom will all work great for creating CSV files. If you don't have one of these editors installed, try Notepad.exe on Windows or TextEdit on MacOS. Note that TextEdit wants to save data in rich text format default. Be sure to choose Format -> Make Plain Text before choosing File -> Save.