hi,
Attached pinout of port connector.
Pins 2 to 9 are output pins [ 8 in all] and ground [0v] pins 18 to 25.
These pins can be used to drive transistors/logic devices, they are TTL outputs, Low or High
[ 0v or +5v, you will find if you use your DC meter, that the voltage levels are around 0.4v and 4.5v]
As you want to drive outputs just consider these 8 pins at first, you can use the other input/output pins later on.
Use the VB program from yesterday to drive these 8 output lines. Sending a 0 or 255 will switch them all low/high.
To switch just 1 line, say pin2, send 0 or 1. to switch two lines,say 1 and 2 send 0 and 3. On address 378.
As you can now see its a 8 bit binary pattern, sending 0 and 15 [00001111] will switch pins 2,3,4,5 low/high. Got the idea?.
Buy a piece of copper strip board [PCB], the type that has a 0.1inch hole pattern and copper tracks on one side,
running the length of the PCB. Size say, 100mm *160mm.
A range of resistors, common values for LED's 330R. Transistor biasing 2K2, 4K7, 10K0. A range of capacitors, 1000nF, 0.1uF, 1uF.
Transistors about 4, general purpose 30V, 200mA, NPN and PNP types.
Motors, 2, small DC motors with a voltage rating to suit your DC power supply.
Signal diodes 4, 1N914 or equivalent, rectifier diodes 1N4001 100v 1A or equivalent.
When you have these parts, let me know, I'll post some circuits.
Eric
Attached pinout of port connector.
Pins 2 to 9 are output pins [ 8 in all] and ground [0v] pins 18 to 25.
These pins can be used to drive transistors/logic devices, they are TTL outputs, Low or High
[ 0v or +5v, you will find if you use your DC meter, that the voltage levels are around 0.4v and 4.5v]
As you want to drive outputs just consider these 8 pins at first, you can use the other input/output pins later on.
Use the VB program from yesterday to drive these 8 output lines. Sending a 0 or 255 will switch them all low/high.
To switch just 1 line, say pin2, send 0 or 1. to switch two lines,say 1 and 2 send 0 and 3. On address 378.
As you can now see its a 8 bit binary pattern, sending 0 and 15 [00001111] will switch pins 2,3,4,5 low/high. Got the idea?.
Buy a piece of copper strip board [PCB], the type that has a 0.1inch hole pattern and copper tracks on one side,
running the length of the PCB. Size say, 100mm *160mm.
A range of resistors, common values for LED's 330R. Transistor biasing 2K2, 4K7, 10K0. A range of capacitors, 1000nF, 0.1uF, 1uF.
Transistors about 4, general purpose 30V, 200mA, NPN and PNP types.
Motors, 2, small DC motors with a voltage rating to suit your DC power supply.
Signal diodes 4, 1N914 or equivalent, rectifier diodes 1N4001 100v 1A or equivalent.
When you have these parts, let me know, I'll post some circuits.
Eric
Last edited: