Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Controlling Devices thru the serial/parallel port

  • 26-06-2004 5:56pm
    #1
    Registered Users, Registered Users 2 Posts: 87 ✭✭


    Hi I'm a software developemt student and I'm about to start my final year project. What I want to do is to be able to switch on and off a number of lights and connections from a remote pc and to be able to check the status of the connections. I have a new dell laptop with windows XP and no paralell or serial port but I have a usb to parallel adaptor. I picked a Kemo 4 channel computer switch and a d-range 25 way plug. I have soldered on connections to 4 relays which I will use to switch on and off the lights and now I need to start work on the application to control the switches. To tell you truth I dont really know where to begin as I've no experience with this kind of programming and I'm not really sure which languague to use. If any of ye know about this kind of thing I'm open to suggestion on where to start and how to do it! Any help at all would be greatly appretiated!!!


Comments

  • Registered Users, Registered Users 2 Posts: 1,268 ✭✭✭hostyle


    use perl;


  • Registered Users, Registered Users 2 Posts: 885 ✭✭✭clearz


    What language would you like to use


  • Registered Users, Registered Users 2 Posts: 1,182 ✭✭✭Beef


    If you can get access to VB 6.0 (I haven't used .NET) but they have a handy control called mscomm. I've used it numerous times and found it works really well. All you need is protocol details and some commands for your connected device and your good to go... Do a google on mscomm - you should get loads of examples. That is if you have access to VB of course... :p

    Beef.


  • Registered Users, Registered Users 2 Posts: 21,264 ✭✭✭✭Hobbes


    Do a google for RS232 programming. VB is probably the easiest.

    For Java...

    http://sourceforge.net/projects/jcomm/

    *Edit.

    RS232 is for Serial only. Parallel is a lot more tricky, but you could send data to it by creating a basic text Printer and sending data though that.


  • Registered Users, Registered Users 2 Posts: 87 ✭✭blindasfcuk


    thanks Im still deciding the programming side of things is making me thing about using the serial port but the hardware side seems easier using the parallel port.


  • Advertisement
  • Moderators, Music Moderators Posts: 6,525 Mod ✭✭✭✭dregin


    Phaxx did a project like this for young scientist of the year. Remotely controlling a toaster through the parallel port I do believe. Give him a PM.


  • Registered Users, Registered Users 2 Posts: 87 ✭✭blindasfcuk


    I have Microsoft .NET and JCreaterLE do I can do it in VB C++ or JAVA so I'm open to ideas. I can get my hands on a prog in VB that reads in details from a mag strip reader but I'm not really sure if I can mod that to check the status of a set of relays.


  • Closed Accounts Posts: 35 Bullockshaver


    Without a doubt VB is the way to go .You will need someone hardware to allow to interface with devices,The digital voltage levels are +12v and -12v on the serial portof most computers. You will need a chip called a Max 232 to change the contoller boards digital voltage levels to a level the serial port can understand, its not normal TTL logic voltages.


  • Registered Users, Registered Users 2 Posts: 87 ✭✭blindasfcuk


    I have a relay board that connects in to my parallel port to interface with 8 devices which seems relativley straight forward. I know absolutley nothing about harware so I'm tryin to keep that side of things straight forward.


Advertisement