Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Very simple software-hardware connection.

Dear Sirs, May peace be on you,

I am coding for about 7 years. I can do C++, ASP, JavaScript, Flash Action Script etc. Right now I am learning Assembly.

I have very week and bad knowledge of hardware. Here is the question: I want to make a very simple device, which is can be operated with through windows. I want a simple button which, when clicked, turns a bulb on and off. That's it. The bulb is a hardware.

I only want to do this to learn this. Its not the ultimate goal, but at the moment, I really have no idea of which direction should be adopted.

I have started to learn Assembly, is it going to help me in anyway in achieving this? Plus, if somebody could give me some hints on how to achieve this, I'll be greatly obliged.

Thanks in advance.

Assalam-o-Aalikum.

Comments

  • MT2002MT2002 Member Posts: 1,444

    : I have very week and bad knowledge of hardware. Here is the
    : question: I want to make a very simple device, which is can be
    : operated with through windows. I want a simple button which, when
    : clicked, turns a bulb on and off. That's it. The bulb is a hardware.

    How is the bulb connected to the computer? As long as the bulb can
    retrieve input / send output, all you need to do is write the command
    to the port. In other words, writing a driver for it.

    To do this depends on how the device interacts. If it writes its
    current state (on/off) to a software port, you can use the in/out
    instructions to access it.

    If its through a different connection, you may need to use the
    system API.

Sign In or Register to comment.