如何让电脑闪灯

发布于 2024-07-08 09:16:02 字数 97 浏览 11 评论 0 原文

我想要一个用 C# 编写的应用程序监视器来监视一组外汇交易头寸。 它将通过 USB 连接到桌子上的一组真正的“交通灯”,并用它来指示系统状态。 有人可以提出一个好的解决方案吗?

I'd like to have an application monitor written in C# monitoring a set of Forex trading positions. It would be connected via USB to a real set of "traffic lights" sat on a desk which it would use to indicate system status. Can anybody suggest a good solution?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(8

随心而道 2024-07-15 09:16:02

通常我会说并行端口或其他类似的东西,但如果您对 USB 抱有希望,那么肯定看看Arduino。 它是一种成本非常低的微控制器,可以独立运行,也可以通过许多灵活的接口(包括 USB)与 PC 通信。

它在爱好者社区中非常受欢迎,因此,有许多入门级项目可以帮助人们开始使用该设备。 完整组装的 USB 版本的 Sparkfun 价格为 35 美元

Normally I'd say parallel port or some other such thing, but if you've got your hopes up for USB, then definitely have a look at the Arduino. It's a very low cost microcontroller that can run standalone, or can talk to a PC through a number of flexible interfaces (including USB).

It is extremely popular with the hobbyist community, and as such, there are a number of entry-level projects to get one started with the device. Price on Sparkfun is $35 USD for a fully assembled USB-enabled version.

醉生梦死 2024-07-15 09:16:02

我已使用这篇 CodeProject 文章 中的概念成功点亮 LED。
如果满足以下条件,它可能会满足您的要求:

  • 您可以使用并行端口而不是 USB(或者可能是 USB 到并行电缆/加密狗)
  • 您已准备好处理一些焊接和简单的电子修补
  • 您可以修改 vb 代码来监视您的状态

正如作者提到的在本文中,如果您不小心的话,您可能会损坏计算机的并行端口(甚至更糟!)

此外,优秀的工程师会坚持将灯与端口隔离,以进一步保护计算机。 (继电器、三端双向可控硅开关元件、光电隔离器等)

话虽如此,它确实有效!

I have used the concepts in this CodeProject article to successfully light up LEDs.
It might meet your requirements if:

  • You can use parallel port instead of usb (or maybe usb to parallal cable/dongle)
  • You are ready to tackle some soldering and simple electronic tinkering
  • You can modify the vb code to monitor your status

As the author mentions in the article, you can destroy your computer's parallel port (and worse!) if you are not very careful.

In addition, a good engineer would insist that you isolate the lights from the port to further protect the computer. (relays, triacs, opto isolators, etc.)

That being said, it does work!

终止放荡 2024-07-15 09:16:02

最简单的解决方案是购买一个 USB 交通灯,而不是自己建造一个。 例如USB Ampel。 如果包含一个简单的 API,事情可能会容易得多。

The easiest solution is to buy a USB traffic light, rather than building one yourself. E.g. USB Ampel. With a simple API included, it would probably be much easier.

眼眸印温柔 2024-07-15 09:16:02

传统上人们使用 X10 自动化框架来做这种事情。 我公司的人用它来控制熔岩灯,以指示我们持续集成构建的状态。

有一个指针位于 开始编写与 x10 协议交互的应用程序吗?

Traditionally people have used the X10 automation framework for this kind of thing. People at my company use it to control lava lamps to indicate the status of our continuous integration build.

There's a pointer over at How does one get started writing applications that interact with x10 protocol?

无戏配角 2024-07-15 09:16:02

更进一步,您可以使用 Arduino 等微控制器平台自行构建一些东西。 Arduino Playground 页面上提供了 Arduino 平台的一些示例。

一篇关于如何使用 Arduino 制作交通灯的文章位于 指导

One step further is to build something yourself using a microcontroller platform like the Arduino. Some examples of what is possible with the Arduino platform are available on the Arduino Playground page.

An article on how to make traffic lights using an Arduino is available at Instructables.

记忆里有你的影子 2024-07-15 09:16:02

Channel9 有一个来自 Microsoft PDC 的视频,展示了一些开发人员如何使用“Build Bunny”进行类似的操作:PDC2008 炫耀条目:Brian the Build Bunny

还有更多信息和 源代码在这里

Channel9 has a video from the Microsoft PDC showing how some developers use a "Build Bunny" for something similar: PDC2008 ShowOff Entry: Brian the Build Bunny

There's also more information and source code here.

心安伴我暖 2024-07-15 09:16:02

尝试使用简单的 USB 实验接口,例如 Phidg​​ets (Www.phidgets.com) 或 Velleman k8055 USB 实验板 (http://www.velleman.be/ot/en/product/view/?id=351346)。

Try using simple usb experimentation interfaces such as Phidgets (Www.phidgets.com) or the Velleman k8055 USB experimentation board (http://www.velleman.be/ot/en/product/view/?id=351346).

抽个烟儿 2024-07-15 09:16:02

当我们的 CI 服务器上的构建出现故障时,我们在上一份工作中使用该产品来控制一组旋转交通灯。 以太网很好,因此您不受 USB 3M 范围的限制,并且就像打开 TCPClient 端口 10000 并发送“1R1\r”一样简单。

http://www.6bit.com/products/smartrelayE.php?products_id=33

We used this product at my last job to control a set of revolving traffic lights when a build would break on our CI server. The Ethernet is nice so that you are not limited to the 3M range of USB and it is as easy as opening a TCPClient to port 10000 and sending a "1R1\r".

http://www.6bit.com/products/smartrelayE.php?products_id=33

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文