OG Console Setup Guide

From Sinden Lightgun
Jump to navigation Jump to search

Disclaimer

All instructions are provided as information only and we can not be held responsible for any damage that may be caused to yourself or equipment.

Therefore all of this is undertaken at your own risk.

G-CON45 Setup for PS1:

Video Guide

Here is the full tutorial to create the adapter required and the Pi4 image to get your Sinden Lightgun working with a original PS1 or PS2* console (*G-CON45 games only).

The provided image was a collaboration between Titchgamer, Prof_gLX and Harry Dog who created the original BB image.

Downloads

Sinden Drivers

Download latest Sinden Drivers and Arduino image from the Sinden Lightgun website

Arduino

Download Arduino IDE Software from the Arduino website

Pi4 Image

Download Pi4 image here from the Mediafire

PSX Wiring

PSX Port wiring pin out diagram (larger version available from Mediafire)

Diagram showing PSX controller port explaining pin uses

Arduino Wiring

Arduino wiring pin out diagram (larger version available from Mediafire)

Arduino wiring example demonstrating wiring order of 6, 3, 9, 8, 4, 1

Win32 Disk Imager

Download Win32diskimager from the SourceForge website

WinSCP

Download WinSCP from the WinSCP website

Troubleshooting and Upgrading the G-CON45 Setup:

Please note this image was created using the 1.4 version of the Sinden software.

It is a good idea to upgrade it to the latest version and upgrade your guns firmware.

To Upgrade the software on the card is very easy, simply download the latest software from the Sinden Lightgun website

Once downloaded extract the Lightgun folder located in the SindenLightgunLinuxSoftware\Pi-Arm\ folder and overwrite the existing version on the Pi located in folder /home/pi using SSH.

It has been found that on newer versions of the Pi that it may not boot with this image. If this is the case for you please download and extract this file from Mediafire.

After extraction, copy the Start4.elf & fixup4.dat files and overwrite the ones in the boot partition of your SD card.

If your service starts on the Pi but your gun does not track make sure you have updated your firmware to the latest 1.6 version.

If the service does not start on the Pi and shows a error the IDs are probably wrong, double check them.

If the gun seems to be rapidly disconnecting and reconnecting again (The controller screen of point blank seems to be a good test for this) you may need to run your adapter through a Multi Tap (or 2 for 2 player).

We are unsure exactly what causes this issue at this point in time if its a power issue or interference but a Multi Tap seems to fix it!

G-CON 2 Setup for PS2:

Setup Guide.

Parts List:

Arduino Micro (with headers for ease of use, 1 for each player)

Female to Female dupont jumper wires (Length depending on how you want to set it up)

Raspberry Pi 4 with a minimum 8gb micro SD card.

OSSC/Retrotink 5X or other way to apply the border.

Programming the Arduino:

Navigate to the Sinden lightgun driver page  found HERE and download the latest software revision if you have not already got it installed.

You should have your gun fully setup and tested in the Windows enviroment before attempting to connect it to a console and be running atleast 1.6 firmware.

To flash the arduino make sure your Sinden Lightguns are NOT connected to the system then plug in the arduino you wish to flash.

Be aware that flashing the arduino overwrites its boot loader so it will not be easy to reflash it again at a later date.

Once its plugged in Windows should detect it as a new device, Load the Sinden software and navigate to the "Firmware Upgrade" Tab.

In the bottom right corner of the window you should see a white box with your arduino listed inside it, if not press refresh and it should appear.

Once done select the "Guncon 2" option and press the "Flash Arduino" button.

DO NOT interupt the process, just let it finish and once its done you can unplug it from the computer.

Wiring:

Use the female to Female Jumper wires to connect the arduino to the Pi4 as per the connection drawings contained within the Gcon2 image pack you should download below.

Note that there is a different wire layout for Player 1 & Player 2 so wire them accordingly.

Installing the Pi Image:

Firstly you need to download and install Win32diskimager from the link below.

Also you will need to download the Guncon2 Image pack which contains the Pi image

NOTE: This image was created for the older 1.6 version firmware so if you are running the newer firmware it will need to be updated manually, Instructions to do so will be found below.

Connect your 8gb (or more) Micro SD card to your computer and wait for it to be detected.

Once its viewable in your file manager take note of the drive letter Windows has assigned it.

E.g. "F".


Load Win32diskimager and you will see at the top a white box headed "Image File".

Click the little folder button to the right side of the box to bring up the file browser and navigate to and select the Sinden Lightgun Gcon2 image that is contained in the pack you downloaded at the start.

Further to the right of the "Image file" box you will see a drop down menu titled "Device" click on this box to select the drive letter Windows has assigned to your Micro SD card.

BE 100% SURE you have selected the correct device as the image burning process will destroy any other data contained on the device so you dont want to accidentally select a external HDD etc!

Once you are satisfied press the "Write" button and wait for the process to finish.

On completion Windows will throw up a error saying the device can not be read and it needs formatting.

DO NOT FORMAT THE DRIVE! its perfectly normal.

Safely eject the Micro SD card from your computer and install it into your Pi4.

initial connection of the setup:

Once you have flashed and wired the arduino to the Pi4 and installed the image on the Micro SD we are ready to connect everything togther!

So connect the Power cable to the Pi4, You should also connect your Sinden Lightgun/s into the Pi4's USB ports if you are using 2 guns it would be best to plug one into a blue slot and one into a black.

The arduinos should already be connected via the duponts to the Pi4 GPIO pins.

The arduinos USB cable should be plugged into the PS2's front USB ports.

Finally between the PS2 and the TV you should have either a OSSC or a Retrotink5X which will generate the border for the Sinden lightgun to work.

First Power on:

Once everything is connected you are ready to power up, If you are running older 1.6 firmware on your gun and have a older Pi4 then you hopfully wont have to update the image, However if you are using a newer pi or firmware you will probably find the gun will not work and you will need to update the image using the instructions below.

Either way you MUST turn on the Pi4 first and wait for approx 90 seconds so it can boot up and start all the services it needs to start.

Once you have left it around 90 seconds turn on the PS2 with a Gcon2 game in the drive and apply a white border to the screen using whichever device you have for the border.

Now test out your sinden!

Hopefully your gun works at this point but it will not have recoil enabled. But if it does not work or you want to enable recoil carry on reading below for the advanced setup.

Advanced Settings and updating the Image.

To carry out any advanced settings on the Pi4 you will firstly need to connect a keyboard and mouse to the Pi4 as well as a HDMI video cable so you can see whats going on.

Boot up the Pi and once its done you should see a white Welcome screen where you can bind your controller (Keyboard!).

Hold any button down on the keyboard and the screen will change to a key binding screen.

Now follow the on screen prompts to bind the keys as you like.

You only need to map the Up, Down, Left, Right, A, B, Start and Select buttons to be mapped. You can skip all the others by holding down a button you have already mapped.

When you get to the end of the list the last binding should say "Hotkey Enable" Set that to the same button as you mapped for select.

Once you are done you will be brought to the retropie main menu.

Next you need to get a network connection to your Pi4, You can plug in a Ethernet cable for ease or you can follow the following procedure to use WiFi.

If using a ethernet cable:

Navigate to the "Retropie" menu and press the "A" button, once in the menu navigate to "Show IP" and write down the IP address your Pi has been assigned you will need this shortly.

Once you have the IP address you can exit back to the Retropie menus.

Setting up WiFi:

Navigate to the "Retropie" menu and press the A button you just mapped.

Navigate to "Raspi-Config" and press the A button again.

On the new menu that appears navigate to option "5 Localisation options" and press "Enter"

Next select "L4 WLAN Country" and press "Enter"

Now select whichever country you reside in and press "Enter" again.

Now you should be returned back to the config menu, press "Right" until you heighlight the "Finish" button and press "Enter", It will then ask if you want to reboot select yes and press "Enter" again to reboot the Pi.

Once rebooted navigate to the "Retropie" menu again and then select "WiFi".

You should now be taken to the Wifi setup menu.

Select "1 connect to wifi network" and press "Enter"

Next you need to select your home Wifi from the list and press "Enter"

Next it will ask you for the password, Type that in and again press "Enter"

Once complete you should return back to the WiFi menu and you should see at the top of the screen a IP address etc confirming that your Pi is now connected to your home network.

Write down the IP address shown you will need it later.

Now navigate to the "Exit" button and press ""Enter" to return back to the retropie menus.

Setting up Win SCP on your computer:

Go to the Win SCP website linked below to download and install Win SCP on your computer.

Once you have it all installed load Win SCP and you will be greeted with a configuration screen.

On the left hand side of the window you will see "New Site" double click on that and set the following:


File protocol: SFTP

Host Name: The IP address you wrote down earlier e.g. 192.168.1.17

Port Number: 22

Username: root (lower case)

Password: pi (lower case)


Once you have filled in the required fields press "Save" then press the "Login" button.

Once logged in you will see the screen has 2 sides.

On the left is your computer and all its files and folders, and on the right you should see all the files and directories on your Pi.

This is a simple file manager where you can drag & drop, move, copy etc files between your PC and Pi.

To upgrade the software version on the Pi image:

Download  and extract the latest software version from the Sinden website

Once downloaded navigate to the "SindenLightgunLinuxSoftware\Pi-Arm\" folder using Win SCP and use the "lightgun" folder contained within to over write the folder contained in the follwing folder on your Pi:  "/home/pi/".

Changing the guns settings:

To change the guns settings such as recoil, exposure, X/Y offsets etc do the following.

Using Win SCP navigate to the following folder on the Pi: "/home/pi/Lightgun" and select either "Player 1" or "Player 2" folder.

Once inside the relevant players folder you will see a file called "LightgunMono.exe.config".

Double click this file to open it up in a text editor.

You will find every available setting for the gun can be altered in here if required but most people will probably just want to change the recoil settings.

To do so go to the bottom of the text file and you will find the following block:


<add key="IAgreeRecoilTermsInLicense" value="0"/>

<add key="EnableRecoil" value="0"/>

<add key="RecoilTrigger" value="1"/>

<add key="RecoilTriggerOffscreen" value="0"/>

<add key="RecoilPumpActionOnEvent" value="0"/>

<add key="RecoilPumpActionOffEvent" value="0"/>

<add key="RecoilFrontLeft" value="0"/>

<add key="RecoilFrontRight" value="0"/>

<add key="RecoilBackLeft" value="0"/>

<add key="RecoilBackRight" value="0"/>

<add key="RecoilStrength" value="100"/>

<add key="TriggerRecoilNormalOrRepeat" value="1"/>

<add key="AutoRecoilStrength" value="80"/>

<add key="AutoRecoilStartDelay" value="5"/>

<add key="AutoRecoilDelayBetweenPulses" value="13"/>


These are the recoil settings, To activate recoil you must firstly agree to the disclaimer, to do this simply change the "0" to a "1" on the top line.

You then need to enable recoil so on the second line again change "0" to "1".

0 = Off and 1 = On so you can adjust the other settings as you wish.

Once you are done save the file and restart your Pi.

Downloads

G-CON2 Image Pack

Download the G-CON2 image pack from Mediafire

WinSCP

Download WinSCP from the WinSCP website

Win32 Disk Imager

Download Win32 Disk Imager from the SourceForge

Troubleshooting

Please note this image was created using the older version of the Sinden software.

It is a good idea to upgrade it to the latest version and upgrade your guns' firmware too.


It has been found that on newer versions of the Pi that it may not boot with this image. If this is the case for you please download and extract this file from Mediafire.

After extraction, copy the Start4.elf & fixup4.dat files and overwrite the ones in the boot partition of your SD card.