硬件接口...汽车接口 [英] hardware interfacing....car inetrfacing

查看:90
本文介绍了硬件接口...汽车接口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个关于硬件接口的项目……使用并行端口interrface的汽车inetrfaceing.我已经为项目设计了电路,但没有得到C语言的编码或任何形式的帮助.
该电路由4个npn晶体管和一个连接到每个晶体管中每个端子的电阻组成.
我已使用引脚2-9将晶体管的基极连接到并行端口iam的输出引脚上; 1脚接地.因为iam是c的初学者,所以我不知道iam使用的端口的每个引脚的编码类型.我必须向前,向后,向左,向右移动汽车.

iam doing a project on hardware interfacing......car inetrfacing using parallel port inetrfacing. i have designed the circuit for the project but m not geting the coding or any kind of help for the coding in C.
the circuit consists of 4 npn transistors and a resitor attached to each terminal in each transistor.
i have connected the base of the transistor to the output pin of the parallel port iam using pins 2-9; and 1 pin for the ground. since iam a beginner in c i dont know what type of coding it will be for each pin of the port that iam using. i have to move the car forward,reverse,left,right.

推荐答案

在这里无法具体说明-您只是不提供足够的信息-但从此处开始有大量有关并行端口接口的文章:未经审查的I/O端口-1 -通过并行端口控制LED(发光二极管) [ ^ ]
It''s not possible to be specific about it here - you just don''t give enough information - but there is a good series of articles on parallel port interfacing starting here: I/O Ports Uncensored - 1 - Controlling LEDs (Light Emiting Diodes) with Parallel Port[^]


您还可以在诸如Frank Van Gilluwe的《 The Undocumented PC》之类的书中找到许多有关并行端口编程的非常低级的信息.
You can also find a lot of very low level information on parallel port programming in books such as Frank Van Gilluwe''s: The Undocumented PC.


如果您要认真工作,建议您不要将PC的并行端口直接连接到汽车.

最好的方法是使用基于微控制器的接口电路来控制汽车.

只需通过串行端口发送命令并在微控制器部分处理IO任务即可.
If you''re going to do a serious job, I suggest you not to directly connect parallel port of PC to the car.

The best way is using a micro controller based interface circuit to control that car.

Just send commands via serial port and handle IO tasks in micro controller part.


这篇关于硬件接口...汽车接口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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