Simple datalogger, serial read, print, save to file.
in
Integration and Hardware
•
7 months ago
Hello,
I have a simple datalogger which works fine. The Arduino sends a text-line every second. On ubuntu PC runs simple script. It reads the lines and prints them on the screen. In addition, it saves them to the file.
I have a simple datalogger which works fine. The Arduino sends a text-line every second. On ubuntu PC runs simple script. It reads the lines and prints them on the screen. In addition, it saves them to the file.
- $cat script.sh
- #!/bin/sh
- while read line
- do
- echo $line
- done < /dev/ttyACM0
- #EOF
- $./script.sh | tee log.txt
1