使用互联网(物联网)将数据从arduino和传感器发送到计算机? [英] Send data from arduino and sensor to computer using the internet (of things)?

查看:321
本文介绍了使用互联网(物联网)将数据从arduino和传感器发送到计算机?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

晚上好!



和几位同学一起,我想出了一个想法,我们将从今年8月开始到周围工作2018年3月作为学校项目。我们正在学习电子学,并且作为免责声明:我们对编程世界来说几乎是全新的,我们所做的就是使用arduino。然而,我们的想法是将数据(如来自传感器的数字)从像Arduino Uno这样的微控制器板传输到计算机程序,在计算机程序中可以将数据显示为数字或另一个数字的起诉。数据将实时显示,以便我们可以实时关注传感器值,并通过互联网传输。带传感器的arduino将有一个wifi和/或2g / 3g / 4g连接以便访问互联网,而计算机只是一台带有wifi或以太网连接的Windows笔记本电脑或台式机。



我们知道有这样的解决方案,但这是一种学习经验。我们在互联网上看到了一些arduino解决方案,但那些使用网站收集和显示数字。虽然这有效,但它对我们来说并不理想,但我们确实理解Windows程序将是最具挑战性的部分,因为我们没有任何使用数据库或用于这些任务的语言的经验。



我们也明白这可能并且可能比我们可以咀嚼的还要大,但我们还是想尝试一下,看看我们能走多远,包括软件和硬件。我们不是那种认为这很容易的人,即使没有任何知识,但我们想尝试。顺便说一下,我们已经使用过一些基本的传感器,那部分还可以。但是从你的角度来看,该怎么想?你会从哪里开始,我们对你需要什么有什么看法?我们不希望你给我们一个完整的代码准备推出,但我们现在需要一些输入,然后我们开始我们将要做的事情,以及你将如何做到这一点。我们可能不会理解你所说的一切,但这就是为什么我们要研究并继续研究我们的编程知识。



谢谢你的答案!



Jondyv



我尝试过:



我们一直在做一些研究,如上所述,人们解释的解决方案并不能完全满足我们的需求。再一次,我们知道这对像我们这样的人来说是个大项目,也许太大了,但我们会尝试。



我们开始研究不同的方式使用数据库和不同的编程语言,但这是为了基本了解这个主题。



(如果这不符合本网站的意图,我们很抱歉,但我们认为我们会尝试任何一种方式!如果它不适合,请删除它并告诉我们,谢谢!)

Good evening!

Together with a couple of class mates, I've come up with an idea that we'll work on from August this year to around March 2018 as a school project. We're learning electronics, and as a disclaimer: We're pretty much brand new to the world of programming, and all we've done is some work with an arduino. However, the idea is to transfer data, like a number coming from a sensor, from a microcontroller board like an Arduino Uno, to a computer program where it can be displayed either as a number, or a prosentage of another number. The data would be displayed live, so that we can keep an eye on the sensor values in real time, and it would be transfered via the internet. The arduino with the sensor would have a wifi and/or 2g/3g/4g connection in order to access the internet, and the computer would just be a windows laptop or desktop with either wifi or ethernet connection.

We know theres solutions like this out there, but this is a learning experience more than anything. We have seen some arduino solutions on the internet, but those use websites to collect and display the numbers. Although that works, its not ideal for us, but we do understand the windows program would be the most challenging part, since we dont have any experience with databases or languages used for these kinds of tasks.

We also understand this might and probably is a too big bite than we can chew, but we want to try anyways and see how far we can come, both in software and hardware. We're not the kinds of people who think this is gonna ve easy, even without any knowledge, but we want to try. We've worked with some basic sensors before by the way, that part is ok. But from your point of view, what do to think? Where would you start, what us your opinion on what we would need? We dont want you to give us a complete code ready to roll, but we want some input now before we start on what we would have to do, and how you would have done it. We might not understand all you're talking about, but thats why we research and are going to continue to work on our programming knowledge.

Thank you for your answers!

Jondyv

What I have tried:

We've been doing some research, and as mentioned, the solutions people have explained doesn't fully meet our needs. Again, we know this is a big project for somebody like us, maybe too big, but we'll try.

We're starting to look into different ways of using databases and different programming languages, but that's to get a basic understanding of this major topic.

(We're sorry if this does not meet the intentions of this website, but we thought we would try either way! If it does not fit, please remove it and tell us, thank you!)

推荐答案

对于这样的项目,你需要一个充当数据服务器的系统。该服务器必须具有从客户端(Arduino系统)到达的公共地址,并且应始终在线。出于这些原因,其他解决方案通常使用托管网站。



如果您想使用专用系统(Windows台式机或笔记本电脑),则必须满足要求:


  • 服务器必须具有已知的公共地址。这可能需要DDNS(动态DNS - 维基百科 [ ^ ])和端口转发(端口转发 - 维基百科 [ ^ ])将在服务器的网关上配置(路由器)。

  • 系统必须始终开启,或者您必须在Arduino上实现代码,该代码收集数据并在服务器联机时发送。但是,在非响应服务器上做出反应的能力总是一个好主意。

For such a project you need a system that is acting as server for your data. That server must have a public address to be reached from the client (the Arduino system) and should be always online. For those reasons, other solutions often use a hosted web site.

If you want to use a dedicated system instead (a Windows desktop or notebook), you have to fulfill the requirements:

  • The server must have a known public address. This might require DDNS (Dynamic DNS - Wikipedia[^]) and port forwarding (Port forwarding - Wikipedia[^]) to be configured on the server's gateway (router).
  • The system must be always on, or you have to implement code on the Arduino which collects data and sends them when the server is online. However, the ability to react on non-responsive servers is always a good idea.


这篇关于使用互联网(物联网)将数据从arduino和传感器发送到计算机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆