I have bought a few LEDs to play with no. Starting simple.
When I connect the LEDs to the parallel port they start to glow. The glow no matter what I do.
Does anyone know of a simple software I can use to test things out? Dont want to start with the programming before I got it all working on the electronic side.
Now start stepwise now
Step1: First of connect all the eight LED with positive leads to the corresponding output of the Parallel Port and the negaive of all LED connect it to the ground.
Step2: Remenber you are using your LED to get the driving current from the PC, so u must take extra care not to experiment more or be very precise in ur work.
Step 3 step 2 is mainly written because Parallel Port can drive or can source current up to 20mA.
Step 4: after the Hardware is ready now comes the software part.
Step5: U can use the function of the C++ to output a byte of information from the PC to be written to the Parallel Port and to ur Hardware ultimately.
Step 6: syntax of the function is: outportb(add,value);
step 7" remember to include "dos.h" header in ur program.
Step 8 an example of such a program is:
The add is the add of ur PC parallel port and value is the no in bits which u want to output.
Now to find the add of ur Parallel Port.....(XP SP2)
step1: Go to My Computer right clik MANAGE.
step2: go to DEVICE MANAGER.
step3:go to PORTS(COM & LPT)
step4: Go to ECP(Printer Port)
step 5: go to Resources and u will find ur Parallel Port Add.