如何为并行端口编写C#程序来控制基于继电器的电路? [英] how to write a C# program for parallel port to control a relay based circuit?

查看:59
本文介绍了如何为并行端口编写C#程序来控制基于继电器的电路?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做类似的项目,它的工作方式是具有特定手机号码的用户可以通过GSM技术拨打电话。系统接收呼叫并按照用户的指示执行相应的动作,例如通过基于继电器的电路控制光。系统还将语音消息发送到预先配置的小区编号,以告知设备的状态或是否在家中发现任何类型的入侵。 USB语音GSM调制解调器用于将返回语音消息发送到预配置号码。语音GSM用于通过AT命令将wav文件发送到预配置的号码。基于继电器的电路用于通过DB-23公并行端口控制该电路与系统连接的设备。该应用程序是使用C#语言在.Net框架中开发的。 Microsoft语音SDK 5.0用于语音重组目的。所以请任何人帮我这个代码。

i am doing a project something like that, It works in a way that the user with a specific cell number can make a call through GSM technology. System receives the call and performs the respective action as instructed by the user such as controlling the light through relay based circuit. System also sends the voice message to the preconfigured cell number to tell the status of appliances or if it finds any kind of intrusion at home. USB voice GSM modem is used to send the return voice message to preconfigured number. Voice GSM is used to send the wav file to preconfigured number through AT commands. A relay based circuit is used to control the appliances this circuit is attached with system through DB-23 male parallel port. This application is develop in .Net framework using the language C#. Microsoft speech SDK 5.0 is used for speech reorganization purpose. so please anyone help me with this code.

推荐答案

我不会为此使用并行端口。是的,它会起作用,但是如果你的电路设计不当以保护端口免受从继电器回来的电压的影响,你也冒着炸毁并联端口的风险,可能会超过它的容差。



我会使用微控制器,例如Arduino或Netduino或类似的。如果你把它搞砸了,与主板的成本相比它们相对便宜更换。



哦,没有人制造带并口的主板在它上面。
I would NOT use a parallel port for this. Yes, it'll work, but you also risk blowing up the parallel port if your circuit is not designed properly to protect the port from voltage coming back to it form the relay, possibly exceeding it's tolerance.

I would use a microcontroller, such as an Arduino or Netduino or similar. If you screw up and blow those up, they are relatively cheap to replace compared to the cost of a motherboard.

Oh, and nobody makes a motherboard with a parallel port on it any more.


从这里开始:未经审查的I / O端口 - 1 - 使用并行端口控制LED(发光二极管) [ ^ ] - 它已经过时了,但现场开启了!
Start here: I/O Ports Uncensored - 1 - Controlling LEDs (Light Emiting Diodes) with Parallel Port[^] - it's old, but spot on!


这篇关于如何为并行端口编写C#程序来控制基于继电器的电路?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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