I have only a week to do this, so I'm kinda getting desperate. However, I discussed it with my friend who is also interested in doing this conversion and found a pretty good example on how the app might work.
Plan A: PWM to Analog (Got it working to some degree, thanks guys. )
Plan B: Serial sending 4 bytes, each byte to be sent to a certain pin based on the order it is recieved. The process being:
The strand of bits are loaded into a bucket 8 bits at a time, the bucket moves along a convayer belt to 4 seperate pipes. When the bucket is filled with 8 bits, it dumps the bits into the pipe and moves to the next pipe. As the bits flow down the pipe, they arive at a station where they are seperated and sent to a resistor tree, where the final analog voltage is sent to the designated pin.
When the final byte is reached, the bucket goes back to the starting position and does it all over again, sending 4 bytes down 4 seperate pipes and 4 seperate analog pins on a common gameport.
a.k.a. Serial to Analog Gameport conversion.
Any ideas? Our last resort is the PWM to Analog converter, using an IFI EduRobot's PWM's to simulate the values, however, if there is some way to directly use the serial port and convert the serial data to multiple analog values it would be much of help.
Plan A: PWM to Analog (Got it working to some degree, thanks guys. )
Plan B: Serial sending 4 bytes, each byte to be sent to a certain pin based on the order it is recieved. The process being:
The strand of bits are loaded into a bucket 8 bits at a time, the bucket moves along a convayer belt to 4 seperate pipes. When the bucket is filled with 8 bits, it dumps the bits into the pipe and moves to the next pipe. As the bits flow down the pipe, they arive at a station where they are seperated and sent to a resistor tree, where the final analog voltage is sent to the designated pin.
When the final byte is reached, the bucket goes back to the starting position and does it all over again, sending 4 bytes down 4 seperate pipes and 4 seperate analog pins on a common gameport.
a.k.a. Serial to Analog Gameport conversion.
Any ideas? Our last resort is the PWM to Analog converter, using an IFI EduRobot's PWM's to simulate the values, however, if there is some way to directly use the serial port and convert the serial data to multiple analog values it would be much of help.