Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 03-29-2009, 10:44 AM   #1 (permalink)
 
Newb Techie

Join Date: Mar 2009

Posts: 12

ds_rnk is on a distinguished road

Default Project Related Help

Interface LED's N LASER's With JAVA Via PRINTER Port


Need help in project........my project is controlling traffic depending on its density.......i.e i'll determine the density of vehicles by placing 3 sets of lasers separated by particular distances....i'll allow the heaviest/lowest traffic lane first or some what like that.....

well i'll explain it in detail to make it good for you to understand me.......and best me to get help from you

For this i want to connect these lasers and the signals (LED's) to the printer port (parallel port)....i'll be having 12-16 LASER's and 12-16 LED's...
Browsing the net i learned a bit about parallel port...like it has 8-data bits (output pins) and 5-status bits (input pins)....

My question is how should i connect this 12-16 LASER's to 5-Status bits and 12-16 LED's to 8-data bits...i know i'll need Multiplexers/ de-multiplexers but which one should i use where and what is the number/name of it.

I might need a 4:16 MUX and a 16:4 DMUX ...am i right???

Secondly if its so.....then for a multiplexer i'll need 4 address pins and a data pin...so which of the 8-data pins of parallel port (printer port) D0-D7 should i use as a data pin and which one all as address pins??

Well i'll be still left with the coding part (JAVA)......but i want to complete this first

PLz Help!!!

Thank you in advance

Last edited by ds_rnk; 03-29-2009 at 05:32 PM.
ds_rnk is offline  
Old 03-30-2009, 10:20 AM   #2 (permalink)
 
Software Developer

Join Date: Mar 2006

Location: Columbus, OH

Posts: 569

jaeusm is on a distinguished road

Default Re: Project Related Help

Why don't you just get a microcontroller to do this project? One of the easiest microcontrollers to learn and use is the Basic Stamp 2: About the BASIC Stamp Microcontroller
jaeusm is offline  
Old 03-30-2009, 09:16 PM   #3 (permalink)
 
Newb Techie

Join Date: Mar 2009

Posts: 12

ds_rnk is on a distinguished road

Default Re: Project Related Help

Quote:
Originally Posted by jaeusm View Post
Why don't you just get a microcontroller to do this project? One of the easiest microcontrollers to learn and use is the Basic Stamp 2: About the BASIC Stamp Microcontroller
well a good advice though i have walked long to turn back again.........well is there something related to mux n demux that you can share?????

Regards
ds_rnk is offline  
Old 03-31-2009, 09:57 AM   #4 (permalink)
 
Software Developer

Join Date: Mar 2006

Location: Columbus, OH

Posts: 569

jaeusm is on a distinguished road

Default Re: Project Related Help

You need to use the microcontroller approach. You're getting in way over your head. I don't say that with arrogance, but you're making this much harder than it has to be. Not to mention, a microcontroller or PLC would be better suited to this problem because that's what a real traffic controller would use, not a desktop PC's printer port. This project could be done on a Basic Stamp 2 in less than 30 minutes. Use the right tool for the job.
jaeusm is offline  
Old 03-31-2009, 11:29 AM   #5 (permalink)
 
Newb Techie

Join Date: Mar 2009

Posts: 12

ds_rnk is on a distinguished road

Thumbs up Re: Project Related Help

Quote:
Originally Posted by jaeusm View Post
You need to use the microcontroller approach. You're getting in way over your head. I don't say that with arrogance, but you're making this much harder than it has to be. Not to mention, a microcontroller or PLC would be better suited to this problem because that's what a real traffic controller would use, not a desktop PC's printer port. This project could be done on a Basic Stamp 2 in less than 30 minutes. Use the right tool for the job.
Are you sure......!!!

well i trust you on this....but you know its a bit risky to switch over......by the way i'll surely try to get my group members focus on this but will you help me out.......please
ds_rnk is offline  
Old 03-31-2009, 12:32 PM   #6 (permalink)
 
Software Developer

Join Date: Mar 2006

Location: Columbus, OH

Posts: 569

jaeusm is on a distinguished road

Default Re: Project Related Help

There's not much I can help out with across the internet. You'll need someone to give you hands-on advice and help in person. If this is a university project, you should consult your professor. They may have microcontrollers for you to use.

The Basic Stamp 2 is relatively simple to use since you basically just program a set of input pins and output pins. So, high level pseudo code would look like this:
Code:
loop indefinitely:
    if pin 0 is high then
       set pin 16 high
    else
       set pin 16 low

    if pin 1 is high then
       set pin 17 high
    else
       set pin 17 low
    .
    .
    .
Spend some time looking over the information in the link I provided in a previous post. I really can't be of much more help. At this point, you need someone to help you out in person.

Last edited by jaeusm; 03-31-2009 at 12:34 PM.
jaeusm is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
List of Free & Open Source Software Downloads þÄ®âÐÖx Windows Operating Systems and Software 552 08-10-2009 02:24 PM
Open source 2D game creation framework trying to fill various positions *screenshots* mvBarracuda Programming Discussions 28 01-22-2009 10:55 AM
Weekend Fun The Jeluvian Project Osiris PC Gaming 0 08-24-2007 07:59 AM