Monday, January 16, 2012

HOW to Make Your Own Configuration with the PSCockpit System

The list of the number of outputs/inputs you need per element is the following:



For digital inputs/outputs you can select two types of expanders: 16 I/O and 40 I/O. You can mix inputs and outputs in each expander as they are configurable but there are several restrictions to take in account:

a) The elements can’t share expanders: For example, if you are planning to use a 32 pushbutton inputs matrix you need a expander with (5) inputs unused, you can’t use (3) inputs of one expander and (2) inputs of other expander.

b) Maximum current per I/O: 25 mA for the 16I/O, 15 mA for the 40 I/O.

c) Maximum power dissipation per expander: It means you can’t use all the expander for outputs to handle 25 mA because it should exceed the power dissipation capacity of the expander. As it depends on the ambient temperature and the heat dissipation method, I will establish some limiting values by testing the expanders.

d) The daisy chain for the expanders connected to one channel should not exceed 1A current, but if you need more, you can disconnect the daisy chain power supply at one point and supply power in it.


Example: AVTR panel



The panel consists of the following elements:
- (2) leds => 2 outputs
- (1) pushbutton => 1 input
- (1) 3pos switch => 2 inputs
- (1) rotary switch with 4 positions => 4 inputs

Total I/O count: 9 I/O. Expander selected: 16 I/O

That was easy. As I have 7 I/O free in this expander and I want to save some money, I will be using the expander to add another near panel in it. I found it!!:

EPU panel



The panel consists of the following elements:
- (3) leds => 3 outputs
- (1) 3pos switch => 2 inputs

Total I/O count: 5 I/O to add to the above expander.

This is how I calculated the list of expanders you can find attached in the following post:

http://www.viperpits.org/smf/index.php?topic=7237.msg98798#msg98798

Things get a little more complicated once you have calculated all the expanders and you have to group them in rows of 8 to connect them to one I2C channel. But I’m sure nothing you guys can't resolve . More beer !

Regards,
Shep

Wednesday, January 11, 2012

HOW TO use analog inputs with the PS Cockpit System (PSJoystick)

The PSJoystick allows the PSCockpit system to read analog inputs from an analog expander and send them to the PC as joystick axes so they can be configured in your favourite sim as a direct input.

Edited on Aug, 17th, 2022:
========================================================================
If you have more than 2 analogue expanders on your PSCockpit system or your PSJoy driver is not working, you can use vJoy software.
See this post for more information: How to Use Vjoy
========================================================================

Once the PSCockpit Main Board is connected to the PC it will be detected by the system as a joystick with 32 buttons, 8 axes and 1 POV hat. To verify everything is correct go to Game Devices and you will see a device named PSCockpit:


Opps, it is in Spanish!!. Sorry for that. Grin

Click on Properties to see the device:


Opps, in Spanish again!! Rambling

Configuring the joystick

To configure the system we have to add an analog expander. Open the IO Layout page of the PSCockpit software and select Analog on the expander dropdown list. You will see the list of analog inputs and outputs available for the Analog expander. In the tag section you can put the name of the device:


Note: Analog expander can only be used on the Main Channel.

You can add up to 8 analog expanders to the system but as we have only 8 axes it should be enough to attach only two. We will find another good use for the rest of analog expanders… Wink

Let’s now configure the analog inputs, buttons and the POV of the PSJoystick.

Open the Joystick page of the PSCockpit system and configure what axis you want to drive with the analog input by selecting the switch and the expander and clicking on the ID to see a dropdown list with the analog input tags we have entered before:



You can assign also the joystick buttons and POV buttons selecting the desire inputs of the digital I/O expanders of the system.

Once everything is configured, click on the “Config” command to send the values to the PSCockpit Main Board. The configuration values will be stored in the eeprom of the pic and they will be used even if you don’t run the PSCockpit software. Be careful to not detach the Main Board while writing the configuration.

Time to test!!!

Click on the “Test” command and you will see the PSJoystick working:


You can also see it working on Game Devices of Windows:



Opps. Spanish again!! GRROWNL !

What if I don’t have yet the analog expander?

For the people not using the servos 0 to 3 outputs of the Main Board, you can use them as inputs for pots. In this situation, click on the check box “Use SERVOS 0-3 for pots” and the Main Board will read the pots values on these inputs:


Click again the “Config” command and after writing the eeprom, click on the “Test” command:


Regards,
Shep