Electronics Diy Gpo?

Discussion in 'Modding' started by Lovah, 11 Apr 2004.

  1. Lovah

    Lovah Apple and Canon fanboy

    Joined:
    10 Jul 2002
    Posts:
    3,846
    Likes Received:
    25
    Hi all,

    I just have a small question.

    How do I make 1 general purpose output myself?

    I know most matrix orbital LCD's have them. But I don't wanna buy a lcd just for the output..

    What I wanna do, is make a led (or anything, using a relay), go on, when I have new email.

    I think I can find the emailchecker somewhere on the net. (U can post a link if somebody would know something that will work)

    but what I need, is a simple diagram, how I can use one of my ports (USB, Serial, Printer (parralel), ... as a output.. and the software to use it.

    So when I have new email, it should be triggered.. when I don't have any new anymore, it should be off again...



    All help is welcome, thanks
    L
     
  2. acrimonious

    acrimonious Custom User Title:

    Joined:
    8 Nov 2002
    Posts:
    4,060
    Likes Received:
    3
    P.Port Pin 2 ----> 1K Resistor ---> Standard LED ---> P. Port Pin 18

    Should work, unless you are using a relay, then you'll need to use a transistor (wired like in the DigiBus guide) to drive the relay.

    To program some software you can use "inpout32.dll" which you can get from www.logix4u.net.

    To switch LED on:
    Out &H378, 1

    To switch LED off:
    Out &H378, 0

    :thumb:
     
  3. star882

    star882 What's a Dremel?

    Joined:
    19 Mar 2003
    Posts:
    925
    Likes Received:
    1
    If you only need one LED, use the DTR line on the serial port.
     
  4. Lovah

    Lovah Apple and Canon fanboy

    Joined:
    10 Jul 2002
    Posts:
    3,846
    Likes Received:
    25
    Hi all

    Thanks for the quick comments,
    Well, its going have to be a relay. but uhm.. I'm such a noob at electronics, I understand what u mean, but I have no idea how to wire it up then..

    :blush: how about a little diagram?

    I can solder and stuff, but I need a diagram, lol..

    so then I can just execute that .dll file? using one of those email-checker programs, that will execute something when u have email...

    I'm worried that it will stay on though (even when I don't have new email anymore).

    Thanks again for the quick help
    L
     
  5. TheAnimus

    TheAnimus Banned

    Joined:
    25 Dec 2003
    Posts:
    3,214
    Likes Received:
    8
    easyest way would be as way would be as star882 said, and use one of the serial handshaking lines, as long as its just one LED it will be fine.
     

Share This Page