Computer Controlled Car Left Headlight – D0 Right Headlight – D1 Left Taillight – D2 Right Taillight – D3
The Wood Car Project Steps: 1) Wire-wrap four LED / resistor pairs 2) Attach the wires to the car 3) Connect the wired pairs to the D-Sub connector 4) Write your program 5) Enjoy hours of staring at the model flash.
Test your interface Once you’ve got the wires connected to the D-Sub connector, you can test the interface. Try : parallelput(255) This should turn on all your lights.
Binary on the Parallel Port parallelput(0) parallelput(1) parallelput(37) parallelput(255) 00000000000000010001010111111111 The integer parameter is translated into binary and each bit corresponds to one of the data pins on the parallel port.
Test your interface Once you’ve got the wires connected to the D-Sub connector, you can test the interface. Load the “Simple Paper Car Interface.t” program found on your CD. Try running the program and verify if your interface is correct.
An Alternative: Wire-Wrapping You do not have to use breadboards for your interfacing projects. You can use wire-wrapping to connect your different components together. We’re breaking the rules of conventional wire-wrapping.
Setting up the car Left Headlight – D0 Right Headlight – D1 Left Taillight – D2 Right Taillight – D3