First and foremost,
I am not responsible, if
you, blow your Psion up.
You have been warned. If you aren't sure what your doing,
don't do it
Now it get's technical. (Haven't we heard that before !)
You need a male 9 pin D-type plug with 3 wires on pins 5,6 and 8 respectively.
Pin 5 is GND, the other two are used as output lines. Connect these two outputs to two relays. and voila, you have two sources for controlling motors etc. Very crude, but it got my PIG moving after issue 3 of the RR magazine.
Download SerialTest.zip
here. This zip contains 7 files. Explained below.
CComms.Opx CDescriptor.Opx CE32Base.Opx Copy
to your Psion's C: or D: System/Opx directory
These are the main gummins of the routines available to the OPL
programmer.
CComms.Oxh CDescriptor.Oxh CE32Base.Oxh Copy
to your Psion's C: or D: System/Opl directory
These ares the header files that must be defined by INCLUDE
command at the top of your OPL program. See Bingo for details
Bingo Copy to your any directory on
your Psion
This is the main OPL program
Don't ask me why it's called Bingo. This program also uses ToolBar.Oph which comes with your machine. It's like a GUI for your OPL programs. Screen events, menu's, clock, date and buttons. All for free. When you run the program you will see 4 buttons on the right side. "Line 1" powers one of the outputs. "Line 2 " the other line, and "Both", powers both lines.
As I see it, something like my PIG only needs 2 ouptuts, one for each motor. What is needed are some inputs. This will be my next step. Watch this space.