Arduino - 如何在没有 IDE 的情况下获取串行数据

问题描述:

我正在为脑部分流器构建原型滴注监测器.它将监控滴水并报告我需要的任何数据.问题是我只是在构建设备.一个对 Arduinos 或代码一无所知的人正在使用它.有没有一种方法或程序可以显示和/或保存数据到文件中,这样一个人就可以插入 Arduino 而不会打扰 IDE 或任何代码?

I am building a prototype drip monitor for a brain shunt. It will monitor the drips and report whatever data I need. The problem is I'm just building the device. A person who knows nothing about Arduinos or code is using it. Is there a way or program to display and/or save data to a file such that a person could just plug the Arduino in and not bother the the IDE or any code?

正如评论中所指出的,根据预算和其他标准,有很多方法可以做到这一点.例如,您不能肯定地说这是否只需要(简单)实时监控或(稍微复杂一点)是否需要将数据记录到文件中供以后查看.独立日志记录是另一个(相当复杂的)选项(例如 Arduino 未连接到主机).

As noted in the comments, there are many ways to do this depending on budget and other criteria. For example, you don't say for certain if this only needs to be (simple) real time monitoring or (a bit more complicated) if data needs to be logged to a file for later review. Standalone logging is another (fairly complicated) option (e.g. the Arduino not connected to a host computer).

这是关于不同方法的很好的教程和概述.

就用户友好的 GUI 而言,人们可以使用 Processing 在几个小时内组装一个简单的应用程序这将显示实时数据,如果需要,写入文本文件.

In terms of user-friendly GUI, one could put together a simple app in a few hours using Processing which would display real time data and if need be, write to a text file.

网络上有许多 Arduino 数据记录项目.这是 one搜索结果很多很多其他人

There are many Arduino data logging projects on the web. Here's one and search results for many, many others