Sci.Electronics.Basics

on Electronics-Related.com

  Home  |  Books  |  Sci.Electronics.Design  |  Sci.Electronics.Basics  |  Resources  |  Contact  | 
Sign in
username:

password:

Remember Me

Not a member?
Search Sci.Electronics.Basics

Search Tips

Sci.Electronics.Basics -> How to send a signal from PC to a circuit board?

There are 16 messages in this thread.
You are currently looking at messages 1 to 16.






Date: 14:31 11-01-07


Hi

I am working on a project where I have to send signals from a PC (RS232
or USB?) to a 4-to-16 decoder. Basically, I need a way to send signals
from a PC to drive the 4 inputs of the decoder. Anybody knows an easy
way to do that?

I am looking for the hardware and IC components necessary that will
convert the signals from the PC. Then, what software or programs will I
need to code?


Author: James Beck
Date: 14:47 11-01-07

In article <1168543878.816053.50020@77g2000hsv.googlegroups.com>,
lichxx@gmail.com says...
> Hi
>
> I am working on a project where I have to send signals from a PC (RS232
> or USB?) to a 4-to-16 decoder. Basically, I need a way to send signals
> from a PC to drive the 4 inputs of the decoder. Anybody knows an easy
> way to do that?
>
> I am looking for the hardware and IC components necessary that will
> convert the signals from the PC. Then, what software or programs will I
> need to code?
>
>
How about using the parallel port?
At least 8 easy to use data lines.
Real easy if you are using Win98 or less or DOS.
Win2K and XP are a little tougher.

Jim

Date: 14:54 11-01-07


James Beck wrote:
> In article <1168543878.816053.50020@77g2000hsv.googlegroups.com>,
> lichxx@gmail.com says...
> > Hi
> >
> > I am working on a project where I have to send signals from a PC (RS232
> > or USB?) to a 4-to-16 decoder. Basically, I need a way to send signals
> > from a PC to drive the 4 inputs of the decoder. Anybody knows an easy
> > way to do that?
> >
> > I am looking for the hardware and IC components necessary that will
> > convert the signals from the PC. Then, what software or programs will I
> > need to code?
> >
> >
> How about using the parallel port?
> At least 8 easy to use data lines.
> Real easy if you are using Win98 or less or DOS.
> Win2K and XP are a little tougher.
>
> Jim


I am using Win XP. How hard would that be?


Author: James Beck
Date: 16:15 11-01-07

In article <1168545281.404509.164710@p59g2000hsd.googlegroups.com>,
lichxx@gmail.com says...
>
> James Beck wrote:
> > In article <1168543878.816053.50020@77g2000hsv.googlegroups.com>,
> > lichxx@gmail.com says...
> > > Hi
> > >
> > > I am working on a project where I have to send signals from a PC (RS232
> > > or USB?) to a 4-to-16 decoder. Basically, I need a way to send signals
> > > from a PC to drive the 4 inputs of the decoder. Anybody knows an easy
> > > way to do that?
> > >
> > > I am looking for the hardware and IC components necessary that will
> > > convert the signals from the PC. Then, what software or programs will I
> > > need to code?
> > >
> > >
> > How about using the parallel port?
> > At least 8 easy to use data lines.
> > Real easy if you are using Win98 or less or DOS.
> > Win2K and XP are a little tougher.
> >
> > Jim
>
>
> I am using Win XP. How hard would that be?
>
>
You will need one of the VXD's that allow you to access the parallel
port hardware. XP blocks applications from doing that.

See:
http://www.beyondlogic.org/porttalk/porttalk.htm

Among others.
I'm sure others here know of more drivers.

Jim

Author: Randy Day
Date: 16:39 11-01-07

lichxx@gmail.com wrote:

> James Beck wrote:
>
>>In article <1168543878.816053.50020@77g2000hsv.googlegroups.com>,
>>lichxx@gmail.com says...
>>
>>>Hi
>>>
>>>I am working on a project where I have to send signals from a PC (RS232
>>>or USB?) to a 4-to-16 decoder. Basically, I need a way to send signals
>>>from a PC to drive the 4 inputs of the decoder. Anybody knows an easy
>>>way to do that?
>>>
>>>I am looking for the hardware and IC components necessary that will
>>>convert the signals from the PC. Then, what software or programs will I
>>>need to code?
>>>
>>>
>>
>>How about using the parallel port?
>>At least 8 easy to use data lines.
>>Real easy if you are using Win98 or less or DOS.
>>Win2K and XP are a little tougher.
>>
>> Jim
>
>
>
> I am using Win XP. How hard would that be?

It adds an extra layer of complexity. After Win98,
the user is not allowed direct access to hardware,
including I/O ports.

Someone here previously mentioned two ring 0 device
drivers called GiveIO and UserPort; I bookmarked the
following site to d/l them, but have not used either,
since I use some old PC's and win9x for I/O stuff.

http://www.embeddedtronics.com/design&ideas.html

Maybe you should find an old PII/PIII machine and
someone's old win9x CD as a test machine; it could
save your main machine if you short something...

HTH

Author: Eeyore
Date: 19:31 11-01-07



lichxx@gmail.com wrote:

> Hi
>
> I am working on a project where I have to send signals from a PC (RS232
> or USB?) to a 4-to-16 decoder. Basically, I need a way to send signals
> from a PC to drive the 4 inputs of the decoder. Anybody knows an easy
> way to do that?

*Easy* ? I wouldn't call it easy myself.

Graham


Author: Matthew Hicks
Date: 13:44 12-01-07

I used a parallel port to drive an lcd for an old school project. You need
to look-up what address the port is located at, how you can get the port to
automatically latch the data and a way to get access to the I/O pins
directly. For the last part I use a c compiler called djgpp that makes a
dos executable that can have direct access to the I/O pins. I think I used
simple in(address) and out(data, address) commands to communicat but you'll
have to look those up to be sure. Note that these functions are in a
special library.

---Matthew Hicks


"James Beck" <jim@reallykillersystems.com> wrote in message
news:MPG.201072ff21c0d250989e2c@newsgroups.bellsouth.net...
> In article <1168545281.404509.164710@p59g2000hsd.googlegroups.com>,
> lichxx@gmail.com says...
>>
>> James Beck wrote:
>> > In article <1168543878.816053.50020@77g2000hsv.googlegroups.com>,
>> > lichxx@gmail.com says...
>> > > Hi
>> > >
>> > > I am working on a project where I have to send signals from a PC
>> > > (RS232
>> > > or USB?) to a 4-to-16 decoder. Basically, I need a way to send
>> > > signals
>> > > from a PC to drive the 4 inputs of the decoder. Anybody knows an easy
>> > > way to do that?
>> > >
>> > > I am looking for the hardware and IC components necessary that will
>> > > convert the signals from the PC. Then, what software or programs will

>> > > I
>> > > need to code?
>> > >
>> > >
>> > How about using the parallel port?
>> > At least 8 easy to use data lines.
>> > Real easy if you are using Win98 or less or DOS.
>> > Win2K and XP are a little tougher.
>> >
>> > Jim
>>
>>
>> I am using Win XP. How hard would that be?
>>
>>
> You will need one of the VXD's that allow you to access the parallel
> port hardware. XP blocks applications from doing that.
>
> See:
> http://www.beyondlogic.org/porttalk/porttalk.htm
>
> Among others.
> I'm sure others here know of more drivers.
>
> Jim



Author: James Beck
Date: 14:37 12-01-07

In article <eo8ku6$v09$1@news.ks.uiuc.edu>, mdhicks2@uiuc.edu says...
> I used a parallel port to drive an lcd for an old school project. You need
> to look-up what address the port is located at, how you can get the port to
> automatically latch the data and a way to get access to the I/O pins
> directly. For the last part I use a c compiler called djgpp that makes a
> dos executable that can have direct access to the I/O pins. I think I used
> simple in(address) and out(data, address) commands to communicat but you'll
> have to look those up to be sure. Note that these functions are in a
> special library.
>
> ---Matthew Hicks
Still won't work under XP without using a VXD.

>
>
> "James Beck" <jim@reallykillersystems.com> wrote in message
> news:MPG.201072ff21c0d250989e2c@newsgroups.bellsouth.net...
> > In article <1168545281.404509.164710@p59g2000hsd.googlegroups.com>,
> > lichxx@gmail.com says...
> >>
> >> James Beck wrote:
> >> > In article
<1168543878.816053.50020@77g2000hsv.googlegroups.com>,
> >> > lichxx@gmail.com says...
> >> > > Hi
> >> > >
> >> > > I am working on a project where I have to send signals from a PC

> >> > > (RS232
> >> > > or USB?) to a 4-to-16 decoder. Basically, I need a way to send
> >> > > signals
> >> > > from a PC to drive the 4 inputs of the decoder. Anybody knows an
easy
> >> > > way to do that?
> >> > >
> >> > > I am looking for the hardware and IC components necessary that
will
> >> > > convert the signals from the PC. Then, what software or programs
will
> >> > > I
> >> > > need to code?
> >> > >
> >> > >
> >> > How about using the parallel port?
> >> > At least 8 easy to use data lines.
> >> > Real easy if you are using Win98 or less or DOS.
> >> > Win2K and XP are a little tougher.
> >> >
> >> > Jim
> >>
> >>
> >> I am using Win XP. How hard would that be?
> >>
> >>
> > You will need one of the VXD's that allow you to access the parallel
> > port hardware. XP blocks applications from doing that.
> >
> > See:
> > http://www.beyondlogic.org/porttalk/porttalk.htm
> >
> > Among others.
> > I'm sure others here know of more drivers.
> >
> > Jim
>
>
>

Author: GPG
Date: 05:48 13-01-07


James Beck wrote:
> In article <eo8ku6$v09$1@news.ks.uiuc.edu>, mdhicks2@uiuc.edu says...
> > I used a parallel port to drive an lcd for an old school project. You need
> > to look-up what address the port is located at, how you can get the port to
> > automatically latch the data and a way to get access to the I/O pins
> > directly. For the last part I use a c compiler called djgpp that makes a
> > dos executable that can have direct access to the I/O pins. I think I used
> > simple in(address) and out(data, address) commands to communicat but you'll
> > have to look those up to be sure. Note that these functions are in a
> > special library.
> >
> > ---Matthew Hicks
> Still won't work under XP without using a VXD.
>
> >
> >
> > "James Beck" <jim@reallykillersystems.com> wrote in message
> > news:MPG.201072ff21c0d250989e2c@newsgroups.bellsouth.net...
> > > In article <1168545281.404509.164710@p59g2000hsd.googlegroups.com>,
> > > lichxx@gmail.com says...
> > >>
> > >> James Beck wrote:
> > >> > In article
<1168543878.816053.50020@77g2000hsv.googlegroups.com>,
> > >> > lichxx@gmail.com says...
> > >> > > Hi
> > >> > >
> > >> > > I am working on a project where I have to send signals from
a PC
> > >> > > (RS232
> > >> > > or USB?) to a 4-to-16 decoder. Basically, I need a way to
send
> > >> > > signals
> > >> > > from a PC to drive the 4 inputs of the decoder. Anybody
knows an easy
> > >> > > way to do that?
> > >> > >
> > >> > > I am looking for the hardware and IC components necessary
that will
> > >> > > convert the signals from the PC. Then, what software or
programs will
> > >> > > I
> > >> > > need to code?
> > >> > >
> > >> > >
> > >> > How about using the parallel port?
> > >> > At least 8 easy to use data lines.
> > >> > Real easy if you are using Win98 or less or DOS.
> > >> > Win2K and XP are a little tougher.
> > >> >
> > >> > Jim
> > >>
> > >>
> > >> I am using Win XP. How hard would that be?
> > >>
> > >>
> > > You will need one of the VXD's that allow you to access the parallel
> > > port hardware. XP blocks applications from doing that.
> > >
> > > See:
> > > http://www.beyondlogic.org/porttalk/porttalk.htm
> > >
> > > Among others.
> > > I'm sure others here know of more drivers.


Google inpout


Author: Chris
Date: 06:33 13-01-07


lic...@gmail.com wrote:
> Hi
>
> I am working on a project where I have to send signals from a PC (RS232
> or USB?) to a 4-to-16 decoder. Basically, I need a way to send signals
> from a PC to drive the 4 inputs of the decoder. Anybody knows an easy
> way to do that?
>
> I am looking for the hardware and IC components necessary that will
> convert the signals from the PC. Then, what software or programs will I
> need to code?

The easiest way to do this is to scrounge an old PC with DOS, and use
QBASIC to address the 8 data bits of the printer I/O port. Make sure
the printer port is configured in BIOS as SPP. No extra hardware
required if your decoder accepts TTL signals. Your most time consuming
activity will be making the connector for the DB25 plug.

Cheers
Chris


Author: Si Ballenger
Date: 12:16 13-01-07

On 11 Jan 2007 11:54:41 -0800, lichxx@gmail.com wrote:

>
>James Beck wrote:
>> In article <1168543878.816053.50020@77g2000hsv.googlegroups.com>,
>> lichxx@gmail.com says...
>> > Hi
>> >
>> > I am working on a project where I have to send signals from a PC (RS232
>> > or USB?) to a 4-to-16 decoder. Basically, I need a way to send signals
>> > from a PC to drive the 4 inputs of the decoder. Anybody knows an easy
>> > way to do that?
>> >
>> > I am looking for the hardware and IC components necessary that will
>> > convert the signals from the PC. Then, what software or programs will I
>> > need to code?
>> >
>> >
>> How about using the parallel port?
>> At least 8 easy to use data lines.
>> Real easy if you are using Win98 or less or DOS.
>> Win2K and XP are a little tougher.
>>
>> Jim
>
>
>I am using Win XP. How hard would that be?

If you run userport (google for userport.zip) you can get user
level hardware access on XP machines. Once you have user level
accrss, you probably can do the rest of your programming using
notepad. I've got a couple of pages below with some simple
parallel port I/O setups.

http://www.geocities.com/zoomkat/status.htm
http://www.geocities.com/zoomkat/output.htm


Date: 15:23 15-01-07

My project is concerned with driving a 16x16 LCD using the PC. Are
there any documentations available for driving a LCD?

On Jan 12, 1:44 pm, "Matthew Hicks" <mdhic...@uiuc.edu> wrote:
> I used a parallel port to drive an lcd for an old school project. You need
> to look-up what address the port is located at, how you can get the port to
> automatically latch the data and a way to get access to the I/O pins
> directly. For the last part I use a c compiler called djgpp that makes a
> dos executable that can have direct access to the I/O pins. I think I used
> simple in(address) and out(data, address) commands to communicat but you'll
> have to look those up to be sure. Note that these functions are in a
> special library.
>
> ---Matthew Hicks
>
> "James Beck" <j...@reallykillersystems.com> wrote in
messagenews:MPG.201072ff21c0d250989e2c@newsgroups.bellsouth.net...
>
> > In article <1168545281.404509.164...@p59g2000hsd.googlegroups.com>,
> > lic...@gmail.com says...
>
> >> James Beck wrote:
> >> > In article
<1168543878.816053.50...@77g2000hsv.googlegroups.com>,
> >> > lic...@gmail.com says...
> >> > > Hi
>
> >> > > I am working on a project where I have to send signals from a PC
> >> > > (RS232
> >> > > or USB?) to a 4-to-16 decoder. Basically, I need a way to send
> >> > > signals
> >> > > from a PC to drive the 4 inputs of the decoder. Anybody knows an
easy
> >> > > way to do that?
>
> >> > > I am looking for the hardware and IC components necessary that
will
> >> > > convert the signals from the PC. Then, what software or programs
will
> >> > > I
> >> > > need to code?
>
> >> > How about using the parallel port?
> >> > At least 8 easy to use data lines.
> >> > Real easy if you are using Win98 or less or DOS.
> >> > Win2K and XP are a little tougher.
>
> >> > Jim
>
> >> I am using Win XP. How hard would that be?
>
> > You will need one of the VXD's that allow you to access the parallel
> > port hardware. XP blocks applications from doing that.
>
> > See:
> >http://www.beyondlogic.org/porttalk/porttalk.htm
>
> > Among others.
> > I'm sure others here know of more drivers.
>
> > Jim


Author: Randy Day
Date: 17:04 15-01-07

lichxx@gmail.com wrote:
> My project is concerned with driving a 16x16 LCD using the PC. Are
> there any documentations available for driving a LCD?

It very much depends on the specific LCD panel
you want to work with.

If you have a specific panel in mind, you can
search on the model number for a datasheet.

If not, HD44780-based character displays are
popular (and cheap):
http://ouwehand.net/~peter/lcd/lcd0.shtml#_2_line_displays

USB driven LCD project:
http://donn.dyndns.org/projects/usblcd/

HTH

Author: Rich Grise
Date: 17:14 15-01-07

On Mon, 15 Jan 2007 12:23:47 -0800, lichxx wrote:

> My project is concerned with driving a 16x16 LCD using the PC. Are
> there any documentations available for driving a LCD?
>
Whoever supplied the LCD should have technical documentation.

And please learn to trim and bottom post.

Good Luck!
Rich

> On Jan 12, 1:44 pm, "Matthew Hicks" <mdhic...@uiuc.edu> wrote:
>> I used a parallel port to drive an lcd for an old school project. You need
>> to look-up what address the port is located at, how you can get the port to
>> automatically latch the data and a way to get access to the I/O pins
>> directly. For the last part I use a c compiler called djgpp that makes a
>> dos executable that can have direct access to the I/O pins. I think I used
>> simple in(address) and out(data, address) commands to communicat but you'll
>> have to look those up to be sure. Note that these functions are in a
>> special library.
>>
>> ---Matthew Hicks
>>
>> "James Beck" <j...@reallykillersystems.com> wrote in
messagenews:MPG.201072ff21c0d250989e2c@newsgroups.bellsouth.net...
>>
>> > In article <1168545281.404509.164...@p59g2000hsd.googlegroups.com>,
>> > lic...@gmail.com says...
>>
>> >> James Beck wrote:
>> >> > In article
<1168543878.816053.50...@77g2000hsv.googlegroups.com>,
>> >> > lic...@gmail.com says...
>> >> > > Hi
>>
>> >> > > I am working on a project where I have to send signals from
a PC
>> >> > > (RS232
>> >> > > or USB?) to a 4-to-16 decoder. Basically, I need a way to
send
>> >> > > signals
>> >> > > from a PC to drive the 4 inputs of the decoder. Anybody
knows an easy
>> >> > > way to do that?
>>
>> >> > > I am looking for the hardware and IC components necessary
that will
>> >> > > convert the signals from the PC. Then, what software or
programs will
>> >> > > I
>> >> > > need to code?
>>
>> >> > How about using the parallel port?
>> >> > At least 8 easy to use data lines.
>> >> > Real easy if you are using Win98 or less or DOS.
>> >> > Win2K and XP are a little tougher.
>>
>> >> > Jim
>>
>> >> I am using Win XP. How hard would that be?
>>
>> > You will need one of the VXD's that allow you to access the parallel
>> > port hardware. XP blocks applications from doing that.
>>
>> > See:
>> >http://www.beyondlogic.org/porttalk/porttalk.htm
>>
>> > Among others.
>> > I'm sure others here know of more drivers.
>>
>> > Jim


Date: 12:09 16-01-07



On Jan 15, 5:14 pm, Rich Grise <r...@example.net> wrote:
> On Mon, 15 Jan 2007 12:23:47 -0800, lichxx wrote:
> > My project is concerned with driving a 16x16 LCD using the PC. Are
> > there any documentations available for driving a LCD?Whoever supplied the LCD
should have technical documentation.
>
> And please learn to trim and bottom post.
>
> Good Luck!
> Rich
>


The LCD is going to be fabricated by myself. It will have 16 rows and
16 columns driven by two 4-to-16 decoders. The parallel port will be
used to send two 4-bit signals to control the decoders.

Basically, I need a way to turn on/off the 8 output pins of the
parallel port in WinXP. A good webpage I found is
http://www.epanorama.net/circuits/parallel_output.html#circuithow

This shows a relay controlling circuit that can protect your parallel
port from voltage spikes. Anybody knows a way to do this without using
a relay coil.

> > On Jan 12, 1:44 pm, "Matthew Hicks" <mdhic...@uiuc.edu> wrote:
> >> I used a parallel port to drive an lcd for an old school project. You
need
> >> to look-up what address the port is located at, how you can get the port
to
> >> automatically latch the data and a way to get access to the I/O pins
> >> directly. For the last part I use a c compiler called djgpp that makes a
> >> dos executable that can have direct access to the I/O pins. I think I
used
> >> simple in(address) and out(data, address) commands to communicat but
you'll
> >> have to look those up to be sure. Note that these functions are in a
> >> special library.
>
> >> ---Matthew Hicks
>
> >> "James Beck" <j...@reallykillersystems.com> wrote in
messagenews:MPG.201072ff21c0d250989e2c@newsgroups.bellsouth.net...
>
> >> > In article
<1168545281.404509.164...@p59g2000hsd.googlegroups.com>,
> >> > lic...@gmail.com says...
>
> >> >> James Beck wrote:
> >> >> > In article
<1168543878.816053.50...@77g2000hsv.googlegroups.com>,
> >> >> > lic...@gmail.com says...
> >> >> > > Hi
>
> >> >> > > I am working on a project where I have to send signals
from a PC
> >> >> > > (RS232
> >> >> > > or USB?) to a 4-to-16 decoder. Basically, I need a way
to send
> >> >> > > signals
> >> >> > > from a PC to drive the 4 inputs of the decoder. Anybody
knows an easy
> >> >> > > way to do that?
>
> >> >> > > I am looking for the hardware and IC components
necessary that will
> >> >> > > convert the signals from the PC. Then, what software or
programs will
> >> >> > > I
> >> >> > > need to code?
>
> >> >> > How about using the parallel port?
> >> >> > At least 8 easy to use data lines.
> >> >> > Real easy if you are using Win98 or less or DOS.
> >> >> > Win2K and XP are a little tougher.
>
> >> >> > Jim
>
> >> >> I am using Win XP. How hard would that be?
>
> >> > You will need one of the VXD's that allow you to access the parallel
> >> > port hardware. XP blocks applications from doing that.
>
> >> > See:
> >> >http://www.beyondlogic.org/porttalk/porttalk.htm
>
> >> > Among others.
> >> > I'm sure others here know of more drivers.
>
> >> > Jim


Author: Randy Day
Date: 20:47 17-01-07

lichxx@gmail.com wrote:

[snip]

> The LCD is going to be fabricated by myself. It will have 16 rows and
> 16 columns driven by two 4-to-16 decoders. The parallel port will be
> used to send two 4-bit signals to control the decoders.
>
> Basically, I need a way to turn on/off the 8 output pins of the
> parallel port in WinXP. A good webpage I found is
> http://www.epanorama.net/circuits/parallel_output.html#circuithow
>
> This shows a relay controlling circuit that can protect your parallel
> port from voltage spikes. Anybody knows a way to do this without using
> a relay coil.
>

If you're interfacing with another 5v circuit, just
use a protective resistor (say, 300 ohms) to the
parport pin.

Don't forget to connect the parport ground to the
circuit ground!

+5v
|
___ |\
o-|___|--| >O-
o R |/
| |
=== ===
GND GND
(created by AACircuit v1.28 beta 10/06/04 www.tech-chat.de)

For other DC circuits, the simplest safe way is
with a transistor switch. Resistor R is
connected to the parport pin, and GND is common
to both the parport ground and supply voltage
ground. When the parport pin goes high, the load
is switched on.

The advantage is that +V can be something other
than 5v, i.e. 12v.

+V
|
o
Load
o
|
___ |/
0---|___|--|
R |>
0 |
| |
=== ===
GND GND
(created by AACircuit v1.28 beta 10/06/04 www.tech-chat.de)

1


      Contact  |  Electronic Portal


Sci.Electronics.Basics by Keywords
ADC
Antenna
CAD
Coil
Generator
IDE
LCD
Modulator
MOSFET
NiMH
Opamp
Oscilloscope
PID
RS232
Telephone
Transformers
TTL
USB

Sci.Electronics.Basics By Author